|
From: why t. l. s. <ja...@wh...> - 2002-04-22 16:54:39
|
Jeff:
I believe this is a case-sensitivity issue. I am checking some
changes into CVS that will work with the CamelCase object names, but in
the meantime you may want to keep the object names as 'jobopening' and
'company'. I've always done my .oo without uppercase, so the results
are sort of unpredictable. The next release will be case-insensitive,
so whether you call it 'JobOpening' or 'jobopening' it will be the same.
I believe this is consistent with most databases.
If that doesn't work, please reply and I'll see if I can make
another good guess.
Jeff Lewis wrote:
>Ok, I made it past the first set of errors, but I am
>now getting the following:
>
>Warning: Invalid argument supplied for foreach() in
>c:\apache\htdocs\javuh-1.0.1\Model\Psychoo\Data\SQL.inc
>on line 550
>
>Warning: Invalid argument supplied for foreach() in
>c:\apache\htdocs\javuh-1.0.1\Model\Psychoo\Data\SQL.inc
>on line 203
>
>Here are the pertainent parts of the .oo file:
>[JobOpening:
> [m_id:
> [type: auto_key /]
> /]
> [m_companyID:
> [type: link /]
> [name: Company /]
> [link: Company.m_id /]
> [select: <Company.m_id> - <Company.m_name> /]
> [required: true /]
> /]
>/]
>[Company:
> [m_id:
> [type: auto_key /]
> /]
> [m_name:
> [type: varchar /]
> [name: Company Name /]
> [size: 50 /]
> [required: true /]
> [unique: none /]
> /]
>/]
>
>And here is the php code:
> require_once("Javuh.inc");
>
> class MyDB extends SQL_MySQL
> {
> var $Database = "test_javuh";
> var $User = "jdl";
> var $Password = "shakira";
> }
>
> class MyPsychoo extends Model_Psychoo
> {
> var $cache = "codestore";
> }
>
> $p = new MyPsychoo( "Site.oo" );
> $p->set_storage( new MyDB );
>
> $p->make_form( "a_form", array( "JobOpening" ) );
> $p->set_form_explain( "a_form", TRUE );
> echo $p->write_html_form( "a_form" );
>
>Any ideas on what I am doing wrong?
>
>Thanks,
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Games - play chess, backgammon, pool and more
>http://games.yahoo.com/
>
>_______________________________________________
>Javuh-develop mailing list
>Jav...@li...
>https://lists.sourceforge.net/lists/listinfo/javuh-develop
>
>
|