Welcome Guest, Not a member yet? Register   Sign In
xml based navigation structure within CI
#2

[eluser]xwero[/eluser]
the xml file can be seen as data so you could put it in a model but i would make a plugin out of it based on the modification time of the xml file with following steps

- does the cache file exist -> no -> create cache file
- is the modification time equal to the time stored in the file name of the cache file -> no -> create file
- output cache file

To create the cache file you could use a CI view file or a template engine.

I would do it this way to prevent going through all the steps to create the navigation each time a page loads.


Messages In This Thread
xml based navigation structure within CI - by El Forum - 03-09-2009, 02:21 AM
xml based navigation structure within CI - by El Forum - 03-09-2009, 02:44 AM
xml based navigation structure within CI - by El Forum - 03-09-2009, 07:00 AM
xml based navigation structure within CI - by El Forum - 03-09-2009, 07:05 AM
xml based navigation structure within CI - by El Forum - 03-09-2009, 07:43 AM
xml based navigation structure within CI - by El Forum - 03-09-2009, 09:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB