[Agavi-Users] Propel and autoloading

8 views
Skip to first unread message

Romuald Kowalczyk

unread,
Jan 28, 2012, 4:13:19 PM1/28/12
to us...@lists.agavi.org
Hi

Can anyone guide me on using propel with agavi?

I have my model in app/lib/propel and project-conf.php in app/config.
But my problem is with loading php files.
For example. I have ContactQuery class. When I try to use it (new ContactQuery()) i get error because file is not loaded.

Do I have to add something to autoload.xml?

I know these are simple things but I can't find anything about it.


Niklas Närhinen

unread,
Jan 29, 2012, 5:10:27 AM1/29/12
to Agavi Users Mailing List
Hi, there is two things to it.

First, make sure app/lib/propel is in your include_path.

Secondly, you need to use databases.xml to initialize your propel connections.

Oh, and you need to set use_database to true in settings.xml

BR,
Niklas
_______________________________________________
users mailing list
us...@lists.agavi.org
http://lists.agavi.org/mailman/listinfo/users

Reply all
Reply to author
Forward
0 new messages