Tutorial :Model or Library class



Question:

Im going to do an Email class for sending emails in my MVC framework. I also have a login class that just checks if the user is in the database.

Should I put those classes in the library folder or should I implement them as models?

I tried to do search but couldnt find straight answer..


Solution:1

IMHO mailer classes are similar two controllers. They should fetch the data from a model and than render a view (email).


Solution:2

Try this reference and see if it helps you.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »