> <?php echo
$html->link('+informações','/cars/form/arg1/arg2' .
> $car['Car']['id'],null,null,false)?>
then in your cars controller you have
function form($arg1 = '', $arg2 = ''){
//your code
}
HTH
olivvv
Daniel Gomes wrote:
tks for helping clement, but my question is who do i pass the value
from $html->link to the controller?
tks,
Daniel Gomes
2007/1/4, clemos <[EMAIL PROTECTED]>:
it's the controller which is here to prepare data for the views:
in your CarsController->form($id) function, you need to put something
like that:
$this->set("arg","whatever");
so that in your view, you can access $arg.
hope it helps.
you should probably read the manual, too...
+++++++
clement
On 1/4/07, Daniel Gomes <[EMAIL PROTECTED]> wrote:
>
> in the first view i have it:
>
> <?php echo $html->link('+informações','/cars/form/' .
> $car['Car']['id'],null,null,false)?>
>
> and the other view i want it:
>
> <h4 class="titlepage">Pedido de <?php $arg ?> para </h4>
>
> how do i pass the $arg on the first view? i have to pass to
crontoller too?
>
> >
>
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---