Thanks alot.

  <?php echo $data['0'['Order']['dateoforder']; ?>

I had to ad a ['0']

On May 18, 2:53 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote:
> > I have looked in the htmlhelper api and cant find anything for this.
>
> > echo   $html->input('Order/dateoforder', array('size' => '53')
>
> > Htmlhelper just echos form elements I just want echo the value of
> > Order/dateoforder onscreen.
> > How do I do this, I looked in the API but cant find it.
>
> assuming you've set the data to the view in your controller like so:
>
> $this->set('data', $this->data);
>
> this will give you a variable $data in your view, so you can get to
> dateoforder like so:
>
> <?php echo $data['Order']['dateoforder']; ?>
>
> on a side note, to help you with rapid prototyping with Scaffolding or
> using the Bake functionality, you might want to follow database naming
> conventions more, by using _ underscores in table names/field names,
> like so:
>
> date_of_order rather than dateoforder
>
> this would mean when using scaffolding, Cake will be able to make the
> field name into a human readable name, eg: Date of order, it can't do
> that without the underscores.
>
> hth
>
> jon
>
> --
>
> jon bennett
> t: +44 (0) 1225 341 039 w:http://www.jben.net/
> iChat (AIM): jbendotnet Skype: jon-bennett


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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