本文整理汇总了PHP中Hooks::get_option方法的典型用法代码示例。如果您正苦于以下问题:PHP Hooks::get_option方法的具体用法?PHP Hooks::get_option怎么用?PHP Hooks::get_option使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Hooks
的用法示例。
在下文中一共展示了Hooks::get_option方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
* Site Root
*
* PHP 5
*
* tinyPHP(tm) : Simple & Lightweight MVC Framework (http://tinyphp.us/)
* Copyright 2012, 7 Media Web Solutions, LLC (http://www.7mediaws.org/)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2012, 7 Media Web Solutions, LLC (http://www.7mediaws.org/)
* @link http://tinyphp.us/ tinyPHP(tm) Project
* @since tinyPHP(tm) v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
defined('DS') or define('DS', DIRECTORY_SEPARATOR);
defined('BASE_PATH') or define('BASE_PATH', __DIR__ . DS);
defined('APP_FOLDER') or define('APP_FOLDER', 'Application');
defined('SYS_PATH') or define('SYS_PATH', BASE_PATH . 'tinyPHP' . DS);
defined('APP_PATH') or define('APP_PATH', SYS_PATH . APP_FOLDER . DS);
defined('LOCALE_DIR') or define('LOCALE_DIR', SYS_PATH . 'Locale');
defined('DEFAULT_LOCALE') or define('DEFAULT_LOCALE', '');
defined('ENCODING') or define('ENCODING', 'UTF-8');
defined('CURRENT_VERSION') or define('CURRENT_VERSION', '1.0.0');
require SYS_PATH . 'application.php';
$cookieDomain = new \tinyPHP\Classes\Libraries\Cookies();
defined('COOKIE_EXPIRE') or define('COOKIE_EXPIRE', time() + \tinyPHP\Classes\Libraries\Hooks::get_option('cookieexpire'));
defined('COOKIE_PATH') or define('COOKIE_PATH', \tinyPHP\Classes\Libraries\Hooks::get_option('cookiepath'));
defined('COOKIE_DOMAIN') or define('COOKIE_DOMAIN', $cookieDomain->cookieDomain());
defined('DEFAULT_LOCALE') or define('DEFAULT_LOCALE', Hooks::get_option('core_locale'));
$app = new \tinyPHP\Classes\Core\Bootstrap();