本文整理匯總了PHP中Gateway::getGateways方法的典型用法代碼示例。如果您正苦於以下問題:PHP Gateway::getGateways方法的具體用法?PHP Gateway::getGateways怎麽用?PHP Gateway::getGateways使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Gateway
的用法示例。
在下文中一共展示了Gateway::getGateways方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: createAction
public function createAction()
{
$model = new Profile();
if (isset($_POST['model'])) {
if ($_POST['model'] == 'profile') {
// Uncomment the following line if AJAX validation is needed
$this->performAjaxValidation($model);
if (isset($_POST['ajax'])) {
$model->fillFromArray($_POST);
$model->user_id_created = $this->user->user_id;
$model->user_id_updated = $this->user->user_id;
$model->updated = 'NOW():sql';
$model->created = 'NOW():sql';
$model->model_uset_id = $this->user->user_id;
if ($model->save()) {
$link = AF::link(array('profiles' => 'update'), array('id' => $model->PkValue));
Message::echoJson('success', array('redirect' => $link));
} else {
Message::echoJsonError(__('profile_not_created'));
}
die;
}
$model->save();
$this->redirect();
die;
}
}
$gateway = new Gateway();
$gateways = $gateway->getGateways();
Assets::js('jquery.form');
Assets::js('ckeditor/ckeditor');
Assets::js('ckeditor/adapters/jquery');
$this->addToPageTitle('Create Profile');
$this->render('create', array('model' => $model, 'gateways' => $gateways));
}