public function before() { parent::before(); // Override a package class \Autoloader::add_classes(array('Hybrid\\Pagination' => APPPATH . 'core/pagination.php')); // Cart \Config::load('cart', true); $cartManager = new \Cart\Manager(\Config::get('cart')); \CartManager::init($cartManager); \CartManager::context('Cart'); // Set Visitors group default \Product\Model_Attribute::set_user_group(3); \Theme::instance()->active('frontend'); \Theme::instance()->set_template($this->template); // Set a global variable so views can use it \View::set_global('theme', \Theme::instance(), false); \View::set_global('logged', $this->check_logged(), false); \View::set_global('guest', $this->check_guest(), false); \View::set_global('logged_type', $this->check_logged_type(), false); \View::set_global('my_categories', $this->my_categories(), false); // Pagination \Config::load('pagination', true); }
<?php Autoloader::add_core_namespace("Util"); Autoloader::add_classes(array('Util\\Util' => __DIR__ . '/classes/util.php'));
<?php /** * Amon: Integrate FuelPHP with Amon Exception & Logging * * @package Amon * @version v0.1 * @author Matthew McConnell * @license MIT License * @link http://github.com/maca134/fuelphp-amon */ Autoloader::add_core_namespace('Amon'); Autoloader::add_classes(array('Amon\\Error' => __DIR__ . '/classes/error.php', 'Amon\\Log' => __DIR__ . '/classes/log.php', 'Amon\\Amon_Data' => __DIR__ . '/classes/amon/data.php', 'Amon\\Amon_Request' => __DIR__ . '/classes/amon/request.php', 'Amon\\Amon_Request_Http' => __DIR__ . '/classes/amon/request/http.php', 'Amon\\Amon_Request_Zeromq' => __DIR__ . '/classes/amon/request/zeromq.php'));
<?php ini_set('default_charset', 'UTF-8'); // Bootstrap the framework DO NOT edit this require COREPATH . 'bootstrap.php'; \Autoloader::add_classes(array()); // Register the autoloader \Autoloader::register(); /** * Your environment. Can be set to any of the following: * * Fuel::DEVELOPMENT * Fuel::TEST * Fuel::STAGING * Fuel::PRODUCTION */ \Fuel::$env = isset($_SERVER['FUEL_ENV']) ? $_SERVER['FUEL_ENV'] : \Fuel::DEVELOPMENT; // Initialize the framework with the config file. \Fuel::init('config.php');
<?php /** * Fuel * * Fuel is a fast, lightweight, community driven PHP5 framework. * * @package Fuel * @version 1.7 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2015 Fuel Development Team * @link http://fuelphp.com */ \Autoloader::add_classes(array('Oil\\Cell' => __DIR__ . '/classes/cell.php', 'Oil\\Command' => __DIR__ . '/classes/command.php', 'Oil\\Console' => __DIR__ . '/classes/console.php', 'Oil\\Exception' => __DIR__ . '/classes/exception.php', 'Oil\\Generate' => __DIR__ . '/classes/generate.php', 'Oil\\Generate_Migration_Actions' => __DIR__ . '/classes/generate/migration/actions.php', 'Oil\\Generate_Admin' => __DIR__ . '/classes/generate/admin.php', 'Oil\\Generate_Scaffold' => __DIR__ . '/classes/generate/scaffold.php', 'Oil\\Package' => __DIR__ . '/classes/package.php', 'Oil\\Refine' => __DIR__ . '/classes/refine.php'));
<?php /** * Fuel is a fast, lightweight, community driven PHP5 framework. * * @package Fuel * @version 1.0 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2011 Fuel Development Team * @link http://fuelphp.com */ /** * FuelPHP Google package implementation. This namespace controls all Google * package functionality, including multiple sub-namespaces for the various * tools. * * @author Rob McCann * @version 1.0 * @package Fuel * @subpackage Google */ Autoloader::add_core_namespace('Google'); // Define available classes into the Autoloader Autoloader::add_classes(array('Google\\Analytics' => __DIR__ . '/classes/analytics.php', 'Google\\GoogleAPI' => __DIR__ . '/classes/googleapi.php')); /* End of file bootstrap.php */
<?php Autoloader::add_core_namespace('Gdata'); Autoloader::add_classes(array('Gdata\\Gdata' => __DIR__ . '/classes/gdata.php'));
<?php Autoloader::add_core_namespace('Crm\\Product'); // Load the config file for the package \Config::load('product', true); Autoloader::add_classes(array('Controller_Crm_Product' => __DIR__ . '/controller/index.php', 'Crm\\Product\\Product_model' => __DIR__ . '/model/product_model.php', 'Crm\\Product\\Client_product_model' => __DIR__ . '/model/client_product_model.php', 'Crm\\Product\\Product_class' => __DIR__ . '/classes/product_class.php', 'Crm\\Product\\Client_product_class' => __DIR__ . '/classes/client_product_class.php'));
<?php /** * Fuel * * Fuel is a fast, lightweight, community driven PHP5 framework. * * @package Fuel * @version 1.6 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2013 Fuel Development Team * @link http://fuelphp.com */ Autoloader::add_core_namespace('Auth'); Autoloader::add_classes(array('Auth\\Auth' => __DIR__ . '/classes/auth.php', 'Auth\\AuthException' => __DIR__ . '/classes/auth.php', 'Auth\\Auth_Driver' => __DIR__ . '/classes/auth/driver.php', 'Auth\\Auth_Acl_Driver' => __DIR__ . '/classes/auth/acl/driver.php', 'Auth\\Auth_Acl_Simpleacl' => __DIR__ . '/classes/auth/acl/simpleacl.php', 'Auth\\Auth_Acl_Ormacl' => __DIR__ . '/classes/auth/acl/ormacl.php', 'Auth\\Auth_Group_Driver' => __DIR__ . '/classes/auth/group/driver.php', 'Auth\\Auth_Group_Simplegroup' => __DIR__ . '/classes/auth/group/simplegroup.php', 'Auth\\Auth_Group_Ormgroup' => __DIR__ . '/classes/auth/group/ormgroup.php', 'Auth\\Auth_Login_Driver' => __DIR__ . '/classes/auth/login/driver.php', 'Auth\\Auth_Login_Simpleauth' => __DIR__ . '/classes/auth/login/simpleauth.php', 'Auth\\Auth_Login_Ormauth' => __DIR__ . '/classes/auth/login/ormauth.php', 'Auth\\SimpleUserUpdateException' => __DIR__ . '/classes/auth/exceptions.php', 'Auth\\SimpleUserWrongPassword' => __DIR__ . '/classes/auth/exceptions.php', 'Auth\\Model\\Auth_User' => __DIR__ . '/classes/model/auth/user.php', 'Auth\\Model\\Auth_Userpermission' => __DIR__ . '/classes/model/auth/userpermission.php', 'Auth\\Model\\Auth_Metadata' => __DIR__ . '/classes/model/auth/metadata.php', 'Auth\\Model\\Auth_Group' => __DIR__ . '/classes/model/auth/group.php', 'Auth\\Model\\Auth_Grouppermission' => __DIR__ . '/classes/model/auth/grouppermission.php', 'Auth\\Model\\Auth_Role' => __DIR__ . '/classes/model/auth/role.php', 'Auth\\Model\\Auth_Rolepermission' => __DIR__ . '/classes/model/auth/rolepermission.php', 'Auth\\Model\\Auth_Permission' => __DIR__ . '/classes/model/auth/permission.php'));
<?php /** * @package GasCap * @version 0.1 * @author Kelly Banman * @license MIT License * @copyright 2011 Kelly Banman * @link http://kellybanman.com */ Autoloader::add_classes(array('Auth_Login_GasCap' => __DIR__ . '/drivers/auth/login/gascap.php', 'LightOpenID' => PKGPATH . 'gascap' . DS . 'vendor' . DS . 'lightopenid' . DS . 'openid.php', 'OAuthSimple' => PKGPATH . 'gascap' . DS . 'vendor' . DS . 'oauthsimple' . DS . 'php' . DS . 'OAuthSimple.php')); /* End of file bootstrap.php */
<?php Autoloader::add_core_namespace('Breadcrumb'); Autoloader::add_classes(array('Breadcrumb\\Breadcrumb' => __DIR__ . '/classes/breadcrumb.php'));
<?php /** * Fuel is a fast, lightweight, community driven PHP5 framework. * * @package Fuel * @version 1.0 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2011 Fuel Development Team * @link http://fuelphp.com */ Autoloader::add_core_namespace('TableSort'); Autoloader::add_classes(array('TableSort\\TableSort' => __DIR__ . '/classes/tablesort.php')); /* End of file bootstrap.php */
<?php // Bootstrap the framework DO NOT edit this require COREPATH . 'bootstrap.php'; \Autoloader::add_classes(array()); // Register the autoloader \Autoloader::register(); /** * Your environment. Can be set to any of the following: * * Fuel::DEVELOPMENT * Fuel::TEST * Fuel::STAGING * Fuel::PRODUCTION */ \Fuel::$env = isset($_SERVER['FUEL_ENV']) ? $_SERVER['FUEL_ENV'] : \Fuel::DEVELOPMENT; // Initialize the framework with the config file. \Fuel::init('config.php'); // Add namespace, necessary if you want the autoloader to be able to find classes \Autoloader::add_namespace('Eshop', __DIR__ . '/classes/'); // Add as core namespace \Autoloader::add_core_namespace('Eshop'); // Add as core namespace (classes are aliased to global, thus useable without namespace prefix) // Set the second argument to true to prefix and be able to overwrite core classes \Autoloader::add_core_namespace('Eshop', true); // And add the classes, this is useful for: // - optimization: no path searching is necessary // - it's required to be able to use as a core namespace // - if you want to break the autoloader's path search rules \Autoloader::add_classes(array('Eshop\\Cart' => __DIR__ . '/classes/cart.php'));
<?php /* * This file is part of the Indigo Core package. * * (c) Indigo Development Team * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ Autoloader::add_core_namespace('Indigo\\Core'); /** * Core Extensions */ Autoloader::add_classes(array('Indigo\\Core\\Image' => __DIR__ . '/classes/image.php', 'Indigo\\Core\\Image_Driver' => __DIR__ . '/classes/image/driver.php', 'Indigo\\Core\\Image_Gd' => __DIR__ . '/classes/image/gd.php', 'Indigo\\Core\\Image_Imagick' => __DIR__ . '/classes/image/imagick.php', 'Indigo\\Core\\Theme' => __DIR__ . '/classes/theme.php'));
<?php /** * Fuel is a fast, lightweight, community driven PHP5 framework. * * @package Fuel * @version 1.0 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2011 Fuel Development Team * @link http://fuelphp.com */ Autoloader::add_core_namespace('GoCardless'); Autoloader::add_classes(array('GoCardless\\GoCardless' => __DIR__ . '/classes/GoCardless.php', 'GoCardless\\GoCardless_Bill' => __DIR__ . '/classes/GoCardless/Bill.php', 'GoCardless\\GoCardless_Client' => __DIR__ . '/classes/GoCardless/Client.php', 'GoCardless\\GoCardless_Exceptions' => __DIR__ . '/classes/GoCardless/Exceptions.php', 'GoCardless\\GoCardless_Merchant' => __DIR__ . '/classes/GoCardless/Merchant.php', 'GoCardless\\GoCardless_PreAuthorization' => __DIR__ . '/classes/GoCardless/PreAuthorization.php', 'GoCardless\\GoCardless_Request' => __DIR__ . '/classes/GoCardless/Request.php', 'GoCardless\\GoCardless_Resource' => __DIR__ . '/classes/GoCardless/Resource.php', 'GoCardless\\GoCardless_Subscription' => __DIR__ . '/classes/GoCardless/Subscription.php', 'GoCardless\\GoCardless_User' => __DIR__ . '/classes/GoCardless/User.php', 'GoCardless\\GoCardless_Utils' => __DIR__ . '/classes/GoCardless/Utils.php')); /* End of file bootstrap.php */
<?php // Bootstrap the framework DO NOT edit this require COREPATH . 'bootstrap.php'; Autoloader::add_classes(array('ImageText' => APPPATH . 'vendor' . DS . 'ImageText' . DS . 'ImageText.php')); // Register the autoloader Autoloader::register(); /** * Your environment. Can be set to any of the following: * * Fuel::DEVELOPMENT * Fuel::TEST * Fuel::STAGING * Fuel::PRODUCTION */ Fuel::$env = isset($_SERVER['FUEL_ENV']) ? $_SERVER['FUEL_ENV'] : Fuel::DEVELOPMENT; // Initialize the framework with the config file. Fuel::init('config.php');
<?php Autoloader::add_core_namespace('Crm\\Invoice'); // Load the config file for the package #\Config::load('invoice', true); Autoloader::add_classes(array('Controller_Crm_Invoice' => __DIR__ . '/controller/invoice.php', 'Crm\\Invoice\\Invoice_model' => __DIR__ . '/model/invoice_model.php', 'Crm\\Invoice\\Invoice_class' => __DIR__ . '/classes/invoice_class.php'));
<?php Autoloader::add_core_namespace('Crm\\Reports'); Autoloader::add_classes(array('Controller_Crm_Reports_Ppi' => __DIR__ . '/controller/ppi.php', 'Crm\\Reports\\Model_Ppi' => __DIR__ . '/model/ppi.php'));
<?php Autoloader::add_core_namespace('Crm\\Creditor'); // Load the config file for the package \Config::load('creditor', true); Autoloader::add_classes(array('Controller_Crm_Creditor' => __DIR__ . '/controller/index.php', 'Crm\\Creditor\\Creditor_model' => __DIR__ . '/model/creditor_model.php', 'Crm\\Creditor\\Creditor_class' => __DIR__ . '/classes/creditor_class.php'));
<?php Autoloader::add_classes(array('MassUser\\Intranet' => __DIR__ . '/classes/intranet.php', 'MassUser\\ActiveDirectory' => __DIR__ . '/classes/activedirectory.php', 'MassUser\\EMail' => __DIR__ . '/classes/email.php', 'MassUser\\Dialler' => __DIR__ . '/classes/dialler.php', 'MassUser\\Debtsolv' => __DIR__ . '/classes/debtsolv.php', 'MassUser\\PBX' => __DIR__ . '/classes/pbx.php', 'MassUser\\Objects\\User_Object' => __DIR__ . '/classes/objects/user_object.php'));
<?php /** * Fuzzy Search * * @package Fuzzy_Search * @version 1.0 * @author Takeshige Nii * @license MIT License * @copyright 2015 rz Inc. * @link http://rrr-z.jp/ */ \Autoloader::add_core_namespace('Fuzzy_Search'); \Autoloader::add_classes(array('Fuzzy_Search\\Fuzzy' => __DIR__ . '/classes/fuzzy.php', 'Fuzzy_Search\\Fuzzy_Address' => __DIR__ . '/classes/fuzzy/address.php', 'Fuzzy_Search\\Fuzzy_Tell' => __DIR__ . '/classes/fuzzy/tell.php', 'Fuzzy_Search\\Fuzzy_Zip' => __DIR__ . '/classes/fuzzy/zip.php', 'Fuzzy_Search\\Traits_Number' => __DIR__ . '/classes/traits/number.php', 'Fuzzy_Search\\Traits_Symbol' => __DIR__ . '/classes/traits/symbol.php'));
<?php /** * Fuel is a fast, lightweight, community driven PHP5 framework. * * @package Fuel * @version 1.5 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2013 Fuel Development Team * @link http://fuelphp.com */ Autoloader::add_classes(array('Orm\\Model' => __DIR__ . '/classes/model.php', 'Orm\\Query' => __DIR__ . '/classes/query.php', 'Orm\\BelongsTo' => __DIR__ . '/classes/belongsto.php', 'Orm\\HasMany' => __DIR__ . '/classes/hasmany.php', 'Orm\\HasOne' => __DIR__ . '/classes/hasone.php', 'Orm\\ManyMany' => __DIR__ . '/classes/manymany.php', 'Orm\\Relation' => __DIR__ . '/classes/relation.php', 'Orm\\Model_Soft' => __DIR__ . '/classes/model/soft.php', 'Orm\\Observer' => __DIR__ . '/classes/observer.php', 'Orm\\Observer_CreatedAt' => __DIR__ . '/classes/observer/createdat.php', 'Orm\\Observer_Typing' => __DIR__ . '/classes/observer/typing.php', 'Orm\\Observer_UpdatedAt' => __DIR__ . '/classes/observer/updatedat.php', 'Orm\\Observer_Validation' => __DIR__ . '/classes/observer/validation.php', 'Orm\\Observer_Self' => __DIR__ . '/classes/observer/self.php', 'Orm\\Observer_Slug' => __DIR__ . '/classes/observer/slug.php', 'Orm\\RecordNotFound' => __DIR__ . '/classes/model.php', 'Orm\\FrozenObject' => __DIR__ . '/classes/model.php', 'Orm\\InvalidContentType' => __DIR__ . '/classes/observer/typing.php', 'Orm\\ValidationFailed' => __DIR__ . '/classes/observer/validation.php', 'Orm\\RelationNotSoft' => __DIR__ . '/classes/model/soft.php'));
<?php /** * Access: role based permissions library for FuelPHP - depends on Warden. * * @package Access * @subpackage Access * @version 2.0 * @author Jordan Kapelner * @license MIT License * @copyright (c) 2013 Jordan Kapelner */ /* * Make sure the dependency packages are loaded. */ Package::load(array('warden')); Autoloader::add_core_namespace('Access'); Autoloader::add_classes(array('Access\\Access' => __DIR__ . '/classes/access.php')); Config::load('access', true);
<?php Autoloader::add_core_namespace('Skills', true); Autoloader::add_classes(array('Skills\\Skills' => __DIR__ . '/classes/skills.php', 'Skills\\Validation' => __DIR__ . '/classes/validation.php', 'Skills\\SkillsException' => __DIR__ . '/classes/skills.php', 'Skills\\Model\\Skill' => __DIR__ . '/classes/model/skill.php', 'Skills\\Access' => __DIR__ . '/classes/access.php'));
<?php Autoloader::add_core_namespace('Twitter'); Autoloader::add_classes(array('Twitter\\Twitter' => __DIR__ . '/classes/twitter.php'));
<?php /** * Fuel is a fast, lightweight, community driven PHP5 framework. * * @package Fuel * @version 1.0 * @license MIT License * @copyright 2010 - 2011 Fuel Development Team * @link http://fuelphp.com */ Autoloader::add_classes(array('NinjAuth\\Controller' => __DIR__ . '/classes/controller.php', 'NinjAuth\\Exception' => __DIR__ . '/classes/exception.php', 'NinjAuth\\Model_Authentication' => __DIR__ . '/classes/model/authentication.php', 'NinjAuth\\Strategy' => __DIR__ . '/classes/strategy.php', 'NinjAuth\\Strategy_OAuth' => __DIR__ . '/classes/strategy/oauth.php', 'NinjAuth\\Strategy_OAuth2' => __DIR__ . '/classes/strategy/oauth2.php', 'NinjAuth\\Strategy_OpenId' => __DIR__ . '/classes/strategy/openid.php')); /* End of file bootstrap.php */
<?php /** * Fuel is a fast, lightweight, community driven PHP5 framework. * * @package Fuel * @version 1.0 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2011 Fuel Development Team * @link http://fuelphp.com */ Autoloader::add_classes(array('Orm\\Model' => __DIR__ . '/classes/model.php', 'Orm\\Query' => __DIR__ . '/classes/query.php', 'Orm\\BelongsTo' => __DIR__ . '/classes/belongsto.php', 'Orm\\HasMany' => __DIR__ . '/classes/hasmany.php', 'Orm\\HasOne' => __DIR__ . '/classes/hasone.php', 'Orm\\ManyMany' => __DIR__ . '/classes/manymany.php', 'Orm\\Relation' => __DIR__ . '/classes/relation.php', 'Orm\\Observer' => __DIR__ . '/classes/observer.php', 'Orm\\Observer_CreatedAt' => __DIR__ . '/classes/observer/createdat.php', 'Orm\\Observer_Typing' => __DIR__ . '/classes/observer/typing.php', 'Orm\\Observer_UpdatedAt' => __DIR__ . '/classes/observer/updatedat.php', 'Orm\\Observer_Validation' => __DIR__ . '/classes/observer/validation.php', 'Orm\\Exception' => __DIR__ . '/classes/exceptions.php', 'Orm\\RecordNotFound' => __DIR__ . '/classes/exceptions.php', 'Orm\\UndefinedProperty' => __DIR__ . '/classes/exceptions.php', 'Orm\\UndefinedRelation' => __DIR__ . '/classes/exceptions.php', 'Orm\\InvalidObserver' => __DIR__ . '/classes/exceptions.php', 'Orm\\FrozenObject' => __DIR__ . '/classes/exceptions.php')); /* End of file bootstrap.php */
<?php /** * FuelPHP Excel package. * * @package Excel * @version 1.0 * @author Muhittin Özer * @link http://www.muhittinozer.com */ /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { define('PHPEXCEL_ROOT', __DIR__ . DS); require PHPEXCEL_ROOT . 'PHPExcel' . DS . 'Autoloader.php'; } Autoloader::add_classes(array('PHPExcel' => __DIR__ . DS . 'PHPExcel.php', 'PHPExcel_IOFactory' => __DIR__ . DS . 'PHPExcel' . DS . 'IOFactory.php')); /* * End of file bootstrap.php */
<?php /** * Fuel * * Fuel is a fast, lightweight, community driven PHP5 framework. * * @package Fuel * @version 1.7 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2015 Fuel Development Team * @link http://fuelphp.com */ \Autoloader::add_core_namespace('Email'); \Autoloader::add_classes(array('Email\\Email' => __DIR__ . '/classes/email.php', 'Email\\Email_Driver' => __DIR__ . '/classes/email/driver.php', 'Email\\Email_Driver_Mail' => __DIR__ . '/classes/email/driver/mail.php', 'Email\\Email_Driver_Smtp' => __DIR__ . '/classes/email/driver/smtp.php', 'Email\\Email_Driver_Sendmail' => __DIR__ . '/classes/email/driver/sendmail.php', 'Email\\Email_Driver_Noop' => __DIR__ . '/classes/email/driver/noop.php', 'Email\\Email_Driver_Mailgun' => __DIR__ . '/classes/email/driver/mailgun.php', 'Email\\Email_Driver_Mandrill' => __DIR__ . '/classes/email/driver/mandrill.php', 'Email\\AttachmentNotFoundException' => __DIR__ . '/classes/email.php', 'Email\\InvalidAttachmentsException' => __DIR__ . '/classes/email.php', 'Email\\InvalidEmailStringEncoding' => __DIR__ . '/classes/email.php', 'Email\\EmailSendingFailedException' => __DIR__ . '/classes/email.php', 'Email\\EmailValidationFailedException' => __DIR__ . '/classes/email.php', 'Email\\SmtpTimeoutException' => __DIR__ . '/classes/email/driver/smtp.php', 'Email\\SmtpConnectionException' => __DIR__ . '/classes/email/driver/smtp.php', 'Email\\SmtpCommandFailureException' => __DIR__ . '/classes/email/driver/smtp.php', 'Email\\SmtpAuthenticationFailedException' => __DIR__ . '/classes/email/driver/smtp.php', 'Email\\SendmailFailedException' => __DIR__ . '/classes/email/driver/sendmail.php', 'Email\\SendmailConnectionException' => __DIR__ . '/classes/email/driver/sendmail.php'));
<?php Autoloader::add_classes(array('Fieldset' => __DIR__ . '/classes/fieldset.php', 'Fieldset_Field' => __DIR__ . '/classes/field.php'));