Re: [CakePHP : The Rapid Development Framework for PHP] #5746: HTML Helper - div broken
#5746: HTML Helper - div broken +--- Reporter: JadB | Owner: Type: Bug |Status: reopened Priority: Medium | Milestone: 1.2.x.x Component: Helpers | Version: RC3 Severity: Normal |Resolution: Keywords: html | Php_version: n/a Cake_version: 7692 | +--- Comment (by grigri): Here's what it says in the docblock: {{{ * @param string $text String content that will appear inside the div element. * If null, only a start tag will be printed }}} JadB is passing `null` for the `$text` parameter, so it only prints an open tag. If you want an empty (but closed) tag, use an empty string, not `null`. -- Ticket URL: https://trac.cakephp.org/ticket/5746#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] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
[CakePHP : The Rapid Development Framework for PHP] #5750: Configure::write() Only Supports Keys 3 Levels Deep
#5750: Configure::write() Only Supports Keys 3 Levels Deep -+-- Reporter: pr1001| Type: Bug Status: new | Priority: Low Milestone: 1.2.x.x | Component: Config Version: RC3 | Severity: Minor Keywords: configure, write, key, depth | Php_version: PHP 5 Cake_version:| -+-- == Problem == This code works: {{{ Configure::write('Depth1.Depth2.Depth3', 'XX'); Configure::read('Depth1.Depth2.Depth3'); }}} While this does not: {{{ Configure::write('Depth1.Depth2.Depth3.Depth4', 'YY'); Configure::read('Depth1.Depth2.Depth3.Depth4'); }}} == Cause == In lines [http://api.cakephp.org/configure_8php-source.html#l00257 257] to [http://api.cakephp.org/configure_8php-source.html#l00268 268] of [http://api.cakephp.org/configure_8php-source.html configure.php] there are only cases for 2 and for 3 levels of depth, with anything else considered as 1 level of depth: {{{ switch (count($name)) { case 3: $_this-{$name[0]}[$name[1]][$name[2]] = $value; break; case 2: $_this-{$name[0]}[$name[1]] = $value; break; default: $_this-{$name[0]} = $value; break; } }}} == Solution? == I'm not sure this is even a bug, so perhaps the only change needed is to add a note about this to the documentation. -- Ticket URL: https://trac.cakephp.org/ticket/5750 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] #5746: HTML Helper - div broken
#5746: HTML Helper - div broken +--- Reporter: JadB | Owner: Type: Bug |Status: reopened Priority: Medium | Milestone: 1.2.x.x Component: Helpers | Version: RC3 Severity: Normal |Resolution: Keywords: html | Php_version: n/a Cake_version: 7692 | +--- Comment (by dho): Replying to [comment:3 grigri]: Here's what it says in the docblock: {{{ * @param string $text String content that will appear inside the div element. *If null, only a start tag will be printed }}} JadB is passing `null` for the `$text` parameter, so it only prints an open tag. If you want an empty (but closed) tag, use an empty string, not `null`. You are right, I overlooked that hint. But I still think it is a bug, as you don't expect that the method creates just a start tag if you don't pass a $text parameter. It's not intuitive. -- Ticket URL: https://trac.cakephp.org/ticket/5746#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 [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] #5750: Configure::write() Only Supports Keys 3 Levels Deep
#5750: Configure::write() Only Supports Keys 3 Levels Deep -+-- Reporter: pr1001| Owner: Type: Enhancement |Status: new Priority: Low | Milestone: 1.2.x.x Component: Config| Version: RC3 Severity: Minor |Resolution: Keywords: configure, write, key, depth | Php_version: PHP 5 Cake_version:| -+-- Changes (by renan.saddam): * type: Bug = Enhancement -- Ticket URL: https://trac.cakephp.org/ticket/5750#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] #5749: HTML Helper - htmlAttribute['escape'] is not correct operation?
#5749: HTML Helper - htmlAttribute['escape'] is not correct operation? +--- Reporter: hummer | Owner: Type: Enhancement |Status: new Priority: Medium | Milestone: 1.2.x.x Component: Helpers | Version: RC3 Severity: Normal |Resolution: Keywords: | Php_version: n/a Cake_version: | +--- Changes (by renan.saddam): * type: Bug = Enhancement -- Ticket URL: https://trac.cakephp.org/ticket/5749#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] #5749: HTML Helper - htmlAttribute['escape'] is not correct operation?
#5749: HTML Helper - htmlAttribute['escape'] is not correct operation? +--- Reporter: hummer | Type: Bug Status: new | Priority: Medium Milestone: 1.2.x.x | Component: Helpers Version: RC3 | Severity: Normal Keywords: | Php_version: n/a Cake_version: | +--- It can't send $htmlAttributes!['escape'] to _parseAttributes($htmlAttributes) View Source: [source:branches/1.2.x.x/cake/libs/view/helpers/html.php#L288] {{{ #!php if (isset($htmlAttributes['escape'])) { $escapeTitle = $htmlAttributes['escape']; unset($htmlAttributes['escape']); } }}} Possible fix {{{ #!php if (isset($htmlAttributes['escapeTitle'])) { $escapeTitle = $htmlAttributes['escapeTitle']; unset($htmlAttributes['escapeTitle']); } }}} -- Ticket URL: https://trac.cakephp.org/ticket/5749 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] #5746: HTML Helper - div broken
#5746: HTML Helper - div broken +--- Reporter: JadB | Owner: Type: Bug |Status: closed Priority: Medium | Milestone: 1.2.x.x Component: Helpers | Version: RC3 Severity: Normal |Resolution: wontfix Keywords: html | Php_version: n/a Cake_version: 7692 | +--- Changes (by renan.saddam): * status: reopened = closed * resolution: = wontfix Comment: It is totally intuitive since you read the doc block. I'm closing this ticket because the usage is correct and the return is expected according to the API. -- Ticket URL: https://trac.cakephp.org/ticket/5746#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 -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5751: Ampersand bug in $this-params['pass'] and $this-params['url']
#5751: Ampersand bug in $this-params['pass'] and $this-params['url'] ---+ Reporter: xbuzz | Owner: Type: Bug |Status: new Priority: High| Milestone: Component: General | Version: RC3 Severity: Normal |Resolution: Keywords: | Php_version: PHP 5 Cake_version: 1.2.0.7692 RC3 | ---+ Comment (by xbuzz): Possible problem with RewriteRule: RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] -- Ticket URL: https://trac.cakephp.org/ticket/5751#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] #5742: small optimization for r7864
#5742: small optimization for r7864 --+- Reporter: dardosordi | Owner: Type: Optimization |Status: reopened Priority: Low| Milestone: 1.2.x.x Component: Controller | Version: RC3 Severity: Trivial|Resolution: Keywords: optimization,controller,foreach,array_map | Php_version: n/a Cake_version: 1.2.0.7692 RC3 | --+- Changes (by dardosordi): * status: closed = reopened * resolution: wontfix = Comment: Ok, so if foreach loops are faster than array_map, shouldn't the core be consistent and use foreach loops instead of array_map in the other places ? [[BR]] Anyway, there seems to be another optimization that I didn't realize at first sight: don't iterate twice, do the array_diff first and then do the foreach/strtolower. I'll attach the diff. -- Ticket URL: https://trac.cakephp.org/ticket/5742#comment:6 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] #5608: Session variables getting lost on multi-part form posts
#5608: Session variables getting lost on multi-part form posts +--- Reporter: japicka | Owner: Type: Bug |Status: reopened Priority: High | Milestone: 1.2.x.x Component: Session | Version: RC2 Severity: Major|Resolution: Keywords: | Php_version: n/a Cake_version: | +--- Changes (by japicka): * status: closed = reopened * resolution: invalid = Comment: yeah and a user would never do that. -- Ticket URL: https://trac.cakephp.org/ticket/5608#comment:7 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] #4687: EmailComponent should do EHLO and try with HELO if it fails
#4687: EmailComponent should do EHLO and try with HELO if it fails +--- Reporter: joaquin_win | Owner: Type: Enhancement |Status: reopened Priority: High | Milestone: 1.2.x.x Component: Components | Version: RC1 Severity: Critical |Resolution: Keywords: email smtp helo ehlo authentication | Php_version: n/a Cake_version: 6949 | +--- Comment (by joaquin_win): Ne patch for component and for test. The changes in the test show that __smtpSend will never get a 'Authentication not enabled on server' because this is now checked against the extensions reported by the server (stored in smtpOptions['extensions']). -- Ticket URL: https://trac.cakephp.org/ticket/4687#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] #5751: Ampersand bug in $this-params['pass'] and $this-params['url']
#5751: Ampersand bug in $this-params['pass'] and $this-params['url'] ---+ Reporter: xbuzz | Owner: Type: Bug |Status: closed Priority: High| Milestone: Component: General | Version: RC3 Severity: Normal |Resolution: invalid Keywords: | Php_version: PHP 5 Cake_version: 1.2.0.7692 RC3 | ---+ Changes (by nate): * status: new = closed * resolution: = invalid Comment: Not sure I understand the issue, as what you're seeing is expected behavior -- if you want to use in your URLs for anything other than a querystring delimiter, encode it. -- Ticket URL: https://trac.cakephp.org/ticket/5751#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] #5608: Session variables getting lost on multi-part form posts
#5608: Session variables getting lost on multi-part form posts +--- Reporter: japicka | Owner: Type: Bug |Status: closed Priority: High | Milestone: 1.2.x.x Component: Session | Version: RC2 Severity: Major|Resolution: worksforme Keywords: | Php_version: n/a Cake_version: | +--- Changes (by nate): * status: reopened = closed * resolution: = worksforme Comment: This issue is related to Cake's session security, which you presumably have set to 'high'. Since Cake is regenerating the session ID on every request, if the user cancels the request mid-way, then the session ID can't be retrieved by the browser, and the session data on the server becomes disconnected from the browser. The solution is to set your session security to 'medium'. -- Ticket URL: https://trac.cakephp.org/ticket/5608#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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---