php - How to make three column template in codeigniter? -
newbie ci.and want implement ci in 3 column template manner.but not sure how can implement it.the right column static 1 once user logged site.it contains profile pic,accountinfo , other stuffs. in middle , left columns going change depend upon user operation link on right side.
-------------------------------------------- header left | middle | right pic | | account| | footer ----------------------------------------------
for example if user clicks left side link account need display account information in middle panel.so middle panel changes in content?how can achieve this?
just display views depending on method requested..
<?php class profile extends controller { function __construct() { parent::__construct(); } function index() { $this->load->view('profile/home'); } function messages() { $this->load->view('profile/messages'); } function pictures() { $this->load->view('profile/pictures'); } }
and on.
however sounds want keep parts of site same, may worth looking in template library allow have 1 layout, able write specific regions - making app easier maintain etc.
see:
http://codeigniter.com/forums/viewthread/95687/p40/
http://philsturgeon.co.uk/code/codeigniter-template
to summarise - code required within controller/model present correct view user, based on requested method.
Comments
Post a Comment