Is it possible to use the built-in CakePHP components (eg: EmailComponent
) as standalone classes?
I know this probably shows a design flaw, and that I'm not doing it the Cake way or something, but I have a class which is not tied to any Model/Controller and I want that to be able to send emails. Importing the EmailComponent doesn't work, since it tries to read information from $this->Controller
which is obviously null in this situation.
Any suggestions?