Re: Playing with Cake: how to hack into Cake's core within 20 lines codes

2008-05-21 Thread Sliv (Tim MacAleese)
Just remember that there is an inline comment before that line that says "DO NOT EDIT BELOW THIS LINE". Probably not there arbitrarily, so ignore at your own risk ;) On May 20, 12:27 pm, RainChen <[EMAIL PROTECTED]> wrote: > Some times I want to add some methods or common attributes to all > Cak

Playing with Cake: how to hack into Cake's core within 20 lines codes

2008-05-20 Thread RainChen
Some times I want to add some methods or common attributes to all Cake's objects. We know that most of the classes are extended from class Object. But there are not something like AppObject as a AppModel style API for us to extend objects. I dug deep into Cake's core source. Finally I found Cake l