-
Notifications
You must be signed in to change notification settings - Fork 0
Home
C.H edited this page May 14, 2018
·
6 revisions
- skin
- layout
- css
- js
- _view : view Alias
class Welcome extends MY_Controller
{
public function index() {
$this->load
->css(['https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css'])
->js([
['src'=>'https://code.jquery.com/jquery-3.2.1.slim.min.js',
'integrity'=>'sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN',
'crossorigin'=>'anonymous'
],
'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js',
'src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" crossorigin="anonymous"'
])
->skin('_skin')
->layout->('_layout')
->css('common.css')
->js('common.js')
->_view('welcome_head')
->_view('welcome_message', [])
->_view('welcome_foot');
}
}
- MY_Controller::__construct() $this->load->driver('straight');
- MY_Controller::_output() echo $this->straight->layout->output( $output );
- Straight_layout::output()
- skin file css, js
- layout file css, js
- view To Assets push
- css add
- js <script> add
- output minify