/** * The after() method is called after controller action */ public function after() { if ($this->request->action() == 'add' or $this->request->action() == 'edit') { // Add RichText Support Assets::editor('.textarea', I18n::$lang); // Flag to disable left/right sidebars $this->_sidebars = FALSE; } parent::after(); }
/** * The after() method is called after controller action * * @uses Route::get * @uses Route::uri * @uses Request::action * @uses Assets::editor */ public function after() { if ($this->request->action() == 'compose' or $this->request->action() == 'edit') { // Add RichText Support Assets::editor('.textarea', I18n::$lang); } else { // Tabs $this->_tabs = array(array('link' => Route::get('user/message')->uri(array('action' => 'inbox')), 'text' => __('Inbox')), array('link' => Route::get('user/message')->uri(array('action' => 'outbox')), 'text' => __('Sent Messages')), array('link' => Route::get('user/message')->uri(array('action' => 'drafts')), 'text' => __('Drafts')), array('link' => Route::get('user/message')->uri(array('action' => 'list')), 'text' => __('All Messages'))); // Disable sidebars on message pages except compose and edit $this->_sidebars = FALSE; } parent::after(); }
/** * The after() method is called after controller action */ public function after() { $this->response->body($this->content); parent::after(); }
public function after() { Assets::css('admin', "media/css/admin.css", array('default'), array('weight' => 60)); parent::after(); }