[eluser]Devon Lambert[/eluser]
Hello Codeigniters,
Let me preface this post with the typical *I am a newbie* warning. That said, I am hoping that some gracious individual on these forums can get me started in the right direction with the conversion of my arcade script over to CI by breaking out the following example for me into exact code (i.e. split out the portions that belong in a model, controller, etc) and also include the functions/objects/methods involved?
Please please please:
So I have a model named mdl_game.php and a controller named game.php.
I need to build a function in the model that will do the work of pulling the "Game ID" from the "URL" and then pull the Game's information from the DB based on the ID and store the information in an array named $info (or whatever you want it to be named :-) ).
Then...
In the controller I would need to load in that model, and call it's function.
All of this work would hopefully allow me to eventually build the code that will display the flash games that I have on my site.
Any helpers?