Seite 1 von 1

Probleme mit Plugin

Verfasst: Sa 16. Sep 2006, 09:48
von php0815
Habe mir heute das Hallo World Plugin installiert.

Aber irgendwas funzt bei mir im Kopf nicht richtig.


include.hello_world_menu.php:

Code: Alles auswählen

$page = "main.php?area=$area&frame=2&test=test&contenido=".$sess->id; // link to same frame

if (isset($cfg['plugins']['hello_world'])) { // can be used in a modul !
   $plugin = true;
} else {
   $plugin = false;
   echo "<!-- plugin not found - db access deactivated //-->\n";
}

$tpl->reset();
$tpl->set('s', 'HELLO_WORLD_MENU', '<a href="'.$page.'">weiter</a>');

$tpl->generate($cfg['plugins']['hello_world'] . $cfg['path']['templates'] . $cfg['templates']['hello_world_menu']);
include.hello_world_edit.php:

Code: Alles auswählen

$tpl->reset();
$test = $_REQUEST["test"];
if ($_REQUEST["test"] != "test") {
$tpl->set('s', 'HELLO_WORLD_EDIT', "If zweig");
}
else{
$tpl->set('s', 'HELLO_WORLD_EDIT', "Else zweig");
}
$tpl->set('s', 'TEST', "der ".$test);
$tpl->generate($cfg['plugins']['hello_world'] . $cfg['path']['templates'] . $cfg['templates']['hello_world_edit']);
Wenn ich es im Frame 4 ausgabe wird die Variable $test übergeben.

Re: Probleme mit Plugin

Verfasst: Sa 16. Sep 2006, 10:35
von emergence
ich versteh die frage nicht...

Verfasst: Sa 16. Sep 2006, 10:40
von php0815
Im "include.hello_world_edit.php" ist der REQUEST Leer.
Irgendwie klappt das mit der übergabe ins andere Frame nicht.

Re: Probleme mit Plugin

Verfasst: Sa 16. Sep 2006, 10:43
von emergence
bei

Code: Alles auswählen

$tpl->set('s', 'HELLO_WORLD_MENU', '<a href="'.$page.'">weiter</a>');
target="right_bottom"

bei $page -> frame auf 4 ändern..

ergänzen...

Verfasst: Sa 16. Sep 2006, 10:51
von php0815
Danke funzt :D