If you wrote a custom class, you will put it in app\libs
for cake 1.x and in app\Lib
for cake 2.x if it is not in the \ vendors or app \ Vendor application.
To load it into a component for cake 2.x, you must add before declaring the component class:
App::uses('MathLib', 'Lib');
The class name and file name must be the same.
For 1.x you should download it:
App::import('Lib', 'MathLib');
Further information for 1.x is here http://book.cakephp.org/1.3/view/1579/Library-classes
If this is a provider, the same idea, but read these documents: http://book.cakephp.org/1.3/view/944/Vendor-examples .
This is the file that called it important.
source share