I have this controller method
class Account_Controller extends Base_Controller
{
public $layout = 'layouts.default';
public function action_index($a,$b)
{
$data['a'] = $a;
$data['b'] = $b;
$this->layout->nest('content', 'test',$data);
}
}
And this is my layout
<div id = "content">
<?php echo Section::yield('content'); ?>
</div>
And this is my test.php
echo $a;
echo '<br>';
echo $b;
echo 'this is content';
When i access this
http://localhost/myproject/public/account/index/name/email
I get my layout loaded but test.php is not loaded. How can i load content in my template. I dont want to use blade.