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


PHP Axis::siteId方法代码示例

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


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

示例1: realpath

 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Axis is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Axis.  If not, see <http://www.gnu.org/licenses/>.
 *
 * @category    Axis
 * @package     Axis_Test
 * @copyright   Copyright 2008-2011 Axis
 * @license     GNU Public License V3.0
 */
define('AXIS_ROOT', realpath(dirname('../')));
define('TESTS_PATH', realpath(dirname(__FILE__)));
set_include_path(realpath(TESTS_PATH . '/../library') . PATH_SEPARATOR . realpath(TESTS_PATH . '/../app/code') . PATH_SEPARATOR . realpath(TESTS_PATH) . PATH_SEPARATOR . get_include_path());
@(include_once 'Zend/Loader/Autoloader.php');
if (!class_exists('Zend_Loader')) {
    die('Please, copy Zend Framework to the "library" folder: ' . realpath(TESTS_PATH . '/../library'));
}
$autoloadeer = Zend_Loader_Autoloader::getInstance();
$autoloadeer->setFallbackAutoloader(true);
require_once TESTS_PATH . '/config.php';
Zend_Registry::set('config', $config);
Axis::$siteId = $config['system']['siteId'];
$bootstrapConfig = array('bootstrap' => array('path' => AXIS_ROOT . '/library/Axis/Bootstrap/Test.php', 'class' => 'Axis_Bootstrap_Test'), 'phpSettings' => array('display_startup_errors' => true, 'display_errors' => true));
$application = new Zend_Application(APPLICATION_ENV, $bootstrapConfig);
$application->bootstrap(array('Loader', 'Config', 'DbAdapter', 'Cache', 'Locale', 'Area', 'Translate'));
开发者ID:rommmka,项目名称:axiscommerce,代码行数:31,代码来源:bootstrap.php


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