J. Erik Heinz kirjoitti:
When I know try to run the app, i get following error: Fatal error: Call to a member function getDatabase() on a non-object
in
/usr/local/lib/webdev/agavi/src/storage/PostgreSQLSessionStorage.class.php
on line 238)

I looked at the sourcecode and it seems like, that
$this->getContext()->getDatabaseManager() is not available. Where do I configure the Databasemanager.

You don't have to configure DatabaseManager yourself. That is done by the framework. You also never need DatabaseManager directly (somebody punch me if I'm wrong :). To access a database use Context::getDatabaseConnection($name = 'default').

Now, about your problem, the first thing that comes to my mind is that you do not have USE_DATABASE = "On" in settings.ini. Please check this and if you already have that line there, we'll start to look elsewhere :)

-veikko
_______________________________________________
agavi-dev mailing list
[email protected]
http://labworkz.com/cgi-bin/mailman/listinfo/agavi-dev

Reply via email to