I was wondering if anyone else could try implementing custom html tags
in 1.2 beta to see if it works for you.

I haven't found any documentation indicating it changed since 1.2 pre-
beta, so I might just submit a ticket.

On May 12, 1:11 pm, Action <[EMAIL PROTECTED]> wrote:
> Have you tried usingcustomtagsin 1.2 beta? Is it working for you?
> If so, can you copy/paste you app_helper.php andtags.php files?
>
> On May 11, 10:34 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
>
> >    function __construct(){
> >                parent::__construct();
> >        $this->loadConfig();
> >    }
>
> > try putting that in the helper, i got results doing that with
>
> > debug($this->tags) in a method of the helper
>
> > 2008/5/12 Action <[EMAIL PROTECTED]>:
>
> > > This is what I have:
>
> > > app/app_helper.php :
>
> > > <?php
> > > class AppHelper extends Helper {
> > >    function __construct(){
> > >                 parent::__construct();
> > >        $this->loadConfig();
> > >    }
> > > }
> > > ?>
>
> > > app/config/tags.php :
>
> > > <?php
> > > $tags= array(
> > >        'block' => '<p%s>%s</p>',
> > >        'blockstart' => '<p%s>',
> > >        'blockend' => '</p>'
> > > )
> > > ?>
>
> > > On May 11, 7:37 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> > > > try in your helper
>
> > > >      function __construct(){
> > > >          parent::__construct();
> > > >          $this->loadConfig();
> > > >      }
>
> > > > that displays what I have in the $tagsarray of config/tags.php
>
> > > > and to load $this->loadConfig('mytags');  you'd have a file named
> > > > core/mytags.php
>
> > > > and the array in $tags= Array(
> > > > ....
> > > > )
>
> > > > hth - S
>
> > > > 2008/5/11 Action <[EMAIL PROTECTED]>:
>
> > > > > That is exactly what I am doing and what I've always done. The problem
> > > > > is that it no longer works.
>
> > > > > On May 11, 6:33 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> > > > > > In 1.2 to load thecustomtagsyou can create your own AppHelper
> > > class
> > > > > in
> > > > > > app/app_helper.php.
>
> > > > > > <?php
> > > > > > class AppHelper extends Helper {
>
> > > > > >     function __construct(){
> > > > > >         $this->loadConfig();
> > > > > >         parent::__construct();
> > > > > >     }}
>
> > > > > > ?>
>
> > > > > >https://trac.cakephp.org/ticket/2081
>
> > > > > > - S
>
> > > > > > 2008/5/11 Marcin Domanski <[EMAIL PROTECTED]>:
>
> > > > > > > It changed - look at $this->tagsin helper(s)
>
> > > > > > > On Sun, May 11, 2008 at 10:10 PM, Action <[EMAIL PROTECTED]
>
> > > > > wrote:
>
> > > > > > > >  I built an app using 1.2 pre-beta that uses atags.php in
> > > > > app/config
> > > > > > > >  called from app/app_helper.php that setscustomhtmltagsfor
> > > > > certain
> > > > > > > >  helper-generated markup.
>
> > > > > > > >  In 1.2 Beta, it no longer works. It simply isn't applying my
> > >custom
> > > > > > > >  tags. Has this changed from pre-beta to beta...or is it simply
> > > > > broken
> > > > > > > >  now?
>
> > > > > > > --
> > > > > > > Marcin Domanski
> > > > > > >http://kabturek.info
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to