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

link("__("show_detail", true), "/companies/detail", array("additional_value"=>0));

richardathome - on 10/2/10

<< comments | comments >>

1 Answer

array('controller'=>'companies','action'=>'detail',$id)

Answered by dogmatic69on 9/2/10

<< previous next >>

Tagged with

Rating

0

Viewed

400 times

Last Activity

on 10/2/10