[symfony-users] Calling an action from an outside class

2010-03-01 Thread Samuel Morhaim
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

Re: [symfony-users] Calling an action from an outside class

2010-03-01 Thread Daniel Lohse
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

Re: [symfony-users] Calling an action from an outside class

2010-03-01 Thread Samuel Morhaim
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

Re: [symfony-users] Calling an action from an outside class

2010-03-01 Thread Daniel Lohse
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

Re: [symfony-users] Calling an action from an outside class

2010-03-01 Thread Samuel Morhaim
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

Re: [symfony-users] Calling an action from an outside class

2010-03-01 Thread Daniel Lohse
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