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
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,
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
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
-
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