Re: How config language

2012-06-07 Thread lsri8088
I use cake version 2.1 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...

How config language

2012-06-07 Thread lsri8088
Hi! I inserted Configure::write('Config.language', 'spa'); in /app/Config/core.php, I created the folders: - app/Locale/spa/LC_MESSAGES - app/Locale/eng/LC_MESSAGES with files defatul.po. This files contains one copy of default.pot generated by bake tool. I changed the text "Actions" in

Re: How I can edit a user without changing the password?

2012-05-29 Thread lsri8088
sername'); //echo $this->Form->input('password'); *echo $this->Form->input('auxPassword', array(* * 'type' => 'password',* * 'label' => 'Password (leave blank for no update)' * * ));* Thank you very much for your comme

Re: How I can edit a user without changing the password?

2012-05-29 Thread lsri8088
Thanks euromak. I like the solution to check if it is empty but ... How do I distinguish between "add action" and "edit action"? If I add a new user the password should be mandatory. If I edit the user then the password is blank if not modified. Another thing How can see the current value o

How I can edit a user without changing the password?

2012-05-28 Thread lsri8088
Hello, I'm using cake 2.1 with AuthComponent and standard data modelusers. How I can edit a user without changing the password? For example, add a check "I want to change the password." If thischeck is true then I make a hash of the password and keep it inserted.Otherwise I do not modify the p