I recommend you work through
http://manual.cakephp.org/appendix/blog_tutorial , a lot of these basic
questions will be answered for you.
If you have a function add() in your "eric" controller, you can go to
localhost/eric/add . In that function look for the existance of
$this->data - whether a form has been submitted. If not, show the
form. If so, process the form data.
If you are asking about routes (and eric is a username variable), it
depends on your current route. Something like $Route->connect
('/:username/:action', array('controller'=>'users')); would be a start
(off the top of my head, probably won't be right).
On Nov 8, 6:30 pm, "Eric" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I know how to do like localhost/eric.
>
> But How Can I make fuction add( ) works for localhost/eric/add.
>
> Cause I should pass the param to the add function, i think
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---