Re: 1.2 paginator helper and passedArgs

2009-11-16 Thread merrylin shi
I know the solution , if you have ctp file in element folder named paging.ctp ,please add a line code (options(array('url'=>$this->params['pass'])); ?> ) in this file , before your code ! 2009/11/16 Asmud > This is the solution I know, I believe there is[are] other sulution > [s]I just c

Re: Using multiple criteria to login a user. Email or Username.

2009-11-13 Thread merrylin shi
I know ,first cake bake the users table ,generate the user.php ,open the files change the var $validate = array( 'username' => array('notempty') ); like var $validate = array( 'username' => array('email') ); just ok! 2009/11/13 David Roda > To accomplish this yo

Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread merrylin shi
2009/11/13 Brenda > USA East Coast ... Washington DC! > > ...Brenda > > -- > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-...@googlegroups.com. > To unsubscribe from this group, send email to > cake-php+

Re: If User changes info?

2009-11-12 Thread merrylin shi
2009/11/12 Dave > I am using auth so I like the idea of comparing the values that way. > > Not quite sure I follow the logic in the additional field for "forgot > password". If they forgot their password they would not be logged in. > My forgot function allows them to enter their email and if fou

whether chagne "app/config/core.php" code

2009-10-30 Thread merrylin
Hi All I want add Auth in demo , I get a problem , whether chagne this code " Configure::write('Acl.classname', 'DbAcl'); Configure::write('Acl.database', 'default'); //look like this : //Configure::write('Acl.classname', 'IniAcl'); " in "app/config/core.php" ?

Re: Multi-value field in cake

2009-10-29 Thread merrylin shi
when get a problem with multi-value ,I think this code can help you ,this is me code , Controllers: function add() { if (!empty($this->data)) { $this->Wine->create(); //saveAll(), NOT save() if ($this->Wine->saveAll($this->data)) {

Re: AclNode::node() - Couldn't find Aro node identified by "Array ( [Aro0.model] => Group [Aro0.foreign_key] => 1 )

2009-10-29 Thread merrylin shi
I am sure using the Auth Compoment and ACL Component ! I think I do All things about Auth and Acl , but not take effect --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send

CORE/cake/libs/model/db_acl.php, line 191

2009-10-29 Thread merrylin
Hi, I'm trying to use ACL in my application, I have pretty much followed this tutorial http://book.cakephp.org/view/641/Simple-Acl-controlled-Application to get my application up and running, however, when I visit any of the pages that are supposed to be protected, I get this error: Warning (51

AclNode::node() - Couldn't find Aro node identified by "Array ( [Aro0.model] => Group [Aro0.foreign_key] => 1 )

2009-10-29 Thread merrylin
when I do Auth with cake , I happened a problem Warning (512): AclNode::node() - Couldn't find Aro node identified by "Array ( [Aro0.model] => Group [Aro0.foreign_key] => 1 ) " [CORE\cake\libs\model\db_acl.php, line 191] --~--~-~--~~~---~--~~ You received