strange problem with layout

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

strange problem with layout

aoohralex
I have a strange problem - when I write in url action layout doesn't work, I see only content of view - examples:

it works:
http://localhost:81/library

it doesn't work:
http://localhost:81/library/index

but both adresses are the same (default action is index) - so how is it possible ?


and here - thi works:
http://localhost:81/index

these don't work:
http://localhost:81/index/index
http://localhost:81/library/search


So layout doesn't work only then when I write in url action - why (of course I have actions in controller) ?
Reply | Threaded
Open this post in threaded view
|

Re: strange problem with layout

aoohralex
I have know - I had in layout:
<?php echo $this->headLink()->appendStylesheet('css/main.css') ?>

WITHOUT SLASH AT THE BEGINNGING !!

It should be:
<?php echo $this->headLink()->appendStylesheet('/css/main.css') ?>

and now everything is ok.