CodeIgniter Forums

Full Version: How to access a controller
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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);
}

El Forum

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

El Forum

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