Website Architect Arrangement - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Website Architect Arrangement (/showthread.php?tid=46488) |
Website Architect Arrangement - El Forum - 11-02-2011 [eluser]Unknown[/eluser] Hi All, I had a simple question about the coding pattern. controller/index.php controller/register.php views/header.php views/index.php views/register.php views/footer.php Normal case controller/index.php Code: $this->load->view('index'); views/index.php Code: <?php require_once "header.php" ?> but my views/header.php including a login/password fields and validate at controller/index.php Code: public function chkmember() that is the problem, if we visit the register.php page, it also include the views/header.php and views/footer.php, but the controller/register.php did't code the chkmember function, did i need to change the code to public function to elimitate the problem? thank you for your help. Thanks. |