aaaaarrggg - include path problem (propel, simpletest)
Posted: Sun Aug 31, 2008 7:00 am
Hi all,
Been a lurker for a while, this is my first post - help GREATLY appreaciated, this is wrecking my head.
I am trying to get propel to work using the SimpleTest (http://www.simpletest.org) eclipse plugin and I am getting an error message that makes absolutely no sense to me at all:
I have a User.php class representing a User object in my model, it has a BaseUser class generated by Propel and BaseUser inherits from BaseObject.php.
Now, my include path for the simpletest eclipse plugin is setup using an include file. This include file looks like:
The include path is being set correctly, as confirmed by the echo line after the ini_set. The very last directory in the ini_set contains the BaseObject.php file. So why am I getting the error message? The BaseUser.php class which inherits from BaseObject.php does not specifically do a require_once or an include - yet works fine outside SimpleTest.
Can someone please help this total newbie out? My head is absolutely wrecked from trying to figure this one out.
My propel stuff works fine outside of SimpleTest.
thanks,
- Paul.
Been a lurker for a while, this is my first post - help GREATLY appreaciated, this is wrecking my head.
I am trying to get propel to work using the SimpleTest (http://www.simpletest.org) eclipse plugin and I am getting an error message that makes absolutely no sense to me at all:
Code: Select all
Fatal error: Class 'BaseObject' not found in C:\prg\workspace\testproject\trunk\application\models\testproject\om\BaseUser.php on line 10
I have a User.php class representing a User object in my model, it has a BaseUser class generated by Propel and BaseUser inherits from BaseObject.php.
Now, my include path for the simpletest eclipse plugin is setup using an include file. This include file looks like:
Code: Select all
<?php
ini_set('include_path', get_include_path().PATH_SEPARATOR .
'C:/prg/workspace/testproject/trunk/lib/propel/runtime/classes/' . PATH_SEPARATOR .
'C:/prg/workspace/testproject/trunk/application/models/testproject/' . PATH_SEPARATOR .
'C:/prg/workspace/testproject/trunk/application/models/testproject/om/' . PATH_SEPARATOR .
'C:/prg/workspace/testproject/trunk/application/models/' . PATH_SEPARATOR .
'C:/prg/workspace/testproject/trunk/lib/propel/runtime/classes' . PATH_SEPARATOR .
'C:/prg/workspace/testproject/trunk/lib/propel/runtime/classes/propel/om' );
echo ini_get('include_path');
?>
Can someone please help this total newbie out? My head is absolutely wrecked from trying to figure this one out.
My propel stuff works fine outside of SimpleTest.
thanks,
- Paul.