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 -~--~~~~--~~--~--~---
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] #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] #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 gwoo): * status: new = closed * resolution: = wontfix Comment: its a bit ridiculous to be using a helper to return an empty div. In fact it would be fewer characters if you just did return 'div id=testId/div'; -- Ticket URL: https://trac.cakephp.org/ticket/5746#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] #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 | +--- Changes (by dho): * status: closed = reopened * resolution: wontfix = Comment: Do you know his use case that you can say it is ridiculous what he is doing? I would expect the same output as shown in the assert. I reopen this ticket because the usage is correct according to the API. -- Ticket URL: https://trac.cakephp.org/ticket/5746#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 -~--~~~~--~~--~--~---