PHP
<?php
/**
* @author Patrick rennings
* @copyright 2010
*/
defined('SYSPATH') OR die('No Direct Script Access');
class Controller_Questionlist extends Controller {
public function action_index() {
$ctemplate = new Controller_questionlist_template();
$ctemplate->Stap1('Question answering machine!');
}
}
class Controller_questionlist_template extends Controller_Template {
public $template = 'index';
public function Stap1 ($text) {
$this->template->message = $text;
}
}
?>
Toon Meer
en de error:
CitaatErrorException [ Recoverable Error ]: Argument 1 passed to Kohana_Controller::__construct() must be an instance of Kohana_Request, none given, called in /home/patrick/domains/noxxie.nl/public_html/junk/questionlist/application/classes/controller/questionlist.php on line 15 and defined
Dus het is niet mogelijk om te gaan extenden binnen je controller?