Guest User

Main Controoler

a guest
Oct 2nd, 2012
45
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2.  
  3.     class Main_Controller extends CI_Controller{
  4.  
  5.         public function __construct() {
  6.  
  7.             parent::__construct();
  8.             $this->load->helper('text');
  9.             $this->load->model('main_model');
  10.         }
  11.  
  12.         public function index(){
  13.  
  14.             $principal = array(
  15.                 'titulo'         => 'BySat',
  16.                 'css'            => '<link type="text/css" rel="stylesheet" href="'.assets_url().'css/home.css" />
  17.                                     <link type="text/css" rel="stylesheet" href="'.assets_url().'css/boxy.css" />  ',
  18.                 'noticias'       => $this->main_model->listar_noticias(),
  19.                 'todas_noticias' => $this->main_model->listar_todas_noticias(),
  20.                 'banners'        => $this->main_model->listar_banners(),
  21.                 'videos'         => $this->main_model->listarVideosYouTube(),
  22.                 'i18n'    => $this->lang->mci_current(),
  23.                 'content' => 'mci_certificate',
  24.                 'uri'     => 'example/test'
  25.             );
  26.  
  27.             $this->load->view('comuns/header', $principal);
  28.             $this->load->view('principal', $principal);
  29.             $this->load->view('comuns/footer', $principal);
  30.         }
  31.  
  32.  
  33.     }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×