Example #1
0
 /**
  * @param string $backUrl
  * @param int $id
  * @return $this
  */
 public function open($backUrl = 'home', $id = 0)
 {
     MySession::saveModel($this->prefix, $id);
     // Display
     $this->dsp->content = $this->dsp->open;
     if (method_exists($this, 'beforeOpen')) {
         $this->beforeOpen();
     }
     return View::make('dispatch')->with(['dsp' => $this->dsp]);
 }