Need to integrate navigation |
[eluser]mlage[/eluser]
The keywords of your statement that hurt my eyes to read... "we need to repeat this navigation code in each page" Programming is beautiful in that one of its purposes is to prevent repeating code. So to answer your question, yes you can keep it as a general function. There are many ways on doing this... I would look into writing a short library that has one class with the functions you want... then you load that library for whatever controller needs it and call the appropriate functions. Check out this: http://ellislab.com/codeigniter/user-gui...aries.html Any other questions, just post back here |
Messages In This Thread |
Need to integrate navigation - by El Forum - 08-02-2010, 02:45 PM
Need to integrate navigation - by El Forum - 08-02-2010, 03:15 PM
Need to integrate navigation - by El Forum - 08-03-2010, 05:03 AM
Need to integrate navigation - by El Forum - 08-11-2010, 11:41 PM
Need to integrate navigation - by El Forum - 08-12-2010, 02:05 AM
|