Example #1
0
    /**
     * Singleton method for asset class
     *
     * @static
     * @return Kohana_Asset
     */
    public static function instance()
    {
        if (self::$_instance === NULL) {
            $config = Kohana::$config->load('asset')->as_array();
            self::$_instance = new Asset($config);
        }

        return self::$_instance;
    }
Example #2
0
	public function __construct() { parent::__construct(); }
Example #3
0
 public function __construct($theme = FALSE)
 {
     // Load the config
     self::$_config = Kohana::$config->load("asset");
 }