Welcome Guest, Not a member yet? Register   Sign In
Codeigniter + twitter bootstrap + html5boilerplate + MY_Controller
#7

[eluser]vesparny[/eluser]
[quote author="dstrickler" date="1331673307"]I gabbed a copy of your latest code, and have begun to read through it. While I only understand a bit of it as this point, it looks to be a way via using MY_Controller to template a View so that as you create new Controllers you don't need to worry about the JS/CSS in the header of each file.

Am I understanding this right?[/quote]

exactly, and if you want to use another main template you just need to create a new file like main.php that include your new page structure, and in your controller set it via $this->template = "new_template", in this way your new template will be pushed to skeleton.php ann page rendered.
you can also push another javascript or css in your view $this->css = array("path/to/file/file.css").

take a look to skeleton.php and main.php


Messages In This Thread
Codeigniter + twitter bootstrap + html5boilerplate + MY_Controller - by El Forum - 03-13-2012, 05:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB