[eluser]osxxso[/eluser]
Been going through the user_guide and having a difficult time making the connections between the database, model, controller, and view.
Basically, what I have is a simple database with one table to store company information ( title, address, city, phone, etc... )
I'm auto loading the database ( as explained in the user_guide ) and a model that I created...
autoload.php
Code:
$autoload['libraries'] = array('database');
AND
Code:
$autoload['model'] = array('Company_model');
As a simple example all I'm trying to accomplish ( at this point ) is to echo the phone number on the website that is stored in the database. This should be so simple but I'm not able to make the connections between database, model, controller, and view.
Could someone show me an example of on how to accomplish this using a model, a controller, and a view.
Thanks in advance!