<?php
class Controller_Layout extends Controller_Template
{
public $template = 'layout/layout_old';
public function before($data = null)
{
parent::before();
#$this->auto_render = false;
}
}
<?php
class Controller_Main extends Controller_Layout
{
public function action_index()
{
$this->template->template = 'layout/layout_new';
return Response::forge($this->template);
}
}
Thanks, <?php
class Controller_Main extends Controller_Layout
{
public function action_index()
{
$this->template = \View::forge('layout/layout_new');
}
}
It looks like you're new here. If you want to get involved, click one of these buttons!