コード例 #1
0
ファイル: OpenxController.php プロジェクト: nagyist/abge
 public function getPublishpublicacion($id = '')
 {
     if ($id == '') {
         return Redirect::to($this->route)->with('msg_error', Lang::get('No se encontro Publicação'));
     } else {
         $banner = Banners::find($id);
         $publish = Banners::publish($id);
         if (!$publish) {
             return Redirect::to($this->route . '/publicaciones')->with('msg_error', Lang::get('Publicação no Publicado'));
         } else {
             return Redirect::to($this->route . '/publicaciones')->with('msg_success', Lang::get('Publicação publicado'));
         }
     }
 }