Adding objects to /objects

8 views
Skip to first unread message

Robert Mortimer

unread,
Sep 16, 2009, 12:02:46 PM9/16/09
to Php Object Generator
I have added a number of my own objects to the pog objects directory
and now my setup fails. I have tried adding both the class names and
the file names of the additional objects to the ignore_objects.txt
file but this has not done the trick for me. Can anyone help me here?
A google of the POG site for ignore_objects.txt returns zero hits.

I am running xampp 1.7.2 on XP sp3 as my local development environment

Rob

Joel Wan

unread,
Sep 16, 2009, 12:09:51 PM9/16/09
to Php Object Generator
make sure the Object Name is listed in ignore_objects, not the file
name and that it's one object name per line, e.g

if your custom class is named Custom_Object and your filename is
class.custom.php, the ignore_objects file needs to have

Custom_Object

listed in it.

robert....@gmail.com

unread,
Sep 16, 2009, 2:28:15 PM9/16/09
to Php Object Generator


On 16 Sep, 17:09, Joel Wan <joel...@gmail.com> wrote:
> make sure the Object Name is listed in ignore_objects, not the file
> name and that it's one object name per line, e.g
>
> if your custom class is named Custom_Object and your filename is
> class.custom.php, the ignore_objects file needs to have
>
> Custom_Object
>
I've tried adding the object names and still get the following error

CHECKED 9 OBJECT(S). FOUND 2 ERROR(S):
---------------------------------------------------
Query failed: describe ``

Aligning [] with table '' failed. Alter the table manually so that
object attributes and table columns match.

If I delete the class files it still checks 9 objects but all is OK!

robert....@gmail.com

unread,
Sep 16, 2009, 3:38:38 PM9/16/09
to Php Object Generator
If I remove each of the two additional objects in turn each results in
one less error.
Untill I resolve this I am goung to have to change my auto-load to
referenct two locations:-

POG objects in their default location and my objects under a new
path.

I look forward to a solution to my problem.

Just as an aside the mysql_real_escape_string does not work on my
machine either.
I have had to change it to add slashes for now

On 16 Sep, 19:28, "robert.morti...@gmail.com"

robert....@gmail.com

unread,
Oct 20, 2009, 8:21:32 AM10/20/09
to Php Object Generator


On Sep 16, 7:28 pm, "robert.morti...@gmail.com"
In the end I gave up, put my objects elsewhere and changed the
autoloader to look in both locations.
Reply all
Reply to author
Forward
0 new messages