Saturday, April 11, 2015

Re: How to move the directory /cakePHP 3.0/

I wouldn't recommend doing this for cake 3. What is the reason behind having a common core?

On Saturday, April 11, 2015 at 11:18:17 AM UTC+2, InYan wrote:
I want to move the kernel to the root directory of the server to the kernel was common to all applications on the server. Then it will be more convenient to update to the new version.
For my old applications written in cakePHP v1.3.x I use a common core library folder (CAKE). To do this, I'm just in the file webroot/index.php changed the path.
When I started using v3.x and changed the path webroot/index.php:
 
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define
('CAKE_CORE_INCLUDE_PATH', dirname(dirname(dirname(__FILE__))) . DS . 'my-lib' );
}


it did not help. I received an error:
 
Fatal error: require(): Failed opening required '/home/oereey/c3.orexe.com/vendor/cakephp/cakephp/src/Core/functions.php' (include_path='.:/usr/share/php:/usr/share/pear') in/home/oereey/c3.orexe.com/vendor/composer/autoload_real.php on line 54

--
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: