Welcome Guest, Not a member yet? Register   Sign In
template parser and same field names between models
#1

[eluser]Federico Gonzalez[/eluser]
Hi,

I have a problem parsing data (using template parser) with same fields names between tables. I have three database tables:

persons: id, name, country_id
foods: id, name
foods_persons: person_id, food_id

In view file:

<p>Person name: {name}</p>
<p>Countries: </p>
<ul>
{countries}
<li>{name}</li>
{/countries}
</ul>

The field name it's same field-name in both tables.

How can I parse correctly mantaining the original fields-names ?

(sorry by my english)

Thanks!


Messages In This Thread
template parser and same field names between models - by El Forum - 01-19-2010, 11:54 AM
template parser and same field names between models - by El Forum - 01-20-2010, 04:22 AM
template parser and same field names between models - by El Forum - 01-20-2010, 09:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB