How to include a class from outside the cakephp folder
See my current file structure
CakePHP
- bin
- config
- src
- vendor
- webroot
RowPHP
- push.php
I want to import/include
Push a class to my cakephp2 application which is in push.php file outside cakephp
What i tried
require_once( ROOT . DS . '..' . DS . 'RowPHP'. DS . 'push.php');
$pushOb = new Push();
it turns on successfully, but when i try to create an object via error
Fatal error: Class 'App \ Controller \ Push' not found
Question: How can I import / include this class in my cakephp application?
+3
source to share