Did you actually check if `pear/Doctrine/Doctrine.php` exists? Additionally, you can install Doctrine1 with Composer, which saves you from the pain of PEAR :-)
Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 24 June 2014 23:23, Doctrine Noob <[email protected]> wrote: > Hey Everyone, > > I'm new to Doctrine and I was following a tutorial book until I became > stuck at a short snippet of code. I just *installed Doctrine with PEAR* > and I have version 1.2.4 (for work related reasons, I am not using Doctrine > 2 and must use this older version). > > My Doctrine directory is located in php/pear/Doctrine and few snippet I > was trying to run was: > > echo "including main Doctrine class file<br />"; > include_once 'pear/Doctrine/Doctrine.php'; > spl_autoload_register(array('Doctrine', 'autoload')); > > echo "Create Doctrine Manager<br />"; > $manager = Doctrine_Manager::getInstance(); > > //Some more code down here . . . > > > PHP wasn't able to find any file named "Doctrine.php" from the first > include and at first I thought I might have had the path incorrect. So I > did a search on the entire php/pear/Doctrine directory for a file named > "Doctrine.php" but couldn't find one. > > *If I shouldn't be including a file called "Doctrine.php," what file > should I include? *Thanks in advance for any help or insight! > > -- > You received this message because you are subscribed to the Google Groups > "doctrine-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/doctrine-user. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
