[eluser]Iverson[/eluser]
[quote author="Colin Williams" date="1239404496"]It's really a matter of how CI was designed. A Controller is just an instance of CodeIgniter class. So, to have other controllers available to call, you need multiple instances of the entire CodeIgniter class.
Code:
lnclude(APPPATH.'controllers/notice.php');
$this->notice = new Notice();
$this->notice->method_to_call();
What is wrong with having a library send out these notices for you? Or even a helper.
Code:
send_notices($users, $vars, $template);
If notices aren't an application resource, I don't see the need for having a Controller for them.[/quote]
Good idea. I'll probably just make a lib and each notification will have a method. Anything theoretically wrong with accessing models in a library? Btw, EE killed the beginning of your code