コード例 #1
0
ファイル: AdminGallery.php プロジェクト: RonyAprianto/cms
 public function editGallery($id_gallery)
 {
     $gallery = m_gallery::find($id_gallery);
     $page_title = "Edit Gallery";
     $title = "Admin - Edit Gallery";
     $button_name = "Update Gallery";
     $url = 'gallery/updateGallery';
     $status = m_status::wherein('code', $this->code)->lists('desc', 'code');
     return view('backend.formgallery', ['title' => $title, 'page_title' => $page_title, 'button_name' => $button_name, 'url' => $url, 'gallery' => $gallery, 'status' => $status]);
 }
コード例 #2
0
ファイル: AdminArt.php プロジェクト: RonyAprianto/cms
 public function addArt()
 {
     $page_title = "Add Article";
     $title = "Admin - Add Article";
     $button_name = "Create Article";
     $url = 'art/storeArt';
     //$status = m_status::lists('desc','code');
     $status = m_status::wherein('code', $this->code)->lists('desc', 'code');
     $myclass = new myclass();
     $cb_cat = $myclass->gen_cat();
     return view('backend.formart', ['title' => $title, 'page_title' => $page_title, 'button_name' => $button_name, 'url' => $url, 'status' => $status, 'cb_cat' => $cb_cat]);
 }
コード例 #3
0
ファイル: AdminCat.php プロジェクト: RonyAprianto/cms
 public function editCat($catid)
 {
     $cat = m_cat::find($catid);
     $page_title = "Edit Category";
     $title = "Admin - Edit Category ID " . $catid;
     $button_name = "Update Category";
     $url = 'cat/updateCat';
     //$status = m_status::lists('desc','code');
     $status = m_status::wherein('code', $this->code)->lists('desc', 'code');
     $myclass = new myclass();
     $cb_parent = $myclass->gen_cat();
     return view('backend.formcat', ['title' => $title, 'page_title' => $page_title, 'button_name' => $button_name, 'url' => $url, 'status' => $status, 'cb_parent' => $cb_parent, 'cat' => $cat]);
 }