Example #1
0
 /**
  * ACTION - Backend add action.
  *
  * @access   public
  * @return   void
  * @since    1.0.0-alpha
  * @version  1.0.0-alpha
  */
 public function actionAdd()
 {
     $url = Route::factoryBackendURL('files', 'list');
     Router::relocate($url);
 }
Example #2
0
 /**
  * Remove particular entity after form submit and if form is valid.
  *
  * @access     protected
  * @since      1.0.0-alpha
  * @version    1.0.0-alpha
  */
 protected function alterDelete()
 {
     $this->getModel()->remove();
     DB::flush();
     $sController = Router::getParam('controller');
     $sID = Router::getParam('id', NULL);
     $sExtra = Router::getParam('extra', NULL);
     $sURL = Route::factoryBackendURL($sController, 'list', $sID, $sExtra);
     Session::flash($sURL, __('Entry has been deleted successfully.'));
 }