Is there a way to call an action, from an outside Class?
I am handling the processing of one of my routines with an outside class..
I need to call the exact same code being called in one of my actions.. how
can i do this?
or should i move the code somewhere else?
thanks.
--
If you want to
Move it out to the model or into the outside class and also call it from the
action. :)
Daniel
On 01.03.2010, at 23:43, Samuel Morhaim wrote:
Is there a way to call an action, from an outside Class?
I am handling the processing of one of my routines with an outside class.. I
need to
Sorry for the dumb question, but now that I moved it to
lib/Message.class.php ... how do I call it from there from within a separate
Class? I manage to call it from within the actions..
but now i am in this external class, and i need to call that method ?
On Mon, Mar 1, 2010 at 5:57 PM, Daniel
require_once the file and instantiate the Message class... oh man, symfony is
not there for you to completely forget either PHP or plain OOP :)
Daniel
On 02.03.2010, at 01:00, Samuel Morhaim wrote:
Sorry for the dumb question, but now that I moved it to lib/Message.class.php
... how do I
lol yes, sorry, i click sent, and then figured it out. :)
On Mon, Mar 1, 2010 at 7:02 PM, Daniel Lohse
annismcken...@googlemail.comwrote:
require_once the file and instantiate the Message class... oh man, symfony
is not there for you to completely forget either PHP or plain OOP :)
Daniel
no problem, it's late over here, anyway :D
On 02.03.2010, at 01:07, Samuel Morhaim wrote:
lol yes, sorry, i click sent, and then figured it out. :)
On Mon, Mar 1, 2010 at 7:02 PM, Daniel Lohse annismcken...@googlemail.com
wrote:
require_once the file and instantiate the Message