當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CommonAction::edit方法代碼示例

本文整理匯總了PHP中CommonAction::edit方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonAction::edit方法的具體用法?PHP CommonAction::edit怎麽用?PHP CommonAction::edit使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CommonAction的用法示例。


在下文中一共展示了CommonAction::edit方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: edit

 public function edit()
 {
     $cate_tree = M("ShopCategory")->findAll();
     $cate_tree = D("ShopCategory")->toFormatTree($cate_tree, 'name', 'id', 'parent_id');
     $this->assign("cate_tree", $cate_tree);
     parent::edit();
 }
開發者ID:BGCX261,項目名稱:zhubao-tupu-svn-to-git,代碼行數:7,代碼來源:ShopAction.class.php

示例2: edit

 public function edit()
 {
     $cate_tree = M("Ask")->findAll();
     $this->assign("cate_tree", $cate_tree);
     Cookie::set('_currentUrl_', NULL);
     parent::edit();
 }
開發者ID:dalinhuang,項目名稱:concourse,代碼行數:7,代碼來源:AskThreadAction.class.php

示例3: edit

 public function edit()
 {
     $user_model = M("User");
     $sell_list = $user_model->where("user_sort=2")->field("id,username")->select();
     $this->assign('sell_list', $sell_list);
     parent::edit();
 }
開發者ID:yunsite,項目名稱:nuomituan,代碼行數:7,代碼來源:DealAction.class.php

示例4: edit

 public function edit()
 {
     $cate_tree = M("Forum")->where()->findAll();
     $cate_tree = D("Forum")->toFormatTree($cate_tree, 'name', 'fid', 'parent_id');
     $this->assign("cate_tree", $cate_tree);
     Cookie::set('_currentUrl_', NULL);
     parent::edit();
 }
開發者ID:dalinhuang,項目名稱:concourse,代碼行數:8,代碼來源:ForumThreadAction.class.php

示例5: edit

 public function edit()
 {
     $second_list = D("Second")->order('sort asc,sid asc')->findAll();
     $this->assign("second_list", $second_list);
     $city_list = D("Region")->where('parent_id = 0')->order('sort asc,id asc')->findAll();
     $this->assign("city_list", $city_list);
     Cookie::set('_currentUrl_', NULL);
     parent::edit();
 }
開發者ID:dalinhuang,項目名稱:concourse,代碼行數:9,代碼來源:SecondGoodsAction.class.php

示例6: edit

 /**
  * 
  * 根據數據庫中的數據生成js數組文件
  * @author Yumao <815227173@qq.com>
  * @CreateDate: 2013-5-31 下午4:07:50
  */
 public function edit()
 {
     $webUrl = (require ROOT_PATH . '/App/Home/Conf/domain.php');
     $searchToolsSort = $this->getToolsSort();
     $this->assign('searchToolsSort', $searchToolsSort);
     // 把圖片上傳的路徑分配到模版中
     $this->assign('picPath', $webUrl['ATTACHMENT_URL'] . "/searchToolsPic/");
     parent::edit();
 }
開發者ID:qiuai,項目名稱:tools,代碼行數:15,代碼來源:SearchToolsAction.class.php

示例7: edit

 public function edit()
 {
     $arr = Dir::getList(FANWE_ROOT . "/tpl/");
     foreach ($arr as $item) {
         if (strpos($item, '.') === FALSE) {
             $themes[] = $item;
         }
     }
     $adv = D("advPosition")->field("id,name")->findAll();
     $this->assign("adv", $adv);
     $this->assign("themes", $themes);
     parent::edit();
 }
開發者ID:dalinhuang,項目名稱:concourse,代碼行數:13,代碼來源:AdvLayoutAction.class.php

示例8: edit

 public function edit()
 {
     $adflashdir = FANWE_ROOT . "public/adflash/";
     $adflashlist = new Dir($adflashdir);
     $adflashs = array();
     foreach ($adflashlist as $adflash) {
         if ($adflash['ext'] == "swf") {
             $adflashs[] = str_replace(".swf", "", $adflash['filename']);
         }
     }
     $this->assign('adflashs', $adflashs);
     parent::edit();
 }
開發者ID:dalinhuang,項目名稱:concourse,代碼行數:13,代碼來源:AdvPositionAction.class.php

示例9: edit

 public function edit()
 {
     $type_list = M("WordType")->where('status = 1')->findAll();
     $this->assign("type_list", $type_list);
     parent::edit();
 }
開發者ID:dalinhuang,項目名稱:concourse,代碼行數:6,代碼來源:WordAction.class.php

示例10: edit

 public function edit()
 {
     $category_list = D("AlbumCategory")->order('sort asc,id asc')->findAll();
     $this->assign("category_list", $category_list);
     parent::edit();
 }
開發者ID:dalinhuang,項目名稱:concourse,代碼行數:6,代碼來源:AlbumAction.class.php

示例11: edit

 public function edit()
 {
     $this->groupClass = M("GroupClass")->where(array('status' => 1))->select();
     parent::edit();
 }
開發者ID:diycp,項目名稱:stusys,代碼行數:5,代碼來源:GroupAction.class.php

示例12: edit

 public function edit()
 {
     Cookie::set('_currentUrl_', NULL);
     parent::edit();
 }
開發者ID:dalinhuang,項目名稱:concourse,代碼行數:5,代碼來源:ForumPostAction.class.php

示例13: edit

 public function edit()
 {
     $ap_list = M("AdvPosition")->where('status = 1')->findAll();
     $this->assign("ap_list", $ap_list);
     parent::edit();
 }
開發者ID:BGCX261,項目名稱:zhubao-tupu-svn-to-git,代碼行數:6,代碼來源:AdvAction.class.php


注:本文中的CommonAction::edit方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。