Skip to content

Instantly share code, notes, and snippets.

@no-tactic
Created October 31, 2012 12:26
Show Gist options
  • Save no-tactic/3986777 to your computer and use it in GitHub Desktop.
Save no-tactic/3986777 to your computer and use it in GitHub Desktop.
function index()
{
$this->load->model('post_model');
$this->arr['title'] = 'Admin panel';
$this->arr['content'] = $this->load->file('application/views/post.php', true);
$this->arr['url'] = base_url();
$this->arr['sites'] = $this->post_model->get_sites();
echo "<pre>";
print_r($this->arr['sites']); // проверка значения полученного из модели
echo "</pre>";
$this->load_views();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment