Hey, it worked.
Thanks Adam...
I was trying to expand the core without modifying the core.
On Feb 6, 7:19 pm, Adam Royle <[EMAIL PROTECTED]> wrote:
> Don't change core!! Just copy the helper from the core into your own
> helpers folder and cake will use yours instead!
>
> Adam
>
> On Feb 6, 9:34 am, ProFire <[EMAIL PROTECTED]> wrote:
>
>
>
> > Awww....
> > Nate!!!
>
> > You rock!
> > Get these features rolling!
> > I can't wait for those enhancements!
> > Can't believe I'm working on some minor enhancements when you are
> > working on it too, except on a grander scale.
>
> > Oh well, I'll just make do with modifying the core files for now until
> > there's a placeholder/overriding/overloading mechanism to work with on
> > the application side.
>
> > On Feb 6, 1:14 am, nate <[EMAIL PROTECTED]> wrote:
>
> > > I've already implemented this, and am working it out along with some
> > > other related enhancements. Once it's completed and test-covered,
> > > you'll see it in the core.
>
> > > On Feb 5, 10:50 am, grigri <[EMAIL PROTECTED]> wrote:
>
> > > > While it's true that submissions to trac *do* help extend the
> > > > functionality of the core code, I do see ProFire's point.
>
> > > > There is no way that a helper can perform everything that you'd want,
> > > > even if it was totally bloated with code. It would be nice to be able
> > > > to extend the core helpers without replacing them entirely, but also
> > > > without changing the name.
>
> > > > One possible way would be helper aliases. For example, in your
> > > > controller you could do:
>
> > > > var $helpers = array('Html' => 'MyHtml');
>
> > > > which would load the 'MyHtml' helper but alias it as Html. Assuming
> > > > your MyHtmlHelper extends HtmlHelper, this would work smoothly. You
> > > > could just override the methods you need, and bob's your uncle.
>
> > > > One problem with this would be keeping track of the whole helper chain
> > > > - for example if you've aliased MyHtml to Html, and another helper
> > > > (Ajax?) uses the HtmlHelper, which one does it load? The original or
> > > > the overloaded one?
>
> > > > What are your thoughts on this? Does anyone else think this is a good
> > > > idea?
>
> > > > On Feb 5, 2:56 pm, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote:
>
> > > > > Why not submit your modification to trac, perhaps it's good enough to
> > > > > be accepted!
>
> > > > > On Feb 5, 1:22 pm, ProFire <[EMAIL PROTECTED]> wrote:
>
> > > > > > Hi Bakers!
>
> > > > > > Been using CakePHP for some time already and I'm getting the hang of
> > > > > > it. I'm loving it too.
>
> > > > > > However, as CakePHP is still young, I noticed a few missing
> > > > > > features.
> > > > > > More specifically, AjaxHelper! I have modified the core file,
> > > > > > ajax.php. So far it works fine for now.
>
> > > > > > I would like to ask, is there a way to modify/extend the features of
> > > > > > the core helpers without modifying the core files? The way I know of
> > > > > > is to create an entirely different helper, but I won't be able to
> > > > > > reuse the name.- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---