Re: [CakePHP : The Rapid Development Framework for PHP] #5206: File class produces Warning if file doesn't exist

2009-06-10 Thread CakePHP : The Rapid Development Framework for PHP
#5206: File class produces Warning if file doesn't exist
---+
Reporter:  thajeztah   | Owner:  DarkAngelBGE
Type:  Bug |Status:  reopened
Priority:  Low | Milestone:  1.2.x.x 
   Component:  Cache   |   Version:  RC2 
Severity:  Normal  |Resolution:  
Keywords:  |   Php_version:  PHP 5   
Cake_version:  1.2.0.7434  |  
---+
Changes (by aagestrand):

  * status:  closed = reopened
  * resolution:  needmoreinfo =

Comment:

 I get this error still on cake 1.2.3.8166. It seems to happen once in a
 while, most likely if I load a page that has not been accessed in a while
 (cache invalidation problem?). I only see this on delete operations,
 though.

 Is there a known fix for this? I've poked around in forums to see what
 people are doing, but none of the solutions seem to be conclusive. I'm not
 to keen on modifying the core code using the @unlink fix without knowing
 this issue will be fixed in newer versions.

 I can talk on #cakephp if you need more info.

-- 
Ticket URL: https://trac.cakephp.org/ticket/5206#comment:11
CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
tickets cakephp group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



[CakePHP : The Rapid Development Framework for PHP] #6429: ajax autocomplete input is not interchangable with form-input

2009-06-10 Thread CakePHP : The Rapid Development Framework for PHP
#6429: ajax autocomplete input is not interchangable with form-input
+---
Reporter:  brammeleman  |  Type:  Enhancement
  Status:  new  |  Priority:  Medium 
   Milestone:  1.2.x.x  | Component:  Helpers
 Version:  1.2 Final|  Severity:  Normal 
Keywords:   |   Php_version:  n/a
Cake_version:  8166 |  
+---
 When I mix normal form inputs with autocomplete fields (ajax helper), I
 get visually different results.
 For example, the html returned by $form-input, looks like:
 {{{
 div class=input text required
 label for=ItemDescriptionDescription/label
 input type=text id=ItemDescription value=Example description
 maxlength=255 name=data[Item][description] autocomplete=off/
 /div
 }}}
 While $ajax-autocomplete returns:
 {{{
 input type=text value=Example description autocomplete=off
 id=ItemDescription  name=data[Item][description]/
 }}}
 I.e. the wrapping div element and the label are missing.

 A possible fix is to replace $this-Form-text by $this-Form-input
 on line 490 of cake/libs/view/helpers/ajax.php.

-- 
Ticket URL: https://trac.cakephp.org/ticket/6429
CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
tickets cakephp group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



[CakePHP : The Rapid Development Framework for PHP] #6430: Multiple models in a form - fields of secondary models are not rendered as required

2009-06-10 Thread CakePHP : The Rapid Development Framework for PHP
#6430: Multiple models in a form - fields of secondary models are not rendered 
as
required
--+-
Reporter:  alanic |  Type:  Bug
  Status:  new|  Priority:  High   
   Milestone:  1.2.x.x| Component:  Helpers
 Version:  1.2 Final  |  Severity:  Major  
Keywords: |   Php_version:  n/a
Cake_version: |  
--+-
 When using multiple models in one form as shown here:

 http://teknoid.wordpress.com/2008/08/01/practical-use-of-saveall-part-1
 -working-with-multiple-models/

 The fields of the secondary models ('Account' in that example) are not
 rendered with required in their div styles (their labels aren't bold in
 the default css), even though they are correctly validated after user
 submits the form. This is clearly a bug.

 In the attached patch to the form helper, I extracted the decision of a
 field being required to a private function and used the same function for
 secondary models to make sure their fields are also checked for whether
 they are required or not so that they are correctly rendered.

 On a related note, ticket #2895 seems to be fixed, but I don't see how and
 where.

-- 
Ticket URL: https://trac.cakephp.org/ticket/6430
CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
tickets cakephp group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



[CakePHP : The Rapid Development Framework for PHP] #6431: Auth component wrongly saves password when adding new user

2009-06-10 Thread CakePHP : The Rapid Development Framework for PHP
#6431: Auth component wrongly saves password when adding new user
--+-
Reporter:  Brade  |  Type:  Bug   
  Status:  new|  Priority:  Medium
   Milestone:  1.2.x.x| Component:  Auth  
 Version:  1.2 Final  |  Severity:  Major 
