Loading Files
In 1.1, there were functions such as uses, vendor, and the load* functions like loadModel. These have been replaced with App::import.
To use vendor libraries/files which do not follow the cake naming convention or are nested in subdirectories in vendors use Простой текст
App::import('vendor', 'aUniqueIdentifier', array('file' =>'path/relative/to/vendor/file.php'));
Returns true if successful


Коментарии:
Добавить коментарий