Facebook Twitter

2 Agu 2012

Pemograman WEB 3D pada CI

Routing & Segment


application\config\routes.php
$route['default_controller'] = "israq";
Seperti gambar dibawah




Controller
class News extends CI_Controller {
                public function index()
                {
                   $data['n'] = $this ->Modelnews->getAllNews();
                                $this->load->view('news/news_header');
        $this->load->view('news/news_content',$data);
        $this->load->view('news/news_footer');
                }
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */


Loading Multiple View





class News extends CI_Controller {
                public function index()
                {
                   $data['n'] = $this ->Modelnews->getAllNews();
       $this->load->view('news/news_header');
        $this->load->view('news/news_content',$data);
        $this->load->view('news/news_footer');
                }
}
/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */

Passing Data





Tables News


FINAL











Cari Blog Ini

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Hot Sonakshi Sinha, Car Price in India