Re: Html helper emits id attribute that i don't want

2006-09-19 Thread [EMAIL PROTECTED]
Okay okay guys, you made your point very clear. Offcourse i also enjoy the benefits of convention over configuration. and i never intented to fight that. I just didn't realise that people actually _need_ the id attribute. (because i never used ajax, dom,...)

Re: Html helper emits id attribute that i don't want

2006-09-19 Thread [EMAIL PROTECTED]
No problems Dieter. Just seemed so weird to us that use the natural id and do AJAX daily with CakePHP. Seemed like a no brainer to us. You really should try AJAX. CakePHP makes it SO easy to implement. --~--~-~--~~~---~--~~ You received this message because

Re: Html helper emits id attribute that i don't want

2006-09-19 Thread [EMAIL PROTECTED]
nate wrote: Yes, you're right: the usual, dumb, wasteful approach to coding is that you have to explicitly specify every little thing you want your program to do. If that's how you want to write your code, you should not, I repeat *not* use CakePHP. ... Nate, The above message from you

Re: Html helper emits id attribute that i don't want

2006-09-19 Thread nate
The above message from you to the list is almost a flame. Well, it is a flame. I disagree. On purely neutral grounds -- as I would tend to agree with your opinion on this topic -- I've found that things work out better in a mailing list if people refrain from writing flames and

Re: Html helper emits id attribute that i don't want

2006-09-19 Thread [EMAIL PROTECTED]
I don't think Nate was flaming Dieter. So, it shouldn't be a problem. Nate was flaming all those people that want to configure and reconfigure over and over again. Those are the same people with spaghetti code. And even the ones that don't have spaghetti code, that have studied well and make

Re: Html helper emits id attribute that i don't want

2006-09-18 Thread [EMAIL PROTECTED]
i've looked in the sourcecode of htmlhelper. apparently if you didn't set an id yourself, the helper will always automatically set the id setting id to null will trigger the behaviour above, setting id to '' sets id to '' so we don't want that either :'( this really isn't fun, because i have

Re: Html helper emits id attribute that i don't want

2006-09-18 Thread nate
Currently, the helpers do not support multiple form elements for a single field. We're working on a solution for this in Cake 1.2. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

Re: Html helper emits id attribute that i don't want

2006-09-18 Thread [EMAIL PROTECTED]
and what's wrong with just not outputting an id attribute unless specified? (like is the usual approach for attributes, you have to specify them if you want them) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake

Re: Html helper emits id attribute that i don't want

2006-09-18 Thread [EMAIL PROTECTED]
It is auto outputting to aid in javascript and AJAX. Which is a little hiccup in this stage until 1.2 is releasing with the multiple form elements for a single field and auto id. For now you could modify the HTML helper yourself to not do the auto id. That is the best suggestion I can give.

Re: Html helper emits id attribute that i don't want

2006-09-18 Thread nate
[EMAIL PROTECTED] wrote: and what's wrong with just not outputting an id attribute unless specified? (like is the usual approach for attributes, you have to specify them if you want them) Yes, you're right: the usual, dumb, wasteful approach to coding is that you have to explicitly specify

Re: Html helper emits id attribute that i don't want

2006-09-18 Thread Sohei Okamoto
[EMAIL PROTECTED] If it is really causing some problem or bothers you, but you still want to use Html helper,why not write a simple wrapper helper that strip out id attribute when you don't specify? class HtmlwrapperHelper extends Helper { var $helpers = Array(Html); function input($fieldName,

Re: Html helper emits id attribute that i don't want

2006-09-18 Thread Sohei Okamoto
Sorry, I accidentally sent in the middle.But anyway, do some checking on attributes and preg_replace the output from the Html helper.Would that be a bad practice, or fine approach in Cake?Sohei --~--~-~--~~~---~--~~ You received this message because you are

Re: Html helper emits id attribute that i don't want

2006-09-18 Thread John Zimmerman
On 9/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: and what's wrong with just not outputting an id attribute unlessspecified?(like is the usual approach for attributes, you have to specify them ifyou want them)Cake is not the usual approach. That is what makes it useful. There is nothing

Re: Html helper emits id attribute that i don't want

2006-09-18 Thread [EMAIL PROTECTED]
Chris that is so funny that people fight something that would make over 90% of their programming lives MUCH easier. And for the 10% that you have to figure out how to make it do it the CakePHP way it would still be hard programming it the conventional way of configuration. It is just that by

Re: Html helper emits id attribute that i don't want

2006-09-18 Thread John Zimmerman
Related to how the htmlHelper outputs tags, I just read a blurb about the tags.ini file at http://www.avatarfinancial.com /pages/cake/Here is the relevant infoCustomizing HTML generated by the Helper I needed to change the default option generated when I called $html-selectTag() to say

Html helper emits id attribute that i don't want

2006-08-31 Thread [EMAIL PROTECTED]
a simple piece of php code like this: echo $html-textarea('Reply/content', array('cols' = 60, 'rows' = 2)); makes the html helper output something like: textarea name=data[Reply][content] cols=60 rows=2 id=ReplyContent/textarea and it's not only with textareas, also others (e.g. hidden fields)