Predefined Constants
The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.
-
YAF_VERSION
(string) -
YAF_ENVIRON
(string) -
YAF_ERR_STARTUP_FAILED
(integer) -
YAF_ERR_ROUTE_FAILED
(integer) -
YAF_ERR_DISPATCH_FAILED
(integer) -
YAF_ERR_AUTOLOAD_FAILED
(integer) -
YAF_ERR_NOTFOUND_MODULE
(integer) -
YAF_ERR_NOTFOUND_CONTROLLER
(integer) -
YAF_ERR_NOTFOUND_ACTION
(integer) -
YAF_ERR_NOTFOUND_VIEW
(integer) -
YAF_ERR_CALL_FAILED
(integer) -
YAF_ERR_TYPE_ERROR
(integer)
- Введение
- Установка и настройка
- Предопределенные константы
- Примеры
- Application Configuration
- The Yaf_Application class
- The Yaf_Bootstrap_Abstract class
- The Yaf_Dispatcher class
- The Yaf_Config_Abstract class
- The Yaf_Config_Ini class
- The Yaf_Config_Simple class
- The Yaf_Controller_Abstract class
- The Yaf_Action_Abstract class
- The Yaf_View_Interface class
- The Yaf_View_Simple class
- The Yaf_Loader class
- The Yaf_Plugin_Abstract class
- The Yaf_Registry class
- The Yaf_Request_Abstract class
- The Yaf_Request_Http class
- The Yaf_Request_Simple class
- The Yaf_Response_Abstract class
- The Yaf_Route_Interface class
- The Yaf_Route_Map class
- The Yaf_Route_Regex class
- The Yaf_Route_Rewrite class
- The Yaf_Router class
- The Yaf_Route_Simple class
- The Yaf_Route_Static class
- The Yaf_Route_Supervar class
- The Yaf_Session class
- The Yaf_Exception class
- The Yaf_Exception_TypeError class
- The Yaf_Exception_StartupError class
- The Yaf_Exception_DispatchFailed class
- The Yaf_Exception_RouterFailed class
- The Yaf_Exception_LoadFailed class
- The Yaf_Exception_LoadFailed_Module class
- The Yaf_Exception_LoadFailed_Controller class
- The Yaf_Exception_LoadFailed_Action class
- The Yaf_Exception_LoadFailed_View class
Коментарии
The documentation here is not fully correct.
<?php
print_r(get_defined_constants());
die;
?>
Will show basically:
[PHP_YAF_VERSION] => 2.3.2
[YAF_ENVIRON] => product
[YAF_ERR_STARTUP_FAILED] => 512
[YAF_ERR_ROUTE_FAILED] => 513
[YAF_ERR_DISPATCH_FAILED] => 514
[YAF_ERR_AUTOLOAD_FAILED] => 520
[YAF_ERR_NOTFOUND_MODULE] => 515
[YAF_ERR_NOTFOUND_CONTROLLER] => 516
[YAF_ERR_NOTFOUND_ACTION] => 517
[YAF_ERR_NOTFOUND_VIEW] => 518
[YAF_ERR_CALL_FAILED] => 519
[YAF_ERR_TYPE_ERROR] => 521
So use PHP_YAF_VERSION instead of just YAF_VERSION