Error The requested URL was not found on this server

Asked

Viewed 1,384 times

0

Hello, currently I am beginner in codeiginiter and need to deliver a project CRUD in college, so far I made connection with the bank, listed everything. But when I click on add new error occurs, I believe it is configuration error.. So when I click on New Registration, which is in add.php, the error occurs, I don’t even know what else to do... Follows:

ERROR THIS ONE: http://prntscr.com/kz21eg

config.php http://prntscr.com/kys0jm

controllers/State.php

load->model('stage_m', ’m'); } Function index(){ // "states" refers to the storage of anything that comes from "state" $data['states'] = $this->m->getEstado(); $this->load->view('layout/header'); $this->load->view('state/index', $data); $this->load->view('layout/footer'); } // Now I will create Function add new record public Function add(){ $this->load->view('layout/header'); $this->load->view('state/add'); $this->load->view('layout/footer'); } } models/State_m.php db->get('estado'); if($query->num_rows() > 0){ return $query->result(); }else{ return false; } } } views/status/add.php

Adicionar Estado

" class="btn btn-success">Página Principal
views/status/index.php " class="btn btn-Success">Register New Code Name Acronym Servant Options
            <tr>
                <td><?php echo $estado->idestado; ?></td>
                <td><?php echo $estado->nome; ?></td>
                <td><?php echo $estado->sigla; ?></td>
                <td><?php echo $estado->criado; ?></td>
                <td>
                    <a href="" class="btn btn-primary">Alterar</a>
                    <a href="" class="btn btn-danger">Excluir</a>
                </td>
            </tr>

            <?php 
                    }
                }    
            ?>

        </tbody>

    </table>
</code>
  • What error you are presenting?

  • Our guy, I forgot the main... Error is here: http://prntscr.com/kz21eg. (whenever I click add new)

1 answer

0


I solved the problem, it was a mistake with mod_rewrite.

Thank you for your attention!

Browser other questions tagged

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