[eluser]dailygrind[/eluser]
Thanks for tips. I tried Derek's way and it worked..
Code:
<?
class APP_Controller extends Controller {
public $vars;
public $no_layout = false;
function __construct() {
parent::__construct();
$this->vars["contents"] = "";
}
function _output() {
if(!$this->no_layout) {
$this->vars["contents"] = $this->load->view($this->router->class."/".$this->router->method,$this->vars,true);
$this->load->view("layout/application",$this->vars);
echo $this->output->get_output();
}
}
}