Did you set up that project in databases.xml? You must create an
AgaviPropelDatabase with a "config" parameter that points to the
runtime-conf.php generated by Propel
David
Am 27.03.2007 um 10:31 schrieb surej ns:
> Hi all,
> I am using propel 1.3. I have installed it in my project
> directory . It is built and got the table classes in path " ../app/
> models/login ."
>
> I have given the path to these files in config.php
>
> set_include_path (AgaviConfig::get('core.app_dir' ).'/lib/' .
> PATH_SEPARATOR . AgaviConfig::get( 'core.app_dir'). '/../app/models/
> login' . PATH_SEPARATOR . get_include_path ());
>
> The query I am using
>
> $c = new Criteria();
> $c->add(UserPeer::userName, "Leo" );
> $c->add(UserPeer::password , "Marx");
> $result = User::doSelect($c );
>
> I get an error like these
>
>
> Warning: Propel::require(login/UserPeer.php) [ function.Propel-
> require]: failed to open stream: No such file or directory in D:
> \xampp\htdocs\login\libs\propel\runtime\classes\propel\Propel.php
> on line 574
>
> Fatal error: Propel::require() [function.require]: Failed opening
> required 'login/UserPeer.php' (include_path='D:\xampp\htdocs\login
> \app/lib/;D:\xampp\htdocs\login\app/../app/models/login;D:\xampp
> \htdocs\login\app/lib/;D:\xampp\htdocs\login\app/../libs/propel/
> runtime/classes;.;\xampp\php\pear\;d:\phing') in D:\xampp\htdocs
> \login\libs\propel\runtime\classes\propel\Propel.php on line 574
>
>
> How can I resolve this issue?
>
> Thx
> surej
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.agavi.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users