Hi, It seems that the views folder is having folders similar to controller name which has tpl files for rendering content section and a layouts folder again has file similar to controller name which provides the page layout.
I have two layout files to govern the sites main page and all inner pages. I want the inner page layout to be included for inner pages and main layout for home page. Say calling the url
http://booklink.local.com/?ak=/home/ should pick up the /views/layouts/main.tpl and
http://booklink.local.com/?ak=/author/ should pick up the /views/layouts/inner.tpl for inner pages.
So calling /author as the controller ( in fact any controller other than home ), should call inner.tpl for page layout and the respective content part from /views/author/list.tpl say in this case.
Any idea how to achieve this?
Greet!
1 to 3 of 3