Aauugh! What I was missing was a clue! I'd forgotten the hidden field
for Newsletter.id. I blame the glass of whiskey.
Oh, well, at least google has this to serve up to the next person who
misses this particular clue-train.
On Fri, Feb 22, 2008 at 11:22 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> I'm at my wit's end trying to get the data to show up in my edit form.
> Can anyone see what I'm missing here?
>
> controller:
>
> function admin_edit()
> {
> /* Grab the unpublished edition
> */
> $criteria = array(
> 'conditions' => array('Newsletter.publish_date' => '> NOW()')
> );
>
> $this->Newsletter->id = $this->Newsletter->field('id', $criteria);
> $this->data = $this->Newsletter->read();
> debug($this->data);
> }
>
> view:
>
> <?= $form->create('Newsletter') ?>
> ...
> <?= $form->textarea('Newsletter.toc', array('label' => 'TOC', 'rows'
> => '10', 'columns' => '40')) ?>
> ...
>
> The debug() call shows the data just fine. The reason I'm going to the
> trouble of getting the ID first and using read() is because I wondered
> if there was some hidden magic in that method that I was missing out
> on by using a regular find('first') call.
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---