Unable to load requested file: products / list_table.php

Asked

Viewed 91 times

0

I’m trying to show off in a view data coming from the database, when I tried to run appeared the following message:

Um erro encontrado    
Não foi possível carregar o arquivo solicitado: produtos / lista_tabela.php

products = name of my folder list_table = name of my view

and in the controller :

$this->load->view("produtos/lista_tabela", $dados); 

What could be causing this problem?

1 answer

1


Hello, one of the possible reasons would be that you have typed the wrong file, check again if all the names are right.

Another reason, is that as far as I know, codeigniter only looks for views files with the subject .php, then if its lista_tabela, be as .html, change to .php and see if it works.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.