I think you have to see the EDIT function in the BLOG tutorial of cakePHP.
There we actually PRE-POPULATE the data on the EDIT page .
Thanks
Karthikeyan P
On Thu, Dec 30, 2010 at 8:14 AM, Steve Mallett <steve.mallett@gmail.com> wrote:
Hi,
How do I pass data to a Form from the URL?
I have add.ctp:
<?php
echo $this->Form->input('url', array(
'type' => 'text',
'value' => $this->params['url']
));
?>
Hitting localhost/links/add?url=http://cakephp.org produces the following error:
Notice (8): Undefined index: action [CORE/cake/dispatcher.php, line 269]
-and-
Notice (8): Undefined index: controller [CORE/cake/dispatcher.php, line 121]
Thanks.
Steve
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment