Beispiel #1
0
Datei: view.php Projekt: nob/joi
 /**
  * set_layout
  * Interface for setting page layout
  *
  * @param string  $layout  Layout to use for page render
  * @return void
  */
 public static function set_layout($layout = NULL)
 {
     self::$_layout = $layout;
 }
Beispiel #2
0
 /**
  * set_layout
  * Interface for setting page layout
  *
  * @param string $layout Layout to use for page render
  * @return void
  */
 public static function set_layout($layout = null)
 {
     self::$_layout = Path::assemble(BASE_PATH, Config::getTemplatesPath(), $layout);
     $layout = Parse::frontMatter(File::get(self::$_layout . '.html'));
     self::$_extra_data = $layout['data'];
 }
Beispiel #3
0
 /**
  * set_layout
  * Interface for setting page layout
  *
  * @param string $layout Layout to use for page render
  * @return void
  */
 public static function set_layout($layout = null)
 {
     self::$_layout = $layout;
 }