本文整理汇总了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));
}