Example #1
0
 /**
  * Method: install_blade
  * =========================================================================
  * This installs the laravel blade templating engine.
  *
  * Parameters:
  * -------------------------------------------------------------------------
  * n/a
  *
  * Returns:
  * -------------------------------------------------------------------------
  * void
  */
 public function install_blade()
 {
     // Set the cache path
     $cache_path = Paths::parentTheme() . '/views/cache';
     // Create our view paths array
     $views_paths = [];
     // Are we being run from a child theme?
     if (Paths::currentTheme() != Paths::parentTheme()) {
         $views_paths[] = Paths::currentTheme() . '/views';
     }
     // Add our own views
     $views_paths[] = Paths::parentTheme() . '/views';
     // Install Blade
     \Gears\View::install($views_paths, $cache_path);
 }