Hi.
Ich hab mir exakt nach diesem Tutorial eine EA zusammengeschraubt:
und eine Form + template erstellt:
PHP: MyTestForm.class.php
<?
namespace ownapp\form;
use wcf\form\AbstractForm;
use wcf\system\WCF;
use wcf\system\menu\page\PageMenu;
/**
*
*/
class MyTestForm extends AbstractForm {
/**
* @see wcf\page\AbstractPage::$activeMenuItem
*/
public $activeMenuItem = 'wcf.page.ownapp.main';
/**
* enables the tracking of this page
* @var boolean
*/
public $enableTracking = true;
/**
* indicates if you need to be logged in to access this page
* @var boolean
*/
public $loginRequired = false;
public function readParameters() {
parent::readParameters();
}
/**
* @see Page::assignVariables()
*/
public function assignVariables() {
parent::assignVariables();
}
/**
* @see Page::show()
*/
public function show() {
// mark Page as active
PageMenu::getInstance()->setActiveMenuItem($this->activeMenuItem);
parent::show();
}
}
Display More
Nur leider kann ich sie nicht aufrufen, die Seite existiere nicht. Speicherort /lib/form/MyTestForm.class.php
zur Sicherheit noch die index.php:
require_once('./global.php');
wcf\system\request\RequestHandler::getInstance()->handle('ownapp');
Was mache ich falsch?