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 ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/

Reply via email to