Just made a change in abstractController to allow action which have only a template file and no method declared to behave the same as normal action
So if you get a basic controller like this:
<?php
class mypagesController extends abstractContoller{
}
?>
and a template named mypages_testpage.tpl.php you will now be able to call http://examplesite.com/mypages/testpage with all the normal behavior:
- call pretestpageAction method if exist
- call preAction method if exists
- call posttestpageAction method if exist
- call postAction method if exist
- automaticly use cacheManager if enable and setted in the view layout
baseView::getInstance()->setLayout(array('_cached_:controller_:action.tpl.php'));


Feeds
Comments