Re: [CakePHP : The Rapid Development Framework for PHP] #5206: File class produces Warning if file doesn't exist
#5206: File class produces Warning if file doesn't exist ---+ Reporter: thajeztah | Owner: DarkAngelBGE Type: Bug |Status: new 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 | ---+ Comment (by DarkAngelBGE): Okay so as I see it, it's cake trying to cache a model. Thing is File::open has a call to clearstatcache() as well as a check for exists() an create().. clearstatcache(); if ($this-exists() === false) { if ($this-create() === false) { return false; } } Does this happen all the time to you? Can you reproduce it easily? If so, how about you contact me via msn so we can debug this together? I cannot reproduce it nor can I see any problems with the code. -- Ticket URL: https://trac.cakephp.org/ticket/5206#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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5785: title tag should be after the charset tag.
#5785: title tag should be after the charset tag. +--- Reporter: tchisaka | Owner: Type: Bug |Status: closed Priority: Medium | Milestone: 1.1.x.x Component: View | Version: 1.1 Stable Severity: Normal |Resolution: fixed Keywords: flash.thtml | Php_version: n/a Cake_version: | +--- Changes (by DarkAngelBGE): * status: reopened = closed * resolution: = fixed Comment: Fixed in [7900] -- Ticket URL: https://trac.cakephp.org/ticket/5785#comment:5 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
[CakePHP : The Rapid Development Framework for PHP] #5829: FormHelper::create() uses protected method of HtmlHelper
#5829: FormHelper::create() uses protected method of HtmlHelper ---+ Reporter: dho | Type: Optimization Status: new | Priority: Low Milestone: 1.2.x.x | Component: Helpers Version: RC3 | Severity: Normal Keywords: | Php_version: n/a Cake_version: 1.2.0.7899 | ---+ The last statement in FormHelper::create() uses the protected method _parseAttributes() of the HtmlHelper: {{{ return $this-output(sprintf($this-Html-tags['form'], $this-Html-_parseAttributes($htmlAttributes, null, ''))) . $append; }}} -- Ticket URL: https://trac.cakephp.org/ticket/5829 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5829: FormHelper::create() uses protected method of HtmlHelper
#5829: FormHelper::create() uses protected method of HtmlHelper -+-- Reporter: dho | Owner: Type: Optimization |Status: new Priority: Low | Milestone: 1.2.x.x Component: Helpers | Version: RC3 Severity: Normal|Resolution: Keywords:| Php_version: n/a Cake_version: 1.2.0.7899| -+-- Comment (by grigri): Since `_parseAttributes()` is part of the base `Helper` class, this should just be `$this-_parseAttributes(...)`. '''RFC''': Is `_parseAttributes()` really the correct term for this? The method takes an array of attributes and creates an attribute string - seems like the opposite of parsing to me. Wouldn't `_formatAttributes()` be more appropriate? -- Ticket URL: https://trac.cakephp.org/ticket/5829#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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
[CakePHP : The Rapid Development Framework for PHP] #5830: Oracle - Timestamp field datatype issue
#5830: Oracle - Timestamp field datatype issue --+- Reporter: jaydipdave | Owner: phishy Type: Bug | Status: new Priority: High| Milestone: 1.2.x.x Component: Oracle |Version: RC2 Severity: Major | Keywords: Php_version: n/a | Cake_version: --+- Hi Folks, I found one more issue with timstamp datatype of oracle. when i am using timestamp datatype for last_login field in oracle. The generated query tries to store the data inform of string! I have highlighted missing statment in dbo_oracle.php {{{ switch($column) { '''case 'timestamp': // MISSING STATEMENT''' case 'date': $data = date('Y-m-d H:i:s', strtotime($data)); $data = TO_DATE('$data', '-MM-DD HH24:MI:SS'); break; case 'integer' : case 'float' : case null : if (is_numeric($data)) { break; } default: $data = str_replace(', '', $data); $data = '$data'; break; } }}} Have fun, Thank You, Jaydeep Dave -- Ticket URL: https://trac.cakephp.org/ticket/5830 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5830: Oracle - Timestamp field datatype issue
#5830: Oracle - Timestamp field datatype issue ---+ Reporter: jaydipdave | Owner: phishy Type: Bug |Status: new Priority: High| Milestone: 1.2.x.x Component: Oracle | Version: RC2 Severity: Major |Resolution: Keywords: | Php_version: n/a Cake_version: | ---+ Comment (by jaydipdave): Can I have SVN permission to commit changes? -- Ticket URL: https://trac.cakephp.org/ticket/5830#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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5830: Oracle - Timestamp field datatype issue
#5830: Oracle - Timestamp field datatype issue ---+ Reporter: jaydipdave | Owner: phishy Type: Bug |Status: new Priority: High| Milestone: 1.2.x.x Component: Oracle | Version: RC2 Severity: Major |Resolution: Keywords: | Php_version: n/a Cake_version: | ---+ Comment (by nate): Please provide your patch in diff format, along with a test case that passes when the patch is applied. -- Ticket URL: https://trac.cakephp.org/ticket/5830#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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5830: Oracle - Timestamp field datatype issue
#5830: Oracle - Timestamp field datatype issue ---+ Reporter: jaydipdave | Owner: phishy Type: Bug |Status: new Priority: High| Milestone: 1.2.x.x Component: Oracle | Version: RC2 Severity: Major |Resolution: Keywords: | Php_version: n/a Cake_version: | ---+ Comment (by jaydipdave): This is the structure of my table clientusers. {{{ ID NUMBER No - 1 CLIENT_ID NUMBER Yes - - USERNAMEVARCHAR2(40)Yes - - PASSWORDVARCHAR2(40)Yes - - SECURITYQUESTION1 VARCHAR2(200) Yes - - ANSWER1 VARCHAR2(50)Yes - - SECURITYQUESTION2 VARCHAR2(200) Yes - - ANSWER2 VARCHAR2(50)Yes - - SECURITYQUESTION3 VARCHAR2(200) Yes - - ANSWER3 VARCHAR2(50)Yes - - SECURITYQUESTION4 VARCHAR2(200) Yes - - ANSWER4 VARCHAR2(50)Yes - - SECURITYQUESTION5 VARCHAR2(200) Yes - - ANSWER5 VARCHAR2(50)Yes - - LASTLOGIN TIMESTAMP(6)Yes SYSDATE - REMARK VARCHAR2(500) Yes - - STATUS NUMBER Yes 0 - URL VARCHAR2(300) Yes - - }}} Here, you can see my MODIFIED column's datatype is timestamp. Now, when i try saving my data using following code: {{{ function admin_add() { $this-setAdminArea(); if (!empty($this-data)) { $this-Client-data = $this-data; $this-Client-Clientuser-data = $this-data; $valid_client = $this-Client-validates(); if($this-Client-Clientuser-validates() $valid_client) if ($this-Client-save($this-data)) { $this-data['Clientuser']['client_id'] = $this-Client-id; $this-Client-Clientuser-save($this-data); $this-flash('Client has been saved.', '/admin/clients/'); } } } }}} I am getting following Error: {{{ Warning (512): SQL Error: ORA-01843: not a valid month [CORE/cake/libs/model/datasources/dbo_source.php, line 514] }}} {{{ Query: UPDATE clients SET id = 103, companyname = 'xx', contactpersonfirstname = 'Jaydeep', contactpersonlastname = 'Dave', contactnumber = '9428110096', address1 = 'plot nasdf0asd f-dasf asdf', address2 = 'sdf', city = 'Bhavnagar', state = 'Gujarat', country = 'India', zip = '234234', phone = '123456', fax = '123456', email = '[EMAIL PROTECTED]', modified = '2008-12-01 11:18:12' WHERE clients.id = 103 }}} but when i added one more case in dbo_oracle.php file's function value() like this: {{{ switch($column) { case 'timestamp': // Patch Line case 'date': $data = date('Y-m-d H:i:s', strtotime($data)); $data = TO_DATE('$data', '-MM-DD HH24:MI:SS'); break; case 'integer' : case 'float' : case null : if (is_numeric($data)) { break; } default: $data = str_replace(', '', $data); $data = '$data'; break; } }}} It works. The thing is, when the $column variable in value() function is timestamp it executes the default code segment of switch case. the query is being generated like this:modified = '2008-12-01 11:18:12' Which should be generated like this: modified = TO_DATE('2008-12-01 11:23:23', '-MM-DD HH24:MI:SS') If you want to know anything more, don't hesitate to ask me. :) -- Ticket URL: https://trac.cakephp.org/ticket/5830#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 [EMAIL PROTECTED]
[CakePHP : The Rapid Development Framework for PHP] #5831: Able to use error keys and error messages in controller. Dinstinguish error per field.
#5831: Able to use error keys and error messages in controller. Dinstinguish error per field. +--- Reporter: jmut | Type: Enhancement Status: new | Priority: Medium Milestone: 1.2.x.x | Component: Validation Version: RC2 | Severity: Normal Keywords: | Php_version: n/a Cake_version: | +--- Currently all that gets into validationErrors array is already translated messages per field. I think with cake 1.2 introducing chain(multi) validation per field it is important to be able to distinguish validation errors per field. This adds more flexibility and allows for adittional logic besides just displaying messages. Possible solutions: 1. validationErrors property holds key = message in there. This doesn't seem to portable though. 2. add hook in view that is possible to pass error messages through custom function (e.g for translation). That way you don't set messages in $validation and validationErrors ends up with error keys only. If those keys not needed in controller you don't have to explicitly set the messages in the view but it will automaticlly get translated via the hook __('someKey'); Of course I am only week familiar with cake so there might be better solutions than that. -- Ticket URL: https://trac.cakephp.org/ticket/5831 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
[CakePHP : The Rapid Development Framework for PHP] #5832: allowEmpty = false Should add 'required' class in form helper
#5832: allowEmpty = false Should add 'required' class in form helper +--- Reporter: _thief_ | Type: Bug Status: new | Priority: Low Milestone: 1.2.x.x | Component: Helpers Version: RC2 | Severity: Normal Keywords: form helper, allowEmpty, validation | Php_version: n/a Cake_version: 1.2.0.7692 RC3 | +--- As it stands the form helper adds the required class if you specify 'required' = true but not if 'allowEmpty' = false. [[BR]][[BR]] As I see it, if a form is being posted and allowEmpty is set to false in the validation rules, it is required that a value be inserted in the form field. [[BR]][[BR]] Therefore I feel the form helper should add the required class when allowEmpty = false as well as when required = true. [[BR]][[BR]] I am using the nightly build. [[BR]][[BR]] Thanks[[BR]] -_thief_ -- Ticket URL: https://trac.cakephp.org/ticket/5832 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5832: allowEmpty = false Should add 'required' class in form helper
#5832: allowEmpty = false Should add 'required' class in form helper +--- Reporter: _thief_ | Owner: Type: Bug |Status: new Priority: Low | Milestone: 1.2.x.x Component: Helpers | Version: RC2 Severity: Normal |Resolution: Keywords: form helper, allowEmpty, validation | Php_version: n/a Cake_version: 1.2.0.7692 RC3 | +--- Comment (by _thief_): Sorry just wanted to add:[[BR]] [[BR]] This will trigger a required class: {{{ 'name' = array( 'rule' = 'notEmpty', 'message' = 'Account name is a required field', ) }}} whereas this will not: {{{ 'name' = array( array( 'rule' = array('maxLength', 40), 'message' = 'Please ensure your name is less than 40 characters', ), array( 'rule' = 'notEmpty', 'message' = 'Account name is a required field', ) ), }}} -- Ticket URL: https://trac.cakephp.org/ticket/5832#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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5824: DboMysqli is missing the 'index' function
#5824: DboMysqli is missing the 'index' function --+- Reporter: ADmad | Owner: mark_story Type: Bug|Status: closed Priority: High | Milestone: 1.2.x.x Component: MySQLi | Version: RC3 Severity: Major |Resolution: needmoreinfo Keywords: ADmad DboMysqli index | Php_version: n/a Cake_version: | --+- Changes (by gwoo): * status: assigned = closed * resolution: = needmoreinfo Comment: please supply a patch that implements the method. -- Ticket URL: https://trac.cakephp.org/ticket/5824#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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
[CakePHP : The Rapid Development Framework for PHP] #5833: REST RequestHandling does not work Correctly (RC3) Per API Documentation
#5833: REST RequestHandling does not work Correctly (RC3) Per API Documentation ---+ Reporter: MIRV| Type: Bug Status: new | Priority: High Milestone: 1.2.x.x | Component: Routing/Dispatcher Version: RC3 | Severity: Major Keywords: | Php_version: PHP 5 Cake_version: 1.2.0.7692 RC3 | ---+ Per following the API documentation at http://book.cakephp.org/view/477 /The-Simple-Setup to setup and route REST requests does not function correctly. I continually get an error about a view not found; Error: Confirm you have created the file: /var/www/user/app/views/users/index.ctp Notice: If you want to customize this error message, create app/views/errors/missing_view.ctp According to the document at the afforementioned URL the view is created in a subfolder of the view named xml/index.ctp. Additionally I HAVE created the /views/layouts/xml.ctp file. If I attempt to use the file it is looking for it is treated as html and the XML helper is not automatically loaded so that the data can be serialized (also per the docs). -- Ticket URL: https://trac.cakephp.org/ticket/5833 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 [EMAIL PROTECTED] 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
#5206: File class produces Warning if file doesn't exist ---+ Reporter: thajeztah | Owner: DarkAngelBGE Type: Bug |Status: new 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 | ---+ Comment (by Eor): It doesn't happen every time, but i've found a way that seems to produce the error 1/3 of the time. The site i'm building uses a Flash front end, calling xml views for data. When I navigate to a certain part of the flash that makes 3 simultaneous requests, to 3 separate pages, sometimes 1 of them will fail. [[BR]] [[BR]] I'm on gtalk if you wanna chat: emlyn[at]resn.co.nz -- Ticket URL: https://trac.cakephp.org/ticket/5206#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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---