本文整理汇总了PHP中Assets::editor方法的典型用法代码示例。如果您正苦于以下问题:PHP Assets::editor方法的具体用法?PHP Assets::editor怎么用?PHP Assets::editor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Assets
的用法示例。
在下文中一共展示了Assets::editor方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: after
/**
* 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();
}
示例2: 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();
}