yaf
yaf copied to clipboard
'Yaf_Exception_TypeError' with message 'Expects a string or an array as parameter'
<?php
const APPLICATION_PATH = __DIR__;
$api = new Yaf_Application(APPLICATION_PATH);
$api->bootstrap()->run();
this code throws the following error..
Fatal error: Uncaught exception 'Yaf_Exception_TypeError' with message 'Expects a string or an array as parameter' in .....
This error message is some what misleading... I'm obviously providing a string in arg#1...
The error message should say something like this...
Expects a path to application.ini file as a string or a configuration array as parameter
是个bug