Welcome Guest, Not a member yet? Register   Sign In
How is good way to use hooks
#4

[eluser]Zeeshan Rasool[/eluser]
[quote author="WebMada" date="1272309209"]I admit that this is another way but it's too heavy: always calling header and footer in each call of a page
Generally, don't we use:
<?php
$this->load->view("vwHeader");
?>
..........
<?php
$this->load->view("vwFooter");
?>[/quote]
Agreed ! actually its simple way to do that. If the header and footer are not static and vary from page to page then we can call them in controller as partial or using parser.


Messages In This Thread
How is good way to use hooks - by El Forum - 04-26-2010, 05:43 AM
How is good way to use hooks - by El Forum - 04-26-2010, 08:03 AM
How is good way to use hooks - by El Forum - 04-26-2010, 08:13 AM
How is good way to use hooks - by El Forum - 04-26-2010, 08:39 AM
How is good way to use hooks - by El Forum - 04-26-2010, 08:58 AM
How is good way to use hooks - by El Forum - 04-26-2010, 09:18 AM
How is good way to use hooks - by El Forum - 04-26-2010, 11:58 PM
How is good way to use hooks - by El Forum - 04-27-2010, 12:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB