I've gone back to this.

On Thu, Dec 30, 2010 at 10:15 PM, john lyles <confidentia...@gmail.com> wrote:
> Let me see if I get this: You have a url such as
> http://localhost/controller/action?url=http://www.example.com/page.html
> And all you need to do is populate the url into the form?
> If I understand the situation correctly then here is my simple
> solution:
> echo var_dump($this->params);
> This will return an array. What you need will be here.

http://localhost/links/add?foo=http://asdfasdf/adsfe/asdf & variations
thereof work great using
$foo = $this->params['url']['foo'];
echo $this->Form->input('Link.url', array('value'=>$foo, 'type' => 'text'));

However, when hitting http://localhost/links/add the error: Notice
(8): Undefined index: foo [APP/views/links/add.ctp, line 12]  Should I
be setting $foo to null somehow?

S

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to