Advertisement
Guest User

Untitled

a guest
Aug 15th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     /**
  2.      * Overrides the parent method to allow additional regions in the layout view.
  3.      */
  4.     public function render($view, $data=null, $return=false)
  5.     {
  6.         $output = $this->renderPartial($view, $data, true);
  7.         if($this->ajax && !$return)
  8.         {
  9.             echo $output;
  10.             return;
  11.         }
  12.  
  13.         if(($layoutFile = $this->getLayoutFile($this->layout)) !== false)
  14.             $output = $this->renderFile($layoutFile, array(
  15.                 'content'   => $output,
  16.                 'filter'    => $this->filter,
  17.                 'manager'   => $this->manager,
  18.             ), true);
  19.  
  20.         $output = $this->processOutput($output);
  21.  
  22.         if($return)
  23.             return $output;
  24.         else
  25.             echo $output;
  26.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement