Welcome Guest, Not a member yet? Register   Sign In
Newb question about models
#1

[eluser]Unknown[/eluser]
Hey, I'm coming to Code Igniter from an in-house MVC PHP framework at my previous employer. I know MVC but I don't know Code Igniter.

Here's basically what I want to do in pseudocode:

an_instance = MyModel->getOneItem()
an_instance->someMethod()

From what I can tell from the documentation, the Code Igniter thing to do is to use the model to grab Active Record objects. I want to grab an instance of my model class so I can use methods on particular instances.

I hope this question made sense. Thanks in advance for the help.




Theme © iAndrew 2016 - Forum software by © MyBB