PHP File Manager
Editing File: Places.php
<?php class Places extends CI_Controller { function __construct() { parent::__construct(); $this->load->model('locations'); } function index() { if ($this->input->post()) { $this->locations->save($this->input->post()); redirect(array('locations')); } $locations = $this->locations->get(); $this->load->view('header', array('page_title' => 'Match locations')); $this->load->view('locations/edit', array('locations' => $locations)); $this->load->view('footer'); } }
Cancel