Use IoC... App::make($controller)->{$action}(); Eg: App::make('HomeController')->getIndex(); and you may also give params App::make('HomeController')->getIndex($params);
Month: December 2014
Magento Add an External JS/CSS file to Magento
<reference name="head"> <block type="core/text" name="mybuyscsscode"> <action method="setText"><text><!]></text></action> </block> </reference> <reference name="head"> <block type="core/text" name="jquery"> <action method="setText"><text><!]></text></action> </block> </reference>
WordPress paginate_links – first page always the same as current page
I worked in wordpress created on pagination but always first page the same as current page so solution is : $pag_args1 = array( 'base' => @add_query_arg('paged1','%#%'), 'format' => '?paged1=%#%', 'current' => $paged1, 'total' => $query1->max_num_pages ); this case we attention...