Welcome Guest, Not a member yet? Register   Sign In
Using libraries alongside models
#5

I would also like to note that the Template Engine I have created is called instead of loading $this->load->view(); therefore, I've had to set it up to pass data to the template to check for matches. I would just like to be able to have a kinda partial library for functionality.

Such as products, blogs, forums etc. This way I could call different things in my template like latest blog posts, latest products and latest forums; no matter what page I am or what template is being loaded.

To do this i kinda need to know what the best way is, do I use a library with direct database queries? do I load a model into the library? or do i use a helper and call the database or so on.

What do you think?

Matt.
Reply


Messages In This Thread
Using libraries alongside models - by mdixon18 - 03-29-2015, 04:06 PM
RE: Using libraries alongside models - by mdixon18 - 03-29-2015, 07:45 PM
RE: Using libraries alongside models - by RWCH - 04-03-2015, 07:17 AM
RE: Using libraries alongside models - by gadelat - 04-03-2015, 08:31 AM
RE: Using libraries alongside models - by RWCH - 04-07-2015, 03:44 AM
RE: Using libraries alongside models - by RWCH - 04-07-2015, 03:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB