Welcome Guest, Not a member yet? Register   Sign In
How to access a controller
#1

[eluser]IvanBlue[/eluser]
Hello, I'm new to CodeIgniter and I don't know how to open a view file so it lists with a controller method. I'd created the method showcase_list() but it doesn't show anything on the view. Thanks.

Code:
function showcase_list()
{
   $query = $this->db->get('shop');
        
   // Load view
   $this->load->view('tiendas', $query);
}
#2

[eluser]WanWizard[/eluser]
You have created this method where?
#3

[eluser]IvanBlue[/eluser]
In the controller file.




Theme © iAndrew 2016 - Forum software by © MyBB