> in the login function in users_controller.php
> I am trying to access the data submitted
> $this->data['User']['username']

How are you defining the fields in your view? If you don't set them
using something like <?php echo $html->input('User/username'); ?> (or
equivilent) then I'm pretty sure that you won't be able to access as
you're trying to above...

On Apr 26, 8:30 pm, cooked <[EMAIL PROTECTED]> wrote:
> yes this what I am trying to do. Here is my directory structure
>
> pages/home.thtml (view)
>
> app/controller/users_controller.php (controller)
>
> in the home.thtml file I submit a form
> like this
> <form action="/users/login">
>
> in the login function in users_controller.php
> I am trying to access the data submitted
> $this->data['User']['username']
>
> But I don't get any data ..
>
> Thanks again.
>
> - harsh
>
> On Apr 26, 11:11 am, rtconner <[EMAIL PROTECTED]> wrote:
>
> > I'm confused? What is the problem?
> > <form action="/someothercontroller/action">
> > ...
> > </form>
>
> > is this what you want?
>
> > On Apr 26, 12:03 pm, cooked <[EMAIL PROTECTED]> wrote:
>
> > > Is there way to submit forms data to a different controller than the
> > > one responsible for the
> > > view. I am using the page controller to render my home page. In the
> > > home page I have a login
> > > box, which submits data to /users/login. But in my controller
> > > users_controller.php function
> > > login I don't see the data submitted. Is this even possible with
> > > cakePHP.
>
> > > All help appreciated.
>
> > > Thanks,
> > > - harsh- Hide quoted text -
>
> > - Show quoted text -


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to