예제 #1
0
파일: View.php 프로젝트: uiandwe/profile
 /**
  * Get the contents of the view instance.
  *
  * @return string
  */
 protected function renderContents()
 {
     // We will keep track of the amount of views being rendered so we can flush
     // the section after the complete rendering operation is done. This will
     // clear out the sections for any separate views that may be rendered.
     $this->factory->incrementRender();
     $this->factory->callComposer($this);
     $contents = $this->getContents();
     // Once we've finished rendering the view, we'll decrement the render count
     // so that each sections get flushed out next time a view is created and
     // no old sections are staying around in the memory of an environment.
     $this->factory->decrementRender();
     return $contents;
 }
예제 #2
0
 /**
  * Call the composer for a given view.
  *
  * @param \Illuminate\View\View $view
  * @return void 
  * @static 
  */
 public static function callComposer($view)
 {
     \Illuminate\View\Factory::callComposer($view);
 }