Tuesday, December 4, 2012

Re: Question about HtmlHelper::loadConfig()

Hello Novrian,

I'm really new here, so I may not be the best person to answer your question.  But I'll try and maybe learn something along the way...

I would try one of three ideas:
  1. Try using your own specialized View/Helper/AppHelper.php  Remember, don't alter the CakePHP AppHelper
  2. Try using your own specialized Controller/AppController.php
  3. Or, in your View/Layouts/default.ctp (or whatever layout you are using).

I hope this helps, and I'm really looking forward to a guru telling us which one (if any) of these the the "right way" to do it!



On Tuesday, December 4, 2012 2:21:31 PM UTC-7, Novrian YF wrote:
Hi all,

According to the book, In order to override HtmlHelper Tags, we have to create html5_tags.php and put it in app/Config/html5_tags.php. The book also said you can then load the Config with $this->Html->loadConfig();

The question is, where I should put those code in order to make my custom Tags available to all view??

Thanks in advance

Regards,
Novrian

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate