Re: Html Helper: Better way to generate table ?

2015-05-09 Thread Aday Talavera
I've this methods in a helper: Html->tag('table', null, array('class' => $table_class)); if (!empty($headers)) { $content .= $this->Html->tag('thead', $this->Html->tableHeaders( $headers, array('class' => $header_class))); } if (!empty($rows)) { $co

Re: Html Helper: Better way to generate table ?

2015-05-07 Thread samuel
nice! Is bshelper part of cakephp? On Friday, May 1, 2015 at 9:54:43 PM UTC+1, Sylvain Lévesque wrote: > > echo $this->Html->tag( 'table', null, array( 'class' => 'table > table-hover table-condensed' ) ); > echo $this->Html->tag( 'thead' ); > echo $this->Html->tableHeaders( array( 'One', 'Two',

Re: Html helper generate invalid code: No space between attributes!

2013-05-15 Thread Salines
*Sorry, html helpers working correctly.* bugs make twitter bootstrap helper. Dana četvrtak, 16. svibnja 2013. 01:43:11 UTC+2, korisnik Salines napisao je: > > *Hello * > * > * > I noticed that htmlhelper generated errors and creates not valid html code. > > Html -> charset(); ?> > > generate:

RE: html helper - image outside of webroot/img dir

2013-04-01 Thread Advantage+
No problem. Hope it helped. No expert but seems pretty straight forward so glad I could help in any way. From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Robert Gravel Sent: Monday, April 01, 2013 11:08 PM To: cake-php@googlegroups.com Subject: Re: html helper

Re: html helper - image outside of webroot/img dir

2013-04-01 Thread Robert Gravel
Thanks. Got it On Monday, April 1, 2013 9:27:12 PM UTC-4, advantage+ wrote: > > Check CKEditor config settings for the folder to save files to and point > it to img/uploads or what not and refer as $this->Html->image('uploads/' . > $file) something along those lines. But if it’s a CK image from

RE: html helper - image outside of webroot/img dir

2013-04-01 Thread Advantage+
Check CKEditor config settings for the folder to save files to and point it to img/uploads or what not and refer as $this->Html->image('uploads/' . $file) something along those lines. But if it's a CK image from the editor package itself just reference it as the correct path/filename From: cak

Re: Html helper - stop adding prefix unless explicitly specified

2011-10-05 Thread Zaky Katalan-Ezra
I have 3 roles in my app. To Avoid adding the prefix arrays to each url, I am using this helper function. View code to create musician prefix url: echo $this->Html->link('Dashboard', $this->RoleLink->linkRole(array('controller'=>'users','action'=>'dashboard'),array('musician'))); Helper function:

Re: Html helper - stop adding prefix unless explicitly specified

2011-10-05 Thread nowotny
On 5 Paź, 03:31, rchavik wrote: > You could create a custom helper inheriting HtmlHelper, then use the > joeb'sAnalogue pluginto masquerade > your helper as core HtmlHelper. This way, you don't have to > modify your view files Thanks... that got me thinkin

Re: Html helper - stop adding prefix unless explicitly specified

2011-10-05 Thread Saransh Sharma
hey send me more and big clear pics On Wednesday, October 5, 2011, rchavik wrote: > You could create a custom helper inheriting HtmlHelper, then use the > joeb'sAnalogue pluginto masquerade > your helper as core HtmlHelper. This way, you don't have to > mod

Re: Html helper - stop adding prefix unless explicitly specified

2011-10-04 Thread rchavik
You could create a custom helper inheriting HtmlHelper, then use the joeb'sAnalogue pluginto masquerade your helper as core HtmlHelper. This way, you don't have to modify your view files -- Our newest site for the community: CakePHP Video Tutorials http:

Re: Html helper - stop adding prefix unless explicitly specified

2011-10-04 Thread nowotny
On 28 Wrz, 19:44, euromark wrote: > i use a custom app helper method i called defaultLink() which resets > all prefixes unless specified. > although thats maybe not exactly what you have in mind > but you could make sth similar with your own default values > > either way - called via > $this->Html

Re: Html helper - stop adding prefix unless explicitly specified

2011-09-28 Thread euromark
i use a custom app helper method i called defaultLink() which resets all prefixes unless specified. although thats maybe not exactly what you have in mind but you could make sth similar with your own default values either way - called via $this->Html->defaultLink(); in any view as always On 28

Re: Html Helper Tables :: Pure Curiosity

2011-07-15 Thread Miles J
Its to generate rows using a helper, not really meant for generation within the view. On Jul 15, 7:28 am, DragonFlyEye wrote: > Does anybody know a reason that the Html Helper contains a method to output > table cells and headers, but not a method to output tables? Like, at least > tableStart and

Re: HTML helper (Meta Icon) duplicating unnecessarily?

2011-05-05 Thread Ross
That makes sense! Thank you. On May 5, 9:28 am, Ryan Schmidt wrote: > On May 4, 2011, at 15:47, Ross wrote: > > > > > > > > > > > I just got started with CakePHP, and have the following in  my layout, > > between the tags's as you'd expect: > > > Html->meta('icon') . "\t\n";   ?> > > > The outpu

Re: HTML helper (Meta Icon) duplicating unnecessarily?

2011-05-05 Thread Ryan Schmidt
On May 4, 2011, at 15:47, Ross wrote: > I just got started with CakePHP, and have the following in my layout, > between the tags's as you'd expect: > > Html->meta('icon') . "\t\n"; ?> > > The output, however is: > > rel="icon" /> > rel="shortcut icon" / > > Now it's not the end of the w

Re: HTML helper (Meta Icon) duplicating unnecessarily?

2011-05-05 Thread euromark
as far as i know thats in order to address all browsers (because some stupid ones - i won't name any^^ - behave differently as the rest) On 4 Mai, 22:47, Ross wrote: > Hi > > I just got started with CakePHP, and have the following in  my layout, > between the tags's as you'd expect: > > Html->me

Re: HTML helper in function?

2009-08-12 Thread Josh
Ahhh... passing a handle as an argument. It seems so obvious now. Thanks I have actually already moved things to a helper, which makes more sense anyway. The helper I have will suit my needs fine this time around. It will be easy to wrap tags around the menu elements when I get around to the CSS

Re: HTML helper in function?

2009-08-12 Thread brian
Pass a handle to the helper to your function: outputMenu($html, $linkTree, $level); function outputMenu(&$html, $array, $level) { Even better, have a look at Andy Dawson's TreeHelper. I think it's precisely what you need for this. http://bakery.cakephp.org/articles/view/tree-helper-1 Let me k

Re: HTML helper in function?

2009-08-12 Thread Josh
@James - The code I have up there should produce the error. Throw the $this-> object reference in front of the html->link() to get the reference to a non-object error @Martin - Are you sure you can do that with an object? I think Global can only be applied to variables, no? I'll try it out of cur

Re: HTML helper in function?

2009-08-12 Thread grigri
Hi Josh, With that sort of code, you'd be better off putting it in your own helper. That helper can load its own helpers, so doing links wouldn't be a problem. This thread: http://groups.google.com/group/cake-php/browse_thread/thread/f3a8243e2226c696 deals with this approach, but for radio boxe

Re: HTML helper in function?

2009-08-12 Thread Martin Westin
I don't know how you do it James. I just did a quick test in a view and defining a function inline in the view will not provide that function with access to the local variables outside the function ($html, $form...) One ugly way of making it work is to make a global reference to the html helper (

Re: HTML helper in function?

2009-08-11 Thread Josh
It works fine outside of the function. I've run into this before; helper functions not working within View functions. Are you sure you've had that work in the past? I think the issue is that you normally (in models, controllers, components...) need to reference the object where the function is lo

Re: HTML helper in function?

2009-08-11 Thread JamesF
if you have time would you mind posting a test case or example code? i would love to see some more of the code in context just so I can improve my understanding of the issue. please let us know what works in the end for you it might help someone in the future On Aug 12, 1:09 am, Josh wrote: > I

Re: HTML helper in function?

2009-08-11 Thread JamesF
hmm im not sure if this will work but you could try in your element: App:import('Helper', Html'); $html = new html(); does html helper work in other parts of your element outside the function? i usually have no problems at all using $html->link() within an element function. On Aug 11, 10:47 pm

Re: HTML helper in function?

2009-08-11 Thread JamesF
hmm im not sure if this will work but you could try in your element: App:import('Helper', Html'); $html = new html(); On Aug 11, 10:47 pm, Josh wrote: > The helpers are set and work fine. However, $html->link() does not > work when called within a function in the view. > > As for where the log

Re: HTML helper in function?

2009-08-11 Thread Josh
The helpers are set and work fine. However, $html->link() does not work when called within a function in the view. As for where the logic is written: this is an element that appears in all admin tools throughout the site. requestAction() would allow me to put some of the logic in the controller,

Re: HTML helper in function?

2009-08-11 Thread JamesF
if your controller is set up with var $helpers = array('html') ; you should be fine..that error is just telling you that cake can't find HtmlHelper...is there a reason you are executing that logic in your view and not the controller? On Aug 11, 7:02 pm, Josh wrote: > Hi, > > I have the contents

Re: HTML Helper issue in Blog Tute

2009-02-07 Thread Alfredo Quiroga-Villamil
Do you have var $helpers = array('Html') in your controller or AppController ? Regards, Alfredo On Sat, Feb 7, 2009 at 9:41 AM, jim wrote: > > This is not showing as a link in my browser: > > link($post['Post']['title'], "/posts/view/".$post > ['Post']['id']); ?> > > > Just looks like this: >

Re: html helper issue

2008-10-01 Thread Samuel DeVore
On Wed, Oct 1, 2008 at 9:32 AM, soosa <[EMAIL PROTECTED]> wrote: > Thanks for your reply Lance! > > but still this is not a good way to handle this issue, at least because the > code in the view will be ugly since some metas have been generated by cake > and others you should put them in plain har

Re: html helper issue

2008-10-01 Thread soosa
Thanks for your reply Lance! but still this is not a good way to handle this issue, at least because the code in the view will be ugly since some metas have been generated by cake and others you should put them in plain hard coding! i already did it as you said but IMHO i still think that the miss

Re: html helper issue

2008-10-01 Thread Lance Willett
> is there any way to generate the output for those metas as dealing with > description and > keywords metas? Hi soosa, The "meta" HTML helper currently supports building meta elements for "rss", "icon", "atom", "keywords", and "description". For all the other types of meta elements, you are be

Re: Html Helper

2008-09-19 Thread nayan
But When i have two model like User and UserType and in Users controller right now i am using only UserType model so in the add.ctp i metion create('UserType', > > array('action' => 'admin_add')); ?> it give me error "Controller missing" On Sep 12, 6:43 pm, "David C. Zentgraf" <[EMAIL PROTECTED

Re: Html Helper

2008-09-12 Thread David C. Zentgraf
> $form->create(string $model = null, array $options = array()); from: http://book.cakephp.org/view/183/Creating-Forms On 12 Sep 2008, at 13:16, nayan wrote: > > Thank you for reply.i wana to ask you one thing that i didnt fine any > where,we create form like this "create('Setting', > array('ac

Re: Html Helper

2008-09-12 Thread nayan
Thank you for reply.i wana to ask you one thing that i didnt fine any where,we create form like this "create('Setting', array('action' => 'admin_edit')); ?>" .Tell me first stands for what (Here Seeting) means it is controller name or model name On Sep 10, 7:16 pm, "Luiz Poleto" <[EMAIL PROT

Re: Html Helper

2008-09-10 Thread Luiz Poleto
Also, forget about using 'FanType/fantype_name'. Although it's still supported, now the correct way to use it is 'FanType.fantype_name'. Regards, Luiz Poleto 2008/9/10 nayan <[EMAIL PROTECTED]> > > I am using cake 1.2 .When i use "echo $html->input('FanType/ > fantype_name')" in my form.it give m

Re: Html Helper

2008-09-10 Thread Donkeybob
yes . . .just as john said . . .its $form->input. On Sep 10, 9:22 am, John David Anderson <[EMAIL PROTECTED]> wrote: > On Sep 10, 2008, at 1:35 AM, nayan wrote: > > > > > I am using cake 1.2 .When i use "echo $html->input('FanType/ > > fantype_name')" in my form.it give me the following error > >

Re: Html Helper

2008-09-10 Thread John David Anderson
On Sep 10, 2008, at 1:35 AM, nayan wrote: > > I am using cake 1.2 .When i use "echo $html->input('FanType/ > fantype_name')" in my form.it give me the following error > "Method HtmlHelper::input does not exist [CORE\cake\libs\view > \helper.php, line 148]".can we use html helper in cake 1.2 ? Ye

Re: Html Helper get wrong!!

2008-06-24 Thread [EMAIL PROTECTED]
thank you Daniel ! thank you Hannibal ! dr. Hannibal Lecter wrote: > Also, be sure to use a dot instead of a slash: > > $form->input('Artist.name'); > > Happy baking! > > On Jun 24, 11:51�am, Daniel Hofstetter <[EMAIL PROTECTED]> wrote: > > Hi, > > > > > i get use the new cake version 1.2.0.7125

Re: Html Helper get wrong!!

2008-06-24 Thread dr. Hannibal Lecter
Also, be sure to use a dot instead of a slash: $form->input('Artist.name'); Happy baking! On Jun 24, 11:51 am, Daniel Hofstetter <[EMAIL PROTECTED]> wrote: > Hi, > > > i get use the new cake version 1.2.0.7125 RC1, > > > i code the Html helper like before: > > > input('Artist/name');?> > > > bu

Re: Html Helper get wrong!!

2008-06-24 Thread Daniel Hofstetter
Hi, > i get use the new cake version 1.2.0.7125 RC1, > > i code the Html helper like before: > > input('Artist/name');?> > > but it got html: > > > > could somebody tell me how should i do? HtmlHelper::input() is deprecated and shouldn't be used anymore. Most of it's functionality is now in the

Re: Html Helper link onclick option question

2008-05-22 Thread fr3nch13
You have to turn off the escaping in the link functions, it auto escapes. Check out: http://www.donutczar.com/blog/?p=4 http://api.cakephp.org/1.2/class_html_helper.html On May 22, 4:56 am, jimbo <[EMAIL PROTECTED]> wrote: > Hi, > > can anybody help me with this problem, I am creating a simple

Re: HTML Helper webroot not correct

2008-05-22 Thread Dardo Sordi Bogado
It's documented since a long time ago: CakePHP 1.2: http://book.cakephp.org/view/32/installation CakePHP 1.1: http://manual.cakephp.org/view/308/installing-cakephp On Wed, May 21, 2008 at 10:34 AM, Joel Perras <[EMAIL PROTECTED]> wrote: > > Add the line: > > RewriteBase /~user/ > > to the .hta

Re: HTML Helper webroot not correct

2008-05-21 Thread Joel Perras
Add the line: RewriteBase /~user/ to the .htaccess files that already exist in your cake installation. They should be found in app/.htaccess and app/webroot/.htaccess (this last one may be redundant). Assuming you haven't changed the location of any Cake folders and files, this should solve yo

Re: HTML Helper webroot not correct

2008-05-21 Thread Tobes
Joel, Thanks for the advice, but I am not sure what to set it to. The site is currently in folder on URL http://localhost/~user/cakephptest/... The images that the default layout includes are referencing to http://localhost/img rather than http://localhost/~user/cakephptest/img Can you advise

Re: HTML Helper webroot not correct

2008-05-20 Thread Joel Perras
Set a RewriteBase condition in your .htaccess files in app/.htaccess and app/webroot/.htaccess. On May 20, 7:49 pm, Tobes <[EMAIL PROTECTED]> wrote: > Hi all, > > I've just started playing with CakePHP & have found that, because I'm > not using a domain name to access my site, but instead using a

Re: HTML Helper - flash support

2008-02-03 Thread MrTufty
Unlikely. My theory on this, others may disagree, is that Flash is better added by the theory of progressive enhancement. That's why I use jQuery plus the jQuery Flash plugin to handle it at the client side. I'm pretty sure other libraries have similar solutions. Steve On Feb 1, 11:00 pm, Ata A

Re: html helper: Akamai for images?

2007-07-25 Thread Grant Cox
You can pass a full path to the HTML helper image function. echo $html->image( 'http://cakephp.org/img/cake.power.png', array('alt'=>'CakePHP!') ); On Jul 26, 12:24 pm, Beth <[EMAIL PROTECTED]> wrote: > Hi, > > I've got a client who is using Akamai for hosting their images (tons > of photos). D

Re: html helper: not valid xhtml

2007-04-25 Thread Damien
Presumably you should be using 'password' instead of 'input' anyway for the above example? 'password' => '' I'm using 1.1.14 stable and my standard input fields are coming out fine... (i.e. with the />) - what code are you using in your view to generate the offending (non XHTML)? Damien --~--

Re: html helper: not valid xhtml

2007-04-25 Thread majna
Cake version is 1.1.15.4852 -latest nightly, same problem with 1.1.14 stable tnx On Apr 25, 9:00 pm, majna <[EMAIL PROTECTED]> wrote: > There is page in output (source): > value="" type="password"> > > Notice closing tag: without /> > > In cake\libs\view\helper.php > "input" is defined like th

RE: HTML Helper UTF-8 Issue

2006-12-18 Thread Mariano Iglesias
original- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de meek Enviado el: Lunes, 18 de Diciembre de 2006 11:17 a.m. Para: Cake PHP Asunto: Re: HTML Helper UTF-8 Issue what a friendly '交流群' this is! --~--~-~--~~~---~--~~ You received th

Re: HTML Helper UTF-8 Issue

2006-12-18 Thread meek
ok. i understand now - i didn't get that the characters already are entities. thanks for the explanation. what a friendly '交流群' this is! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to

Re: HTML Helper UTF-8 Issue

2006-12-18 Thread uzyn
Yup meek. I did extend my own class. I do not like to hack files in cake directory as well. The problem here is because of MySQL integration. When data is grabbed straight away from MySQL, it is grabbed as string of UTF-8 numbers (with the &#). The h() function would have change the & to HTML ent

Re: HTML Helper UTF-8 Issue

2006-12-18 Thread meek
Glad you found a solution, but I'm still confused. Maybe it's something to do with bake which I haven't used. if i put this in a view: I don't get any entities. As I wrote above, AFAIK, the htmlspecialchars function - the function used in 'h' - only replaces a few entities (ampersand, corner

Re: HTML Helper UTF-8 Issue

2006-12-18 Thread uzyn
meek, Thanks for your response. It is certainly what is happening to me, using the view files generated by bake. The UTF character would be shown as 中 The '&' character is converted to HTML entity. This happens to me at least in $html->input and $html->selectTag. I did not test other fun

Re: HTML Helper UTF-8 Issue

2006-12-18 Thread uzyn
I have found out the cause of this problem. It's due to the use of h() functions. Simply remove the use h() in input() and selectTag() in HTML Helper would solve this problem. Not sure should I submit this fix to the repository. --~--~-~--~~~---~--~~ You receive

Re: HTML Helper UTF-8 Issue

2006-12-18 Thread meek
I'm probably missing something, but are you sure this is a problem with the html helper? I just built a form using it and had no problems with chinese characters in field values being turned into entities (I always use UTF-8). As far as I can see, the html helper will only automatically turn a few

Re: HTML Helper UTF-8 Issue

2006-12-17 Thread uzyn
Thanks rdoggsv, I guess I'll have to do the same as well. On Dec 18, 7:03 am, "rdoggsv" <[EMAIL PROTECTED]> wrote: > I had this question some time ago, but i didnt ask, i started using > normal html tags to do the job , but i really hope u get some answers > as this would help a lot. > > I wasnt

Re: HTML Helper UTF-8 Issue

2006-12-17 Thread uzyn
your knowledge. > > BAKE ON! > > -Mensaje original- > De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre > de rdoggsv > Enviado el: Domingo, 17 de Diciembre de 2006 08:04 p.m. > Para: Cake PHP > Asunto: Re: HTML Helper UTF-8 Issue > > I had this qu

RE: HTML Helper UTF-8 Issue

2006-12-17 Thread Mariano Iglesias
: Re: HTML Helper UTF-8 Issue I had this question some time ago, but i didnt ask, i started using normal html tags to do the job , but i really hope u get some answers as this would help a lot. I wasnt using chinese character but spanish, and same problem

Re: HTML Helper UTF-8 Issue

2006-12-17 Thread rdoggsv
I had this question some time ago, but i didnt ask, i started using normal html tags to do the job , but i really hope u get some answers as this would help a lot. I wasnt using chinese character but spanish, and same problem. --~--~-~--~~~---~--~~ You received

Re: HTML helper error messages output

2006-10-15 Thread MicroAngelo
This is a functional work-around, but in answer to your original question I would suggest that yes, this should be a feature request / bug report, as the preferred way to do this would be to override /cake/config/tags.ini.php with your own /app/config/tags.ini.php, therefore $html->tagErrorMsg _sh

Re: HTML helper error messages output

2006-10-13 Thread Christiaan Ottow
It does, thanks :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Fo

Re: HTML helper error messages output

2006-10-06 Thread Mikee Freedom
yes, unfortunately that function doesn't use any of the snippets from the tags.ini. as i mentioned in the previous email, you may have to write your own helper and include a function that modifies the output of the tagErrorMsg function or replicates it using different HTML. i've written a form h

Re: HTML helper error messages output

2006-10-06 Thread Christiaan Ottow
Thanks for your help guys. However, judged from the code in html.php, the HTML helper doesn't look at tags. If I'm wrong, which tag should I set in my custom tags.ini.php for the HTML helper to use it? Thanks in advance, Chris --~--~-~--~~~---~--~~ You received

Re: HTML helper error messages output

2006-10-04 Thread Mikee Freedom
ahhh i knew there must be a better way. thanks gwoo. On 05/10/06, gwoo <[EMAIL PROTECTED]> wrote: > > you could also create you own tags.ini.php and drop it in /app/config > and that will override the cake core file. > > > > --~--~-~--~~~---~--~~ You received thi

Re: HTML helper error messages output

2006-10-04 Thread gwoo
you could also create you own tags.ini.php and drop it in /app/config and that will override the cake core file. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email t

Re: HTML helper error messages output

2006-10-04 Thread Mikee Freedom
morning mate, i'm pretty sure you can access the HTML the HtmlHelper uses in the following file: /cake/config/tags.ini.php actually, looking at it, tagErrorMsg is one of the only functions that doesn't refer to this file at all. in the HtmlHelper: /cake/libs/views/helpers/html.php you can se

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 th

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 almost-

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

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 yo

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-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 generated when I called $html->se

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 tha

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 s

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

2006-09-18 Thread Chris Hartjes
On 9/18/06, nate <[EMAIL PROTECTED]> 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. Cak

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 subscrib

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($fie

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 specif

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. Pr

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 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 g

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 sev