本文整理汇总了PHP中Solar::stop方法的典型用法代码示例。如果您正苦于以下问题:PHP Solar::stop方法的具体用法?PHP Solar::stop怎么用?PHP Solar::stop使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Solar
的用法示例。
在下文中一共展示了Solar::stop方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
public function tearDown()
{
Solar::stop();
}
示例2: dirname
* When you're ready to really get going, point your web server document root
* to `system/docroot/` and turn on mod_rewrite.
*
*/
// Solar system directory
$system = dirname(__FILE__);
// set the include-path
set_include_path("{$system}/include");
// load Solar
require_once 'Solar.php';
// get the system config array
$config = (require "{$system}/config.php");
// force the Action and Public URI path configs, overwriting anything from
// the original config
$path = $_SERVER['REQUEST_URI'];
$pos = strpos($path, "/index.php");
if ($pos !== false) {
// strip "/index.php" and everything after it
$path = substr($path, 0, $pos);
}
$path = rtrim($path, '/');
$config['Solar_Uri_Action']['path'] = "{$path}/index.php";
$config['Solar_Uri_Public']['path'] = "{$path}/docroot/public";
// start Solar with the modified config values
Solar::start($config);
// instantiate and run the front controller
$front = Solar_Registry::get('controller_front');
$front->display();
// Done!
Solar::stop();
示例3: tearDown
public function tearDown()
{
Solar::stop();
$this->_uri = null;
}