当前位置: 首页>>代码示例>>PHP>>正文


PHP AppController::admin_edit方法代码示例

本文整理汇总了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'));
 }
开发者ID:yamaguchitarou,项目名称:bakesale,代码行数:11,代码来源:shipping_methods_controller.php

示例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'));
 }
开发者ID:yamaguchitarou,项目名称:bakesale,代码行数:16,代码来源:payment_methods_controller.php

示例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'));
 }
开发者ID:yamaguchitarou,项目名称:bakesale,代码行数:11,代码来源:products_controller.php

示例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();
 }
开发者ID:yamaguchitarou,项目名称:bakesale,代码行数:11,代码来源:contents_controller.php

示例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'));
 }
开发者ID:yamaguchitarou,项目名称:bakesale,代码行数:14,代码来源:countries_controller.php

示例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'));
 }
开发者ID:yamaguchitarou,项目名称:bakesale,代码行数:12,代码来源:categories_controller.php

示例7: admin_edit

 /**
  * edit user
  */
 public function admin_edit($id)
 {
     parent::admin_edit($id);
     $this->_addEditInfo();
     unset($this->data['User']['password']);
 }
开发者ID:yamaguchitarou,项目名称:bakesale,代码行数:9,代码来源:users_controller.php


注:本文中的AppController::admin_edit方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。