Welcome Guest, Not a member yet? Register   Sign In
Fatal error: Call to a member function query() while my class extends controller
#2

[eluser]pr0digy[/eluser]
Hi orglee, it seems you're a bit confused. The code above, really belongs to a model (Models are used to work with DB). Normally, you would make a call to a Model function from one of your controllers (when you load DB class within a controller it automatically becomes available loaded models) to obtain the necessary data. Those data, in turn, are assigned to a view, which is then rendered.

There are many tutorials that you should go through, both video and text. I suggest you give them a try first.


Messages In This Thread
Fatal error: Call to a member function query() while my class extends controller - by El Forum - 06-21-2007, 09:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB