Created
August 16, 2016 00:54
-
-
Save jlamim/1ed49c3f7c54a6a685dd6aa96f89d639 to your computer and use it in GitHub Desktop.
Aplicações multi-idioma no CodeIgniter - Welcome.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Welcome extends CI_Controller { | |
public function __construct() { | |
parent::__construct(); | |
//carrega o helper URL para que seja possível utilizar o método 'base_url()' | |
//na view | |
$this->load->helper('url'); | |
} | |
public function index() | |
{ | |
$this->load->view('welcome_message'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment