Have problems with displaying data from database |
You're totally on the wrong track.
Did you start with reading (and understanding) the CI documentation and tutorial? Your exhibitions.php goes into the application\views folder. Don't load data and views in the construct of the controller. The construct is just a function that runs every time there is a request to open one of the other functions in the controller. In a controller that always needs a specific model or helper, you can load that in the construct. Controller functions are called by the url in the browser. E.g. www.mywebsite/products/overview/2019 products is the controller name (Products.php) overview is the function name inside Products.php 2019 is an argument for the function, for instance if the function has this name: PHP Code: public function overview($year) |
Messages In This Thread |
Have problems with displaying data from database - by firas - 01-27-2019, 10:01 PM
RE: Have problems with displaying data from database - by php_rocs - 01-28-2019, 09:39 AM
RE: Have problems with displaying data from database - by firas - 01-28-2019, 08:00 PM
RE: Have problems with displaying data from database - by Wouter60 - 01-28-2019, 11:25 AM
RE: Have problems with displaying data from database - by firas - 01-28-2019, 07:58 PM
RE: Have problems with displaying data from database - by php_rocs - 01-29-2019, 09:27 AM
RE: Have problems with displaying data from database - by Wouter60 - 01-29-2019, 09:31 AM
RE: Have problems with displaying data from database - by firas - 01-30-2019, 01:51 AM
RE: Have problems with displaying data from database - by InsiteFX - 01-30-2019, 05:02 AM
|