Welcome Guest, Not a member yet? Register   Sign In
[Free Css Templates] combination of menu and the sidebar does not work
#1

[eluser]d1d1[/eluser]
Night All
Ples Help me, i newbe this Code Igniter

i'm try Combination Free Css Templates n Code Igniter
but this MENU and Sidebar does not work, because i don't understand script for this menu and Sidebar.!

i Have THis File from
- root Dir = foler CSS and Images
- Aplication/controller/news.php
Code:
<?php
class News extends CI_Controller {

public function __Construct()
{
  parent::__construct();
  $this->load->model('news_model');
}

public function index()
{
  $data['news'] = $this->news_model->get_news();
  $data['title'] = 'Web Go Blog';
  
  $this->load->view('templates/header',$data);
  $this->load->view('news/index',$data);
  $this->load->view('templates/sidebar');
  $this->load->view('templates/footer');
}

public function view($slug)
{
$data['news_item'] = $this->news_model->get_news($slug);

if (empty($data['news_item']))
{
  show_404();
}

$data['title'] = $data['news_item']['title'];

$this->load->view('templates/header', $data);
$this->load->view('news/view', $data);
$this->load->view('templates/footer');
}

public function create()
{
$this->load->helper('form');
$this->load->library('form_validation');

$data['title'] = 'Create a news item';

$this->form_validation->set_rules('title', 'Title', 'required');
$this->form_validation->set_rules('text', 'text', 'required');

if ($this->form_validation->run() === FALSE)
{
  $this->load->view('templates/header', $data);
  $this->load->view('news/create');
  $this->load->view('templates/footer');
  
}
else
{
  $this->news_model->set_news();
  $this->load->view('news/success');
}
}

}


Messages In This Thread
[Free Css Templates] combination of menu and the sidebar does not work - by El Forum - 04-26-2012, 11:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB