Welcome Guest, Not a member yet? Register   Sign In
Controllers that talk to each other
#1

[eluser]port22[/eluser]
I am working on a site and had a question.

I am trying to make a simple site with multiple CI applications.

- blog
- portfolio
- about me
- photography
- calendar (used by all of the above applications)

Am I correct to assume that the calendar would be a library and not a standard MVC CI App in order to allow it to be usable by the other applications?

What if I wanted to tie parts of the others together? Such as the inclusion of new photos uploaded as a blog post? (This would make a call to calendar functions to check for the latest photography information, and then calls to the photography controller to pull that information.)

Any tips on this?

Yes, I have searched, but I'm not coming up with anything worthwhile.
#2

[eluser]richzilla[/eluser]
On the calendar front - yes that would seem like the best way of doing it.
Have you thought about pushing some of your other functionality into a model? That way the functions are available to all of your controllers, in the same way as your library.




Theme © iAndrew 2016 - Forum software by © MyBB