本文整理匯總了PHP中Groups::merge方法的典型用法代碼示例。如果您正苦於以下問題:PHP Groups::merge方法的具體用法?PHP Groups::merge怎麽用?PHP Groups::merge使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Groups
的用法示例。
在下文中一共展示了Groups::merge方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: createAction
public function createAction()
{
$this->view->Title = "Tạo mới nhóm thành viên";
$this->view->headTitle($this->view->Title);
if ($this->getRequest()->isPost()) {
$Group = new Groups();
$Role = $this->getRequest()->getParam('Role');
$Group->merge($_POST);
$Group->role = Zend_Json::encode($Role);
$Group->save();
$this->Member->log('Tạo nhóm thành viên: ' . $Group->name . ' (' . $Group->id . ')', 'Groups');
My_Plugin_Libs::setSplash('Nhóm thành viên:<b>' . $Group->name . '</b> đã được tạo.');
$this->_redirect($this->_helper->url('index', 'Group'));
}
$Resources = new Zend_Config_Xml(APPLICATION_PATH . '/configs/resources.xml', 'admin');
$this->view->Resources = $Resources;
}