05-05-2009, 10:27 AM
[eluser]Bui Duc Long[/eluser]
[quote author="spyro" date="1228810781"][quote author="Majd Taby" date="1228807523"]Thanks for the comments. You can change the name of your primary id by specifying....primary_id in your yaml
[/quote]
I am pretty new to CI and never seen YAML before. After some reading of the docs and a few tests I came up with the code below to get rid of the error.
form_setup:
primary_id: ad_id
Now I need to set the plugin used for this field, which I have attempted, leaving me off with the no proper plugin error.
Under primary_id I tried a few things including:
ad_id:
class: TextBox
Can you point me in the right direction?[/quote]
I got the same problem, can not made it work
[quote author="spyro" date="1228810781"][quote author="Majd Taby" date="1228807523"]Thanks for the comments. You can change the name of your primary id by specifying....primary_id in your yaml

I am pretty new to CI and never seen YAML before. After some reading of the docs and a few tests I came up with the code below to get rid of the error.
form_setup:
primary_id: ad_id
Now I need to set the plugin used for this field, which I have attempted, leaving me off with the no proper plugin error.
Under primary_id I tried a few things including:
ad_id:
class: TextBox
Can you point me in the right direction?[/quote]
I got the same problem, can not made it work

Code:
db_table: contents
primary_id: ContentID
display_fields:
-ContentID
-Name
order_by: Name
order_type: desc
form_setup:
Name:
class: TextBox
Body:
class: TextArea
Quote:A Database Error Occurred
Error Number: 1054
Unknown column 'id' in 'field list'
SELECT `Name`, `Body`, `id` FROM (`contents`) ORDER BY `Name` desc