hi!

imagine this URL http://domain/mycontroller/myaction/param1/param2

In your MycontrollerController.php you must have a "myaction" action,
and you can read the params with something like this:


function myaction($param1 = null, param2=null){

}


Bye


On 7 mayo, 15:54, Enchy <[EMAIL PROTECTED]> wrote:
> Hi
>
> New to this.
>
> How do you pass variables in the URL in cakephp
>
> index.php?/app/index/name/John
> Is this how you do it?
>
> and how do you print it in thml files
> <? echo $name; ?>
>
> Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to