If you're in a view, try

<?php echo $row['ModelName']['columnname'] ?>

... instead.

Also, you can always do this:

<?
pr($row);
?>

That'll give you an idea of what's inside the array. I highly
recommend stepping through this tutorial:

http://manual.cakephp.org/appendix/blog_tutorial

It's a quick way to get your feet wet. It's what I did to become
familiar with CakePHP and I was told in 15 minutes after having
frustrated myself with the Symfony framework.

On May 4, 7:19 am, sfa_ok <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I'm very new to cake development but I URGENTLY need to make some
> amendments to a site because the original developer deserted us :S I
> just need to add a new field to a template. I added it to the table in
> the database and Im trying to view it the value using <?php echo
> $row['tablename']['columnname'] ?> but it wont work....I must be
> missing some step. Can anyone point me in the right direction?
>
> Thanks in advance


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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