Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to put custom and third-party classes in a CakePHP project?

Tags:

php

cakephp

I've just started working on an existing CakePHP project. I will be developing a class that does some operations on an Excel spreadsheet. Like a PEAR object, the class will be called by Cake components, but in and of itself it will not call any Cake components. Where is the best place to put the class file in the project hierarchy?

like image 515
Kit Peters Avatar asked Nov 18 '25 00:11

Kit Peters


1 Answers

In one of the vendors folders (/app/vendors, or /vendors if you want to use your class in multiple applications), see also: http://book.cakephp.org/view/538/Loading-Vendor-Files

like image 52
dhofstet Avatar answered Nov 19 '25 13:11

dhofstet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!