Re: named parameters in pages_controller

2010-01-14 Thread Azril Nazli
try

$url = $html-url( array('controller' = 'posts', 'action' = 'view',
'id' = 12, 'param' = 'name));
echo $url;


On Jan 13, 8:56 pm, blickensdoer...@googlemail.com
blickensdoer...@googlemail.com wrote:
 hi everyone,

 i have a problem with the url helper in the pages_controller:

 i want to append a named parameter to the current url .

 in all controllers this works fine, but the pages_controller does
 always something like this:

 /pages/display/pages/info/param:name

 i've tried various ways to pass the url to the helper, even things
 like:

 $html-url($this-here.'/param:name')

 but nothing works

 anyone knows help?

 ty+regards
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


named parameters in pages_controller

2010-01-13 Thread blickensdoer...@googlemail.com
hi everyone,

i have a problem with the url helper in the pages_controller:

i want to append a named parameter to the current url .

in all controllers this works fine, but the pages_controller does
always something like this:

/pages/display/pages/info/param:name

i've tried various ways to pass the url to the helper, even things
like:

$html-url($this-here.'/param:name')

but nothing works

anyone knows help?

ty+regards
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