Exemplo n.º 1
0
 public function getpage($name)
 {
     $name = explode(".", $name)[0];
     $address = addresscontroller::get();
     $pages = pagesModule::findname($name);
     return View::make('sidepages', array("address" => $address[0], "pages" => $pages[0]));
 }
Exemplo n.º 2
0
 public function Delete($id)
 {
     if ($this->boolchecksessionlogin()) {
         $pages = pagesModule::find($id);
         $pages->delete();
         $pages = pagesModule::get();
         return Redirect::to("admin/pages-list")->with("pages", $pages);
         //return View::make("admin.pages.pageslist",array("pages"=>$pages));
     }
     return Redirect::to("admin/login");
 }