Monday, July 20, 2015

Cakephp 3 core path change

Hi everyone.

I'm having a small problem changing the path of cake core files. So I change the path on the "Config/paths.php" file to something like:

define('CAKE_CORE_INCLUDE_PATH', '/path/to/library/cakephp');

I have no trouble running the code after this change but as soon as I remove the folder /cakephp/cakephp from the /vendors I start getting this error:

Warning: require(<path>/vendor/cakephp/cakephp/src/Core/functions.php): failed to open stream: No such file or directory in <path>/vendor/composer/autoload_real.php on line 58
Fatal error: require(): Failed opening required '<path>/vendor/cakephp/cakephp/src/Core/functions.php' (include_path='<path>/vendor/pear-pear.horde.org/Horde_Translation:<path>//vendor/pear-pear.horde.org/Horde_Exception:<path>//vendor/pear-pear.horde.org/Horde_Util:<path>//vendor/pear-pear.horde.org/Horde_Text_Diff:.:/usr/local/lsws/lsphp5/lib/php') in<path>//vendor/composer/autoload_real.php on line 58

Horde_Text_Diff is a simple package I've added with composer that does some text diff but if that is the problem I'm not sure how to deal with it, I've tried googling but with no luck so maybe someone here had a similar experience in the past?

Thanks in advance


--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: