|
Yup J But you can just copy them from a project file. But be
careful to add new files in if you add any. From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gareth Cole Thanks Doug If I override the init method and want to
keep all the original init arguments (in addition to the treeManger arg), do I
have to type all the original arguments as cfargument tags manually? This may sound lazy, but I like the way reactor
can automatically add new fields when the database changes. -----Original Message----- Reactor actually intentionally
doesn’t use the init method convention. It does create a base init
method which accepts arguments for each of the properties. Because
Reactor doesn’t use this you’re free to change it to suit you
needs. You can override the method and add an extra argument to pass in
the treemanager or simply remove all the arguments and add just the
treeManager. It’s up to you! Doug From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gareth Cole Hi, I’m still learning my way through Reactor and
CFCs in general, and I’m a bit stuck. I have a ‘Page’ table as part of a cms. I want to add a custom method called getBreadCrumbs()
that returns an array of breadcrumb links for the specific page. I plan to add
this method to the custom PageRecord cfc. So far, I know what I’m doing. My problem is
that the getBreadCrumbs() method will need to access an instance of
TreeManager.cfc (with thanks to Barney B for this cfc). From what I’ve
been told, it’s best not to hard code a reference to the TreeManager
instance – instead it’s better to pass a reference in the init()
method. I don’t know how to do this in Reactor. I
thought about writing a custom init() method, but I’m not sure if this
would break things. Any suggestions? Thanks, Gareth |
- [Reactor For CF] custom init() Gareth Cole
- RE: [Reactor For CF] custom init() Doug Hughes
- RE: [Reactor For CF] custom init() Gareth Cole
- Re: [Reactor For CF] custom init() Jared Rypka-Hauer
- RE: [Reactor For CF] custom init() Gareth Cole
- RE: [Reactor For CF] custom init() Doug Hughes
- Re: [Reactor For CF] custom init() Jared Rypka-Hauer
- RE: [Reactor For CF] custom init() Doug Hughes

