Re: Component code

2010-09-03 Thread alaxos
Maharaj wrote: Place the code in the model and pass the Session data as vars from the controller? -Original Message- From: Jeremy Burns [mailto:jeremybu...@classoutfit.com] Sent: September-03-10 2:24 AM To: CakePHP Subject: Component code I have a chunk of code that appears

Component code

2010-09-02 Thread Jeremy Burns
I have a chunk of code that appears in two controllers (orders_controller and order_items_controller) that is virtually identical in each case. I'd like to move it to a single location, so this sounds like an ideal candidate for a component. Part of the code calls a function in the Order model,

RE: Component code

2010-09-02 Thread Dave Maharaj
Place the code in the model and pass the Session data as vars from the controller? -Original Message- From: Jeremy Burns [mailto:jeremybu...@classoutfit.com] Sent: September-03-10 2:24 AM To: CakePHP Subject: Component code I have a chunk of code that appears in two controllers

Re: Component code

2010-09-02 Thread Jeremy Burns | Class Outfit
and pass the Session data as vars from the controller? -Original Message- From: Jeremy Burns [mailto:jeremybu...@classoutfit.com] Sent: September-03-10 2:24 AM To: CakePHP Subject: Component code I have a chunk of code that appears in two controllers (orders_controller

Re: Component code

2010-09-02 Thread Richard Claydon
- From: Jeremy Burns [mailto:jeremybu...@classoutfit.com] Sent: September-03-10 2:24 AM To: CakePHP Subject: Component code I have a chunk of code that appears in two controllers (orders_controller and order_items_controller) that is virtually identical in each case. I'd like to move