Thanks for your reply.
I decided to use a standard install. :)
C
On Jul 14, 12:55 am, CakeSpork <[EMAIL PROTECTED]> wrote:
> Hey,
>
> I had been struggling with this this week, though my errors lay
> somewhere else for the majority of the time.
> You seems to have some weird setup here, though it might very well be
> me. dirname($X) gives the directory name of $X, so
> (dirname(DS."work".DS."agroec".DS."trunk") doesn't do what you wish, I
> believe.
>
> The ugly way that might work:
> define('ROOT', 'C:\work\agroec\trunk');
> define('APP_DIR', 'app');
> define('CAKE_CORE_INCLUDE_PATH', 'c:\cakephp';)
>
> If this does work, (and I might have made errors, but you get the
> general principle right?), then consider how you get from __FILE__
> (the location of index.php) to these directories, and use dirname()
> and DS to get a relative path to the folders.
>
> Good luck with it.
>
> On 13 jul, 20:42,Cacho<[EMAIL PROTECTED]> wrote:
>
> > Hi all
>
> > I'm new to CakePHP and decided to make an "advanced" install following
> > manual instructions because I've all my projects in a folder where I
> > keep it with subversion so, core cake has nothing to do there.
>
> > Well, I decided to keep cake install in c:\cakephp.
>
> > My project is in C:\work\agroec\trunk where I placed the default app
> > folder that comes with cakephp so the structure is:
>
> > ─app
> > └───webroot
> > ├───css
> > ├───files
> > ├───img
> > └───js
>
> > Following instructions I did in app/webroot/index.php
>
> > -----------
> > if (!defined('ROOT')) {
> > define('ROOT',
> > dirname(dirname(dirname(DS."work".DS."agroec".DS."trunk"))));
> > }
> > if (!defined('APP_DIR')) {
> > define('APP_DIR', basename(dirname(dirname("webroot"))));
> > }
>
> > if (!defined('CAKE_CORE_INCLUDE_PATH')) {
> > define('CAKE_CORE_INCLUDE_PATH', DS."cakephp");
> > }
> > -------------
>
> > Everything ok for me but when I try to get my page I see (yes, I've
> > activated show errors by now).
>
> > ---------
> > Warning: require(config\core.php) [function.require]: failed to open
> > stream: No such file or directory in C:\cakephp\cake\bootstrap.php on
> > line 34
>
> > Fatal error: require() [function.require]: Failed opening required
> > 'config\core.php' (include_path='\cakephp;\\.\;.;C:\php5\pear') in C:
> > \cakephp\cake\bootstrap.php on line 34
>
> > -----------
>
> > Apparently, cakePHP is not getting the path of my app correctly.
>
> > How could I solve it ?
>
> > Thanks in advance
>
> > C
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---