Parameter of action
Hello I have got one questions..
I need to call detail function in companies controller and give her some parameters..
such as>
companies/detail/1
How to do that, with $html->link?
Solution below generate link in this format>>
/companies/detail/additional_variable:0
And this is not good..
<?php echo $html->link(__('show_detail',true),array('controller'=>'companies','action'=>'detail','additional_variable'=>$recipe['Company']['ID'])); ?>
Thanks for any reply.
Asked by blacksymmetry, on 9/2/10
1 Answer
<< previous next >>
Tagged with
Rating
0
Viewed
400 times
Last Activity
on 10/2/10
link("__("show_detail", true), "/companies/detail", array("additional_value"=>0));
richardathome - on 10/2/10