#5635: Globally specify some of HtmlHelper's behaviours
----------------------------+-----------------------------------------------
Reporter: biscazziere | Type: Enhancement
Status: new | Priority: Medium
Milestone: 1.2.x.x | Component: Helpers
Version: RC3 | Severity: Normal
Keywords: | Php_version: n/a
Cake_version: |
----------------------------+-----------------------------------------------
I think it will be pretty useful if some of the options inside the
HtmlHelper methods could be globally specified inside a config file or
with a config method inside the helper.
For example, the HtmlHelper::link has the last params to specify if the
text should be escaped. It would be nice if this behaviour could be setted
one time for all, and then overridden by the param passed to the helper
method. In this way, I can choose a general behaviour of the method, and
then override it when I call the method if I need to.
Another example could be the PaginatorHelper, where could be useful to set
some global values and params, without having to specify them on every
method call.
In my opinion, this approach for helpers give a stronger respect of the
DRY principle, and it is also used inside RubyOnRails, for what I've seen.
--
Ticket URL: <https://trac.cakephp.org/ticket/5635>
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---