Re: My $this->Auth->login() does not work, any help please? :) Cakephp 2.5.1

2014-06-19 Thread Zero Sony
Thx for your help.

I have just edited it. But it's still not work T_T


https://gist.github.com/0-Sony/3c052a832687e8dbb4d7


Le jeudi 19 juin 2014 18:48:05 UTC+2, euromark a écrit :
>
> Mind your casing
>
> 'Authenticate' => 'form'
>
> Compare this with what is documented:
>
> http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#configuring-authentication-handlers
>
> mark
>
>
>
> Am Donnerstag, 19. Juni 2014 15:32:53 UTC+2 schrieb Zero Sony:
>>
>> https://gist.github.com/0-Sony/3c052a832687e8dbb4d7
>>
>> Thx for your help!
>>
>>
>>
>>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: My $this->Auth->login() does not work, any help please? :) Cakephp 2.5.1

2014-06-19 Thread 0-SonY
I have just edited it. But it's still not work. T_T


2014-06-19 18:48 GMT+02:00 euromark :

> Mind your casing
>
> 'Authenticate' => 'form'
>
> Compare this with what is documented:
>
> http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#configuring-authentication-handlers
>
> mark
>
>
>
> Am Donnerstag, 19. Juni 2014 15:32:53 UTC+2 schrieb Zero Sony:
>
>> https://gist.github.com/0-Sony/3c052a832687e8dbb4d7
>>
>> Thx for your help!
>>
>>
>>
>>  --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "CakePHP" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/cake-php/etvRbrLTpxs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Suddenly can't load model named 'Locale'

2014-06-19 Thread Harold Putman
When loading up my application on a development machine I found that my 
Locale model will not load.

After some tracing in ClassRegsitry::init() I figured out that it is 
loading the Locale class from the intl extension instead of mine from 
app/Model. http://www.php.net//manual/en/class.locale.php

I am using CakePHP 2.5. and php >= 5.4. Do I have any options besides 
renaming my model class or disabling the intl extension?


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: My $this->Auth->login() does not work, any help please? :) Cakephp 2.5.1

2014-06-19 Thread euromark
Mind your casing

'Authenticate' => 'form'

Compare this with what is documented:
http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#configuring-authentication-handlers

mark



Am Donnerstag, 19. Juni 2014 15:32:53 UTC+2 schrieb Zero Sony:
>
> https://gist.github.com/0-Sony/3c052a832687e8dbb4d7
>
> Thx for your help!
>
>
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: My $this->Auth->login() does not work, any help please? :) Cakephp 2.5.1

2014-06-19 Thread Zero Sony
https://gist.github.com/0-Sony/3c052a832687e8dbb4d7

Thx for your help!



-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: My $this->Auth->login() does not work, any help please? :) Cakephp 2.5.1

2014-06-19 Thread José Lorenzo
Can you share your code via gist.github.com instead?

On Wednesday, June 18, 2014 5:39:02 PM UTC+2, Zero Sony wrote:
>
> Hi all, 
>
> I use cakephp 2.5.1 and my  $this->Auth->login()   does not work. It 
> return me "false" each time.
> Maybe if someone can say me why , i ll be very gratefull ^^
> I m on this problem for severals days T_T
>
> My DB is called  users and there are fields "username" and "password" .
>
> *AppControler*
>
> 1
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 9
> 10
> 11
> 12
> class AppController extends Controller {
>  
> public $components = array('Session', 'Cookie',
> 'Auth' => array(
> 'authenticate' => array('Form' style="font-variant: inherit; outline: 0px !important; font-family: 
> Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace 
> !important; line-height: 1.4em !important; border-top-left-radius: 0px 
> !important; border-top-right-radius: 0px !important; 
> border-bottom-right-radius: 0px !important; border-bottom-left-radius: 0px 
> !important; bottom: auto !important; float: none !important; height: auto 
> !important; left: auto !important; overflow: visible !important; position: 
> static !important; right: auto !important; top: auto !important; width: 
> auto !important; box-sizing: content-box !impo
> ...

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to edit data using Cakephp

2014-06-19 Thread raji gudivada
Thanks @Hash


I did changes in edit.ctp.Problem is previously i used html tags now i 
changed to php input form then it is working.

My Modified edit.ctp


Form->create('grade');
echo $this->Form->inputs(array('id', 'name','description','status'));?>

Form->end('Edit');
?>




On Tuesday, June 17, 2014 5:41:44 AM UTC-7, raji gudivada wrote:
>
> Thanks for u r help. But can u plz be little simplified as i am unable to 
> get u r point of view.
>
> On Friday, June 13, 2014 4:02:00 AM UTC-7, raji gudivada wrote:
>>
>> Hello
>>  I  am new to cakephp framework. In database I have grades table. I 
>> prepared Two pages using cakephp i.e..Add grade and Manage Grade. Now i am 
>> trying to add actions in managegrade ie.. Edit and Delete. Delete function 
>> is working but Edit function is not working.It is treated as new record 
>> instead of editing, it was saving as a new record.I used the following code.
>> In GradeController
>>  public function edit($id = null) {
>> if (!$id && empty($this->data)) {
>> $this->Session->setFlash('Invalid grade');
>> $this->redirect(array('action' => 'managegrade'));
>> }
>> if (!empty($this->data)) {
>> if ($this->grade->save($this->data)) {
>> $this->Session->setFlash('The grade has been 
>> saved');
>> $this->redirect(array('action' => 
>> 'managegrade'));
>> } else {
>> $this->Session->setFlash('The grade could not 
>> be saved. Please, try again.');
>> }
>> }
>> if (empty($this->data)) {
>> $this->data = $this->grade->read(null, $id);
>> }
>> }
>>  In edit.ctp i used the following code
>> Edit Grade 
>> > echo $this->Form->create('Movie');
>> echo $this->Form->input('id');
>>
>> ?>
>> Organisation * 
>> 
>>   Common Core
>>   
>>   Grade Name *   
>> 
>>   Description 
>> 
>> Status
>>  Draft 
>> Published
>> Inactive
>> > echo $this->Form->end('edit');
>>
>> ?>
>> 
>> I added the following  link in managegrade
>> Html->link('Edit',
>> array('action' => 'Edit', $grade['grade']['id'])); ?>
>>   
>> Please find the error and help me how to edit the existing data
>>Thanks in advance.
>>
>>
>>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.