Ticket Details
Cannot use Libraries::add in Bootstrap - class not found
RFC Ticket (pending)
###What happened:
- tried to register app specific libraries by following Zend integration tutorial:
in bootstrap.php
{{{
Libraries::add("MyLib", array(
"prefix" => "MyLib_",
"includePath" => '/htdocs/libraries/MyLib',
"transform" => function($class) { return str_replace("_", "/", $class) . ".php"; }
));
}}}
result:
{{{Fatal error: Class 'Libraries' not found...}}}
which seems odd since it's not throwing an exception following class file inclusion
Added this line:
{{{use lithium\core\Libraries;}}}
another fatal error
{{{Fatal error: Class 'lithium\util\String' not found in C:\Users\SunWuKung\Documents\My Dropbox\Dev\lithium\libraries\lithium\core\Libraries.php on line 768}}}
###What was expected:
- autoloading of required library class
Updates
on 03.18.11
by harikt
- type was changed to rfc