Fatal error: Call to a member function query() while my class extends controller |
[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, 08:47 AM
Fatal error: Call to a member function query() while my class extends controller - by El Forum - 06-21-2007, 09:56 AM
Fatal error: Call to a member function query() while my class extends controller - by El Forum - 06-21-2007, 10:19 AM
Fatal error: Call to a member function query() while my class extends controller - by El Forum - 06-21-2007, 10:52 AM
|