i see everyone using this:
Doctrine_Manager::getInstance()
when i do this, its error is:
Class ‘Doctrine_Manager’ not found
how do i load this ?so that i can start get instances from doctrine manager?
i want to load this:
$con = Doctrine_Manager::getInstance()->connection();
$st = $con->execute("...............");
$result = $st->fetchAll();
where can autoload this , so i can call the getInstance() function from anywhere?
thanks…
Doctrine_Manageris part of version 1.2, not 2. If you are actually using 1.2, you need to let the autoloader know to load classes under theDoctrine_prefix.To do so, add this to your application configuration file…
You also need to ensure the doctrine classes can be found on the include path. If they aren’t in your “library” folder or otherwise part of the
include_pathdirective, add this…