views:

40

answers:

2

Hi,

I’ve recently been learning how to use both Doctrine and CI and have been overhauling my website using both tools… all has been absolutely awesome up until the following issue(s) occurred:

Essentially it would seem that either PHP, CI or Doctrine can’t find my Base classes unless I explicitly require/include them in the corresponding model’s class?

EG: Fatal error: Class ‘BaseServiceCatagory’ not found

My live site is sitting on a Linux box with PHP 5.2.6 and my dev site is on Windows with PHP 5.2.9-1. It works perfectly fine on Windows but the live site continually gives me the error posted above.

I’m hoping that someone here might have had similar problem before and might have some suggestions regarding what might be the cause.

Thanks in advance

A: 

Based on the naming convention I'm going to assume that's a Doctrine class. What does your Doctrine setup/bootstrap setup look? My first guess would be you're pointing to a Windows style file path when you tell Doctrine where to load its models from.

Alan Storm
hi, thanks for your reply. i installed doctrine as a plugin to the system. i created a doctrine_pi.php file and is located in the system\application\plugins directory.
darkcolonist
the contents of the doctrine_pi.php file can be found here: http://pastebin.com/UxjkFfs6
darkcolonist
Add some debugging code to Doctrine::autoload and try to determine why your class files aren't being included on the server.
Alan Storm
can you give me an example of a debugging code?
darkcolonist