开发者

Model or Library class

开发者 https://www.devze.com 2023-01-05 09:15 出处:网络
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.

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 p开发者_Go百科ut those classes in the library folder or should I implement them as models?

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


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


Try this reference and see if it helps you.

0

精彩评论

暂无评论...
验证码 换一张
取 消