Modules
Controller_Psy
extends Controller_Template
extends Kohana_Controller_Template
extends Controller
extends Kohana_Controller
Abstract controller class for automatic templating.
Class declared in APPPATH/classes/controller/psy.php on line 3.
Constants
- None
Properties
Properties
public
boolean$auto_renderauto render template
public
Request$requestRequest that created the controller
public
$template
Methods
public __construct( Request $request ) (defined in Kohana_Controller)
Creates a new controller instance. Each controller must be constructed with the request object that created it.
Parameters
-
Request$request required - Request that created the controller
Return Values
void
Source Code
public function __construct(Request $request)
{
// Assign the request to the controller
$this->request = $request;
}
public action_intellectual( ) (defined in Controller_Psy)
Source Code
public function action_intellectual()
{
$this->template->content = 'You are very INTELLECTUAL!';
}
public action_nice( ) (defined in Controller_Psy)
Source Code
public function action_nice()
{
$this->template->content = 'You are very NICE!';
}
public after( ) (defined in Kohana_Controller_Template)
Assigns the template View as the request response.
Source Code
public function after()
{
if ($this->auto_render === TRUE)
{
$this->request->response = $this->template;
}
return parent::after();
}
public before( ) (defined in Kohana_Controller_Template)
Loads the template View object.
Source Code
public function before()
{
if ($this->auto_render === TRUE)
{
// Load the template
$this->template = View::factory($this->template);
}
return parent::before();
}