public function beforeController() { // this code will be executed before the controller }
public function afterController() { // this code will be executed after the controller }
public function beforeRouter() { // this code will be executed before the router }
$this->_injectContent('This content will be injected into the layout')
public static function getWidgetMakerContent() { $websiteHelper = Zend_Controller_Action_HelperBroker::getStaticHelper('website'); return array( 'title' => 'Todo demo', // title of the plugin that will be visible in the widget maker 'content' => 'Todo demo content', // content of the plugin's widget maker section 'icons' => array( $websiteHelper->getUrl() . 'plugins/todo/web/images/todo.png', //icon that will be shown in front of the plugin name ) ); }Now go to your website, open any of the content editors and click on the Widgets tab. You should see something like this
Introducing SeoToaster 3.9: Empowering E-commerce a...
SeoSamba Press ReleaseEmail: info@seosamba.comTel: +1 877 4...
Crafting Client Confidence: How SeoSamba's Review T...
SeoSamba Presents SeoToaster Ultimate v...