Keywords: |   Php_version:  PHP 5 
Cake_version: |  
--+-
 I believe this issue only affects the latest CakePHP release (1.2.3). It
 was not an issue with the previous 1.2.2. release. When adding a new user,
 of course Cake automatically converts the password field before saving,
 based on the Salt and hash method--I believe it runs the hashPasswords
 method. But the value for this converted password is different from
 running $this-Auth-password() on the same password, even though these
 two should be equal, right?

 The result of this is that right after I've added a new user, I can't
 login with them since the password was apparently not hashed correctly
 before saving. The quick fix for me is not to use the password field
 directly on my add user form, but instead a temp password field which I
 then convert using $this-Auth-password() before saving, but obviously
 that takes away the lovely Cake automagic that had worked just fine
 before.

 If I need to clarify anything more, let me know.
 Thanks,
 --brad g.

-- 
Ticket URL: https://trac.cakephp.org/ticket/6431
CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
tickets cakephp group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #5206: File class produces Warning if file doesn't exist

2009-06-10 Thread CakePHP : The Rapid Development Framework for PHP
#5206: File class produces Warning if file doesn't exist
---+
Reporter:  thajeztah   | Owner:  DarkAngelBGE
Type:  Bug |Status:  closed  
Priority:  Low | Milestone:  1.2.x.x 
   Component:  Cache   |   Version:  RC2 
Severity:  Normal  |Resolution:  needmoreinfo
Keywords:  |   Php_version:  PHP 5   
Cake_version:  1.2.0.7434  |  
---+
Changes (by gwoo):

  * status:  reopened = closed
  * resolution:  = needmoreinfo

Comment:

 please stop by irc and ask for me...

-- 
Ticket URL: https://trac.cakephp.org/ticket/5206#comment:12
CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
tickets cakephp group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #6431: Auth component wrongly saves password when adding new user

2009-06-10 Thread CakePHP : The Rapid Development Framework for PHP
#6431: Auth component wrongly saves password when adding new user
---+
Reporter:  Brade   | Owner:  
Type:  Bug |Status:  closed  
Priority:  Medium  | Milestone:  1.2.x.x 
   Component:  Auth|   Version:  1.2 Final   
Severity:  Major   |Resolution:  needmoreinfo
Keywords:  |   Php_version:  PHP 5   
Cake_version:  |  
---+
Changes (by gwoo):

  * status:  new = closed
  * resolution:  = needmoreinfo

Comment:

 The same method is used across the board. Please ensure that you are not
 changing the hash method or the salt value.

-- 
Ticket URL: https://trac.cakephp.org/ticket/6431#comment:1
CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
tickets cakephp group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #6406: session helper not working with cached views

2009-06-10 Thread CakePHP : The Rapid Development Framework for PHP
#6406: session helper not working with cached views
+---
Reporter:  zaptree  | Owner:  
Type:  Bug  |Status:  closed  
Priority:  Medium   | Milestone:  1.2.x.x 
   Component:  General  |   Version:  1.2 Final   
Severity:  Normal   |Resolution:  needmoreinfo
Keywords:  session caching  |   Php_version:  PHP 5   
Cake_version:  1.2.3.8166   |  
+---
Changes (by gwoo):

  * status:  new = closed
  * resolution:  = needmoreinfo

-- 
Ticket URL: https://trac.cakephp.org/ticket/6406#comment:2
CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
tickets cakephp group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #6413: [PATCH] [TEST] scaffoldFields not working with add/edit methods

2009-06-10 Thread CakePHP : The Rapid Development Framework for PHP
#6413: [PATCH] [TEST] scaffoldFields not working with add/edit methods
+---
Reporter:  juan_basso   | Owner:  DarkAngelBGE
Type:  Bug  |Status:  new 
Priority:  Medium   | Milestone:  1.2.x.x 
   Component:  Scaffold |   Version:  1.2 Final   
Severity:  Normal   |Resolution:  
Keywords:  scaffold scaffoldFields  |   Php_version:  n/a 
Cake_version:  1.2.3|  
+---
Changes (by DarkAngelBGE):

  * owner:  = DarkAngelBGE
  * status:  reopened = new

-- 
Ticket URL: https://trac.cakephp.org/ticket/6413#comment:3
CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
tickets cakephp group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #6424: allowEmpty = true not working on file uploads

2009-06-10 Thread CakePHP : The Rapid Development Framework for PHP
#6424: allowEmpty = true not working on file uploads
---+
Reporter:  milesj  | Owner:   
Type:  Bug |Status:  closed   
Priority:  Medium  | Milestone:  1.2.x.x  
   Component:  Model   |   Version:  1.2 Final
Severity:  Normal  |Resolution:  wontfix  
Keywords:  |   Php_version:  n/a  
Cake_version:  |  
---+
Changes (by gwoo):

  * status:  new = closed
  * resolution:  = wontfix

Comment:

 your custom validation rule should handle the allowEmpty

-- 
Ticket URL: https://trac.cakephp.org/ticket/6424#comment:1
CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
tickets cakephp group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #6431: Auth component wrongly saves password when adding new user

2009-06-10 Thread CakePHP : The Rapid Development Framework for PHP
#6431: Auth component wrongly saves password when adding new user
---+
Reporter:  Brade   | Owner:  
Type:  Bug |Status:  closed  
Priority:  Medium  | Milestone:  1.2.x.x 
   Component:  Auth|   Version:  1.2 Final   
Severity:  Major   |Resolution:  needmoreinfo
Keywords:  |   Php_version:  PHP 5   
Cake_version:  |  
---+
Comment (by Brade):

 Agh, this was due to me calling constructClasses and beforeFilter
 manually in the constructor, thereby eventually running the hashPasswords
 method twice (once on the already hashed password). BTW the reason I'm
 doing that is because Cake's error pages do not run beforeFilter by
 default, which caused a bunch of probs with our layout. So finding this
 Auth issue did cause me to tighten up my code a bit by including:
 if ($this-name == 'CakeError') ...
 before running it, so all is well now. Sorry for the trouble!
 --brad g.

-- 
Ticket URL: https://trac.cakephp.org/ticket/6431#comment:2
CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
tickets cakephp group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #6431: Auth component wrongly saves password when adding new user

2009-06-10 Thread CakePHP : The Rapid Development Framework for PHP
#6431: Auth component wrongly saves password when adding new user
---+
Reporter:  Brade   | Owner:  
Type:  Bug |Status:  closed  
Priority:  Medium  | Milestone:  1.2.x.x 
   Component:  Auth|   Version:  1.2 Final   
Severity:  Major   |Resolution:  needmoreinfo
Keywords:  |   Php_version:  PHP 5   
Cake_version:  |  
---+
Comment (by gwoo):

 you can always create your own error handler.

-- 
Ticket URL: https://trac.cakephp.org/ticket/6431#comment:3
CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
tickets cakephp group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #6431: Auth component wrongly saves password when adding new user

2009-06-10 Thread CakePHP : The Rapid Development Framework for PHP
#6431: Auth component wrongly saves password when adding new user
---+
Reporter:  Brade   | Owner:  
Type:  Bug |Status:  closed  
Priority:  Medium  | Milestone:  1.2.x.x 
   Component:  Auth|   Version:  1.2 Final   
Severity:  Major   |Resolution:  needmoreinfo
Keywords:  |   Php_version:  PHP 5   
Cake_version:  |  
---+
Comment (by Brade):

 Thanks, yeah, I did look at that option, but I liked the way Cake handles
 all the various errors in dev mode, and I didn't want my solution to apply
 only to 404, etc. There may be a cool way to do that in AppError, but I
 think my newly tweaked code does all I need it to do now.

-- 
Ticket URL: https://trac.cakephp.org/ticket/6431#comment:4
CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
tickets cakephp group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #6406: session helper not working with cached views

2009-06-10 Thread CakePHP : The Rapid Development Framework for PHP
#6406: session helper not working with cached views
+---
Reporter:  zaptree  | Owner:   
Type:  Bug  |Status:  reopened 
Priority:  Medium   | Milestone:  1.2.x.x  
   Component:  General  |   Version:  1.2 Final
Severity:  Normal   |Resolution:   
Keywords:  session caching  |   Php_version:  PHP 5
Cake_version:  1.2.3.8166   |  
+---
Changes (by zaptree):

  * status:  closed = reopened
  * resolution:  needmoreinfo =

Comment:

 Sorry for the late reply, yes i checked that the code is php. I believe
 the problem has something to do with the var sessionTime in the session
 class. The session component sets it because in the __construct($base =
 null, $start = true) its set to true where as the session helper has start
 set to false so the var sessionTime is not set. So it seems that the
 session helper is not using our defined session expiration time but php's
 standard session expiration? im not really sure.

 Also I noticed another wierd behaviour. I have a requestAction that
 basically calls a page that gets the logged in users data if he is logged
 in otherwise sends back false so that i can show a login form. When i use
 the requestAction in my view before calling (i have it nocache block and
 the php code is in cached views in tmp):


 {{{
 ?php
 $this-requestAction('loginbox');
 if($session-check('Auth.User')){
 echo 'Logged In';
 }else{
 echo 'not logged in';
 {
 ?

 }}}
 then it works fine and shows me that im not logged in when im not and then
 the following session helper works correctly also. But if i have the
 requestAction after the session helper being used then they both dont
 work. So i guess that probably one instance of the session object is
 created or something and if the session helper creates it first its got
 the wrong expiration time and then even the session component will get it
 wrong?? Well i hope this info helps. I fixed my app by making sure that
 the loginbox code is first (had to float right the divs since it was
 supposed to be on the right) but on other circumstances i might not want
 to have to use requestAction if not necessary because it slows down the
 app.

-- 
Ticket URL: https://trac.cakephp.org/ticket/6406#comment:3
CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
tickets cakephp group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



[CakePHP : The Rapid Development Framework for PHP] #6432: form helper gets confused by some validation rules

2009-06-10 Thread CakePHP : The Rapid Development Framework for PHP
#6432: form  helper gets confused by some validation rules
---+
Reporter:  q7joey  |  Type:  Bug
  Status:  new |  Priority:  Medium 
   Milestone:  1.2.x.x | Component:  Helpers
 Version:  1.2 Final   |  Severity:  Normal 
Keywords:  |   Php_version:  PHP 5  
Cake_version:  1.2.3.8166  |  
---+
 this appears to be related to #3869.

 any field that has a validation rule and is not marked as required=false
 will normally get the required class added to the div.  but if the rule is
 one that is configured via an array (like array(postal,null,us)) and the
 rule= index happens to be first, then the required tag is not presented.
 this is caused because Set::countDim is used and it only looks at the
 first element by default to determine the array depth and when the form
 helper sees a depth greater than one, it assumes multiple rules and then
 the logic breaks.  if put a simple entry before the rule= index, then the
 form helper works.

 for example:
 {{{
 #!php

 // does not add 'required' class
 $validate = array(
   'zip' = array(
 'rule' = array('postal',null,'us'),
 'message' = 'Invalid ZIP',
   ),
 );

 // does add 'required' class
 $validate = array(
   'zip' = array(
 'message' = 'Invalid ZIP',
 'rule' = array('postal',null,'us'),
   ),
 );

 }}}

 the code in question is around line 142 in
 cake/libs/view/helpers/form.php.  i'm not sure of the best fix for this,
 maybe a check to see if 'rule' is set in the array?  that seems to be the
 logic being used in cake/lib/model/model.php.

-- 
Ticket URL: https://trac.cakephp.org/ticket/6432
CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
tickets cakephp group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #2563: [PATCH][TEST] Form helper should be able to set class parameter to required for fields from multiple models

2009-06-10 Thread CakePHP : The Rapid Development Framework for PHP
#2563: [PATCH][TEST] Form helper should be able to set class parameter to 
required
for fields from multiple models
+---
Reporter:  biesbjerg| Owner:  mark_story
Type:  Enhancement  |Status:  new   
Priority:  Low  | Milestone:  1.3.x.x   
   Component:  Helpers  |   Version:
Severity:  Trivial  |Resolution:
Keywords:  formHelper class required biesbjerg  |   Php_version:  PHP 5 
Cake_version:   |  
+---
Comment (by alanic):

 At first glance this looks like the right approach given the current
 approach. I solved the same thing without knowing this bug here: #6430 in
 a less intrusive but less general way I guess.

 I kind of question doing this beforehand for every field even though they
 will not be used, even in the case of using only one model. I would
 advocate for doing it right when they are used like I did in line 666 in
 the patch attached to #6430 for efficiency's sake. But does it matter at
 all if one is using caching? I don't know, I just started using CakePHP
 last week:)

-- 
Ticket URL: https://trac.cakephp.org/ticket/2563#comment:8
CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
tickets cakephp group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #6430: Multiple models in a form - fields of secondary models are not rendered as required

2009-06-10 Thread CakePHP : The Rapid Development Framework for PHP
#6430: Multiple models in a form - fields of secondary models are not rendered 
as
required
+---
Reporter:  alanic   | Owner:   
Type:  Bug  |Status:  closed   
Priority:  High | Milestone:  1.2.x.x  
   Component:  Helpers  |   Version:  1.2 Final
Severity:  Major|Resolution:  duplicate
Keywords:   |   Php_version:  n/a  
Cake_version:   |  
+---
Comment (by alanic):

 Oh I couldn't find that one it seems. I tried to give my two cents there.
 Thank you for encouraging participation.

-- 
Ticket URL: https://trac.cakephp.org/ticket/6430#comment:2
CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
tickets cakephp group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #4062: DATABASE_CONFIG table prefix bug

2009-06-10 Thread CakePHP : The Rapid Development Framework for PHP
#4062: DATABASE_CONFIG table prefix bug
+---
Reporter:  wangbo   | Owner: 
Type:  Bug  |Status:  closed 
Priority:  Medium   | Milestone:  1.2.x.x
   Component:  Model|   Version:  RC1
Severity:  Trivial  |Resolution:  fixed  
Keywords:   |   Php_version:  PHP 5  
Cake_version:   |  
+---
Comment (by panyang):

 That code works perfectly on the web application i created during
 installation part where user can add prefix on the tables they are about
 to create.

-- 
Ticket URL: https://trac.cakephp.org/ticket/4062#comment:9
CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
tickets cakephp group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---