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

(This post was last modified: 04-07-2015, 03:45 AM by RWCH.)

(04-03-2015, 08:31 AM)gadelat Wrote:
Quote:I have a home controller, In this controller I would like to store the latest products from the products controller.
This does not make sense. Controllers are not for storing data.

I think the OP knows that.

From what I understood, he wants to access a model in his home controller, which he only can access from his products controller ... or access his products controller from his home controller
He wants to know the right way to solve his problem.

Codeigniter is not a HMVC framework like Kohana, otherwise you could have called a controller from a controller. In this way you could have called a public method on your product controller and have it give back the data to your home controller.
Reply


Messages In This Thread
Using libraries alongside models - by mdixon18 - 03-29-2015, 04:06 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