On Tue, Jul 7, 2009 at 4:46 AM, jeremy<[email protected]> wrote:
>
> my controller file is simple and is given below...
>
> users_controller.php
> ======================
>
> <?php
> class UsersController extends AppController
> {
>        var $name = "Users";
>        var $uses = null;           //if no DB connection is reuired……….
>
>        function login()
>        {
>                        print_r($this->params['form']);
>                        echo "<br/>";
> (..)

First of all, a tip: try to always respect the MVC pattern and your applications
will be much less error-prone.

Get your variables in the login action and call $this->set('varname',
$varvalue);
(see http://api.cakephp.org/class/controller#method-Controllerset)

Also, forget using PHP's superglobal variables.  CakePHP is your friend.
Spend a few minutes in this reading:
http://book.cakephp.org/view/27/Developing-with-CakePHP

Best regards.

--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105

http://mfandrade.wordpress.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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