you can ask for just the specific fields but if the other fields aren't
too heavy (in terms of bytes of returned content) I don't think there
is a reason to do so. I would avoid using a custom query unless you
absolutely need it. You are able to specify the fields you want
returned without using
hey adrian,
the table names are right, and work great with scuffold. it works
without scuffold too, i just want to make it more efficient.
on some of the models i used hasmany, belongsto, and hasone. i get the
table category and layout dumped, the problem is that i get all of the
information fro
First you'll have to create correct associations for your Models (if you
don't know how or too lazy to read the manual, ask again).
Second, try dumping the whole thing you got from the Model->findAll or
findBy... using debug($[modelname]->[functionname]);
You'll see that accessing category.name
I have a controller, and I want to fetch information from tables.
With scaffold, it works wonderfully.. However I wanna load the
information smartly for my app.
These are my tables:
section:
id
name
field1
field2
layout_id
category_id
category:
id
name
field3
field4
field5
field6
layout:
id
na