当前位置: 首页>>代码示例>>PHP>>正文


PHP Autoloader::add_classes方法代码示例

本文整理汇总了PHP中Autoloader::add_classes方法的典型用法代码示例。如果您正苦于以下问题:PHP Autoloader::add_classes方法的具体用法?PHP Autoloader::add_classes怎么用?PHP Autoloader::add_classes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Autoloader的用法示例。


在下文中一共展示了Autoloader::add_classes方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: before

 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);
 }
开发者ID:EdgeCommerce,项目名称:edgecommerce,代码行数:23,代码来源:public-bak.php

示例2:

<?php

Autoloader::add_core_namespace("Util");
Autoloader::add_classes(array('Util\\Util' => __DIR__ . '/classes/util.php'));
开发者ID:abishekrsrikaanth,项目名称:fuel-util,代码行数:4,代码来源:bootstrap.php

示例3:

<?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'));
开发者ID:maca134,项目名称:fuel-amon,代码行数:13,代码来源:bootstrap.php

示例4: ini_set

<?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');
开发者ID:viva-yasu,项目名称:fuelenv,代码行数:19,代码来源:bootstrap.php

示例5:

<?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'));
开发者ID:socialskeptic,项目名称:sainsburys,代码行数:15,代码来源:bootstrap.php

示例6:

<?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 */
开发者ID:rob-mccann,项目名称:fuel-google-oauth2,代码行数:26,代码来源:bootstrap.php

示例7:

<?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'));
开发者ID:ClixLtd,项目名称:pccupload,代码行数:6,代码来源:bootstrap.php

示例8:

<?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'));
开发者ID:cloudetm,项目名称:development,代码行数:16,代码来源:bootstrap.php

示例9:

<?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 */
开发者ID:huglester,项目名称:fuel-GasCap,代码行数:12,代码来源:bootstrap.php

示例10:

<?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 */
开发者ID:niceboy120,项目名称:fuel-tablesort,代码行数:15,代码来源:bootstrap.php

示例11: isset

<?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'));
开发者ID:petrf89,项目名称:feedopf,代码行数:30,代码来源:bootstrap.php

示例12:

<?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'));
开发者ID:indigophp,项目名称:fuel-core,代码行数:15,代码来源:bootstrap.php

示例13:

<?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 */
开发者ID:nickbabenko,项目名称:fuelphp-gocardless,代码行数:15,代码来源:bootstrap.php

示例14: isset

<?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');
开发者ID:NoguHiro,项目名称:metro,代码行数:18,代码来源:bootstrap.php

示例15:

<?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'));
开发者ID:ClixLtd,项目名称:pccupload,代码行数:3,代码来源:bootstrap.php


注:本文中的Autoloader::add_classes方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。