本文整理汇总了PHP中AppController::admin_edit方法的典型用法代码示例。如果您正苦于以下问题:PHP AppController::admin_edit方法的具体用法?PHP AppController::admin_edit怎么用?PHP AppController::admin_edit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AppController
的用法示例。
在下文中一共展示了AppController::admin_edit方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: admin_edit
/**
* edit shipping method
* @param $id int ShippingMethod id
*/
public function admin_edit($id)
{
parent::admin_edit((int) $id);
$types = $this->ShippingMethod->_rule_types();
$countries = ClassRegistry::init('Country')->find('list');
$this->set(compact('countries', 'types'));
}
示例2: array
/**
* Edit payment method
*
* When submitted, write configuration info to configuration file
*
* @param $id int PaymentMethod id
*/
function admin_edit($id)
{
if (isset($this->data['paymentConfig'])) {
$this->Config->write($this->data['PaymentMethod']['processor'], array($this->data['PaymentMethod']['processor'] => $this->data['paymentConfig']), 'payment_methods');
}
parent::admin_edit($id);
$processorData = $this->PaymentMethod->getProcessorData($this->data['PaymentMethod']['processor']);
$this->set(compact('processorData'));
}
示例3: admin_edit
/**
* Edit product
* @param $id int Product id
*/
public function admin_edit($id)
{
parent::admin_edit($id);
$brands = $this->Brand->find('list');
$categories = $this->Category->find('treepath');
$this->set(compact('brands', 'categories'));
}
示例4: admin_edit
/**
* Edits content.
*
* After the content is edited successfully, the user is redirected back to the <em>previous</em> URL. If not an error message is displayed.
* @param id int The ID field of the content to edit.
*/
public function admin_edit($id)
{
parent::admin_edit($id);
$this->_addEditInfo();
}
示例5: admin_edit
/**
* Edit country in admin.
*
* A list of shipping methods is generated from the database, and the selected methods are highlighted.
*
* After the country is edited successfully, the user is redirected back to the <em>previous</em> URL.
* @param id int The ID field of the country to edit.
*/
public function admin_edit($id)
{
parent::admin_edit($id);
$shippingMethods = ClassRegistry::init('ShippingMethod')->find('list');
$this->set(compact('shippingMethods'));
}
示例6: admin_edit
/**
* Edits information on a category.
*
* @param id int
* The ID field of the category to edit.
*/
public function admin_edit($id)
{
parent::admin_edit((int) $id);
$parents = $this->Category->find('treepath');
$this->set(compact('parents'));
}
示例7: admin_edit
/**
* edit user
*/
public function admin_edit($id)
{
parent::admin_edit($id);
$this->_addEditInfo();
unset($this->data['User']['password']);
}