Example #1
0
 /**
  * This is the main setup method. Used to start the whole system up.
  * @return boolean
  */
 public function init()
 {
     \Config::setBasePath(BASEPATH);
     \Config::load('global', PKGPATH . 'App/Config/Application.php');
     //Let's see what our base url is;
     $base_url = \Config::get('base_url');
     if (empty($base_url)) {
         //Then form the current path;
         $base_url = self::create_url();
     }
 }