本文整理匯總了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();
}
示例2: edit
public function edit()
{
$cate_tree = M("Ask")->findAll();
$this->assign("cate_tree", $cate_tree);
Cookie::set('_currentUrl_', NULL);
parent::edit();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例9: edit
public function edit()
{
$type_list = M("WordType")->where('status = 1')->findAll();
$this->assign("type_list", $type_list);
parent::edit();
}
示例10: edit
public function edit()
{
$category_list = D("AlbumCategory")->order('sort asc,id asc')->findAll();
$this->assign("category_list", $category_list);
parent::edit();
}
示例11: edit
public function edit()
{
$this->groupClass = M("GroupClass")->where(array('status' => 1))->select();
parent::edit();
}
示例12: edit
public function edit()
{
Cookie::set('_currentUrl_', NULL);
parent::edit();
}
示例13: edit
public function edit()
{
$ap_list = M("AdvPosition")->where('status = 1')->findAll();
$this->assign("ap_list", $ap_list);
parent::edit();
}