Link to home
Start Free TrialLog in
Avatar of ozzy t
ozzy t

asked on

How can i display my results as a table in codeigniter?

I have attached files, i am trying to display results in a table, i am new to codeigniter is there a way to do this? what would be the best way to implement this? i have read about codeigniter tables but i am not sure how to apply to my code. Any guidance will be appreciated.
Thank You!
site.php
site_model.php
options_view.php
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

You have to add this to your controller just before the first method
$this->load->model('site_model'); 

Open in new window

This tells CI to use your model to perform actions.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.