If you are still using scaffolded views then they are not clever
enough to substitute id's for real names, as such you are at the point
where you need to 'bake' some views (they will be near identical to
those you are seeing using scaffold) and begin editing how they
display your data.

First of all it's handy to see which data your find() or paginate() is
returning and the easiest way to do this is make sure you have your
debug value (/app/config/core.php) at 2 and then echo out the main
data array that is being sent to the view using debug($arrayName);
within your view file (/app/views/writers/view.php)

Within the main data array there will be a Book array which is
iterated through to create the table at the bottom of your view and
you will need to alter the value of the relevant parts of that table
to show Publisher.name instead of Publisher.id

Hope this makes some sense ;)

Paul G
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to