Hello,
I am new to framework (only a few days of playing around). I got a bot confused how layouts work. I hope you
guys can help me out.
I have my main site setup and under it I created a module I added following to config file:
‘modules’=>array(
'adminTest'=>array('layout'=>'admin')
),
Under modules/adminTest/views/layouts I created a modified copy of the main.php of the main site layout.
in index.php under module I added following code:
<p>
Layout Path <?php echo $this->module->layoutPath ?> <br/>
Layout <?php echo $this->module->layout ?>
</p>
the output looks like:
Layout Path {removed}/protected/modules/adminTest/views/layouts
Layout admin
but the page still uses main.php layout form main site. What am I missing?
I am using code from svn 1.1.3-dev
thanks in advance for any idea you can give me. I feel like I am stuck. I want to keep module related
layout within that module