Hi, you can do that in app/webroot/index.php and test.php This is the code i use to switch the core path depending on the server name:
if (!defined('CAKE_CORE_INCLUDE_PATH')) { $srvname = $_SERVER['SERVER_NAME']; if( $srvname == 'localhost' || $srvname == '127.0.0.1' || $srvname == ''){ // Dev Path // PATH: D:\sharedlibs\libs\cakephp\1.2.x.x define('CAKE_CORE_INCLUDE_PATH', 'D:'.DS.'sharedlibs'.DS.'libs'.DS.'cakephp'.DS.'1.2.x.x'); }else{ // Prod Path // PATH: /home/sharedlibs/libs/cakephp/1.2.x.x define('CAKE_CORE_INCLUDE_PATH', DS.'home'.DS.'sharedlibs'.DS.'libs'.DS.'cakephp'.DS.'1.2.x.x'); } } simon...@gmail.com escribió: > Hi, > > I did a website using CakePHP, I need to configure the > CAKE_CORE_INCLUDE_PATH (app/webroot/index.php). > > How can I do that? > > Someone has an example? > > I need to know the complete path of my server to be able to do that? > Using phpinfo()? > > > Regards, > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---