*/ class Mage_Adminhtml_Cms_Page_WidgetController extends Mage_Adminhtml_Controller_Action { /** * Chooser Source action */ public function chooserAction() { $uniqId = $this->getRequest()->getParam('uniq_id'); $pagesGrid = $this->getLayout()->createBlock('adminhtml/cms_page_widget_chooser', '', array( 'id' => $uniqId, )); $this->getResponse()->setBody($pagesGrid->toHtml()); } /** * Check is allowed access to action * * @return bool */ protected function _isAllowed() { return Mage::getSingleton('admin/session')->isAllowed('cms/widget_instance'); } }