Okay it works, the problem was that I wrote: print_r($this->data) in
an action instead of in beforeFilter()...
On Aug 17, 7:57 pm, Zippoxer wrote:
> Tried more tons of things, nothing works... :\
>
> On Aug 17, 2:47 pm, Zippoxer wrote:
>
>
>
> > Still the same.
> > After submiting the login form
Tried more tons of things, nothing works... :\
On Aug 17, 2:47 pm, Zippoxer wrote:
> Still the same.
> After submiting the login form with test_username/test_password, here
> is print_r($this->data):
> Array ( [Player] => Array ( [name] => test_username [password] => ) )
>
> I noticed that even i
Still the same.
After submiting the login form with test_username/test_password, here
is print_r($this->data):
Array ( [Player] => Array ( [name] => test_username [password] => ) )
I noticed that even if I remove the password field form the form,
print_r($this->data) is exactly the same (with 'pas
Try enabling 'Session' component as well in your app_controller.php
On 17 August 2010 12:01, Zippoxer wrote:
> No that's not the problem. The Auth component is enabled.
> Please what's the problem? I'm waiting two days and can't keep working
> with CakePHP...
>
> On Aug 16, 9:37 pm, Zippoxer w
No that's not the problem. The Auth component is enabled.
Please what's the problem? I'm waiting two days and can't keep working
with CakePHP...
On Aug 16, 9:37 pm, Zippoxer wrote:
> Ohh, I think that's the problem. It looks enabled, but when I don't
> allow access to "login" action it still allo
Ohh, I think that's the problem. It looks enabled, but when I don't
allow access to "login" action it still allows.
Here's the full app_controller.php code:
class AppController extends Controller {
var $components = array('Auth');
function beforeFilter() {
parent::beforeFilter();
That's how my app_controller.php begins:
class AppController extends Controller {
var $components = array('Auth');
On Aug 16, 9:13 pm, Miles J wrote:
> Do you have the Auth component enabled?
>
> On Aug 16, 2:04 am, Zippoxer wrote:
>
>
>
> > This is the form code in the view:
> > > ech
Do you have the Auth component enabled?
On Aug 16, 2:04 am, Zippoxer wrote:
> This is the form code in the view:
> echo $form->create('Player');
> echo $form->input('name', array('label' => 'Name'));
> echo $form->input('password', array('label' => 'Password'));
> echo $form->end
This is the form code in the view:
create('Player');
echo $form->input('name', array('label' => 'Name'));
echo $form->input('password', array('label' => 'Password'));
echo $form->end('Login');
?>
And in the controller I just do:
print_r($this->data);
Then I see an array with the usern
We need more info... can you paste your view, and perhaps your
controller action?
On Aug 15, 1:24 pm, Zippoxer wrote:
> I've created a simple authentication form with username and password
> input fields.
> The problem is that the password is always empty through $this->data
> in the controller,
I've created a simple authentication form with username and password
input fields.
The problem is that the password is always empty through $this->data
in the controller, but username is not empty.
What's the problem?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
11 matches
Mail list logo