This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Problem with PakeFinder under Windows

Installation and environment issues, mainly on 1.x but there's some 2.x here too.

Problem with PakeFinder under Windows

by nightfreak » Fri Nov 04, 2005 1:16 pm

When i tried to generate a propelcrud i got an error. I tried to debug the code and noticed that PakeFinder cant handle Windows style paths with backslashes!

Solution; use the DIRECTORY_SEPARATOR constant

pakeFinder.class.php old:
Code: Select all
$files = array_merge($files, str_replace($dir.'/', '', $this->search_in($dir)));

pakeFinder.class.php new:
Code: Select all
foreach ($newfiles as $file) {
    $files[] = str_replace($dir . DIRECTORY_SEPARATOR, '', $file);

sfPropelCrudGenerator.class.php old:
Code: Select all
$class_map_builder = str_replace('map/', '', $class_map_builder);

sfPropelCrudGenerator.class.php new:
Code: Select all
$class_map_builder = str_replace('map' . DIRECTORY_SEPARATOR, '', $class_map_builder);
Posts: 36
Joined: Thu Nov 03, 2005 2:32 pm

Re: Problem with PakeFinder under Windows

by RoVeRT » Fri Nov 04, 2005 5:07 pm

Its either that or just use '/' everywhere, it alse makes reading paths in the source easier.
Senior Member
Posts: 146
Joined: Thu Oct 27, 2005 8:56 pm

Re: Problem with PakeFinder under Windows

by fabien » Wed Nov 09, 2005 5:31 pm

I think all these problems are fixed now. You can install the last release to test it:

Code: Select all
pear upgrade symfony/symfony-beta

It will automatically install the new Pake release as well.
Faithful Member
Posts: 487
Joined: Sat Oct 22, 2005 9:01 am