Welcome Guest, Not a member yet? Register   Sign In
libraries and db access
#1

[eluser]theprodigy[/eluser]
I'm creating a preset email library for a site that I'm working on (contains activation email, lost password email, warning emails, etc).

I'm wanting to add an option to save the email to a database for archiving purposes (like in the case of warning emails), but I am reluctant to create a model for one function. I do not believe that this library will expand any further with the exception of possibly adding a few more preset emails.

Do I create the model for one function or do I break convention and just access the db straight from the library?

Any ideas are greatly appreciated.

Thanks
#2

[eluser]designfellow[/eluser]
Hi,
CI allows accesing db from libraries & won't create any problems.
My suggestion is you can use db in library rather than creating a whole new model for single function.

Happy coding,
DesignFellow




Theme © iAndrew 2016 - Forum software by © MyBB