Gabriel can you please assit me im new to cake php but want to learn so
much can you please tell me how to change the settings on the
'CAKE_CORE_INCLUDE_PATH. point to any specific directory or i just leave it
as 'CAKE_CORE_INCLUDE_PATH??
On Wednesday, 27 May 2009 21:43:47 UTC+2, Gabriel wrote:
>
> 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');
> }
> }
>
> [email protected] <javascript:> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.