forked from bcit-ci/CodeIgniter
-
Notifications
You must be signed in to change notification settings - Fork 0
Header and Footer and Menu on every page BrianDHall
Derek Jones edited this page Jul 5, 2012
·
4 revisions
Category:Approaches::Header and Footer and Menu on every page
Overview:
- ... yet to be updated ... *
Approach (brief):
Declare public variable $data in the constructor, then pass $this->data to views.
When adding information to views you just always add them to $this->data - great for one-controller applications or for data only needed in one controller,
Approach (in detail):
- ... yet to be updated ... *
- Original author: Derek Jones
- How to extend helpers: See User Guide
- Modified by: Thomas Stapleton (id, classes, selected country option and all option)
- Modified by: Bradley De-Lar (construct, setLayout example)