Welcome Guest, Not a member yet? Register   Sign In
class Page and Db
#2

[eluser]cPage[/eluser]
A exemple of one of my views. This view called ini.php to initialize all assets needed and configurations of the HTML header.
Code:
<?php
$this->page->add_meta(array('charset'=>'utf-8'));
$this->page->add_meta(array('name'=>'description','content'=>$this->page->description));
$this->page->add_meta(array('name'=>'author','content'=>'cPage'));
$this->page->set_assets_path('assets');
$this->page->add_link(array('rel'=>'shortcut icon','href'=>ASSETS.'images/favicon.ico'));
$this->page->add_link(array('rel'=>'apple-touch-icon','href'=>ASSETS.'images/apple-touch-icon.pn'));
$this->page->add_css('tinyfluid','screen');
$this->page->add_css('button','screen');
$this->page->add_js_head(ASSETS.'js/modernizr-2.5.3.min.js');
$this->page->add_js_head(ASSETS.'js/preload.js');
$this->page->add_js_body(ASSETS.'js/general.js');
$this->page->add_js_body(ASSETS.'js/jquery-1.7.1.min.js');
$this->page->set_google('analytic','UA-XXXXX-X');

I will continue to improve this library.(Page.php) and write in here the evolution. Is that all right to do that ?


Messages In This Thread
class Page and Db - by El Forum - 04-16-2012, 09:23 AM
class Page and Db - by El Forum - 05-06-2012, 10:09 PM
class Page and Db - by El Forum - 05-06-2012, 10:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB