Monthly archives |
[eluser]Martin Snajdr[/eluser]
Hello, Is there any solution how to make monthly archives with Codeigniter? I can't find any post about it... Thanks
[eluser]exodus7[/eluser]
I think you might want to be a bit more descriptive with your question. What exactly do you mean by monthly archives?
[eluser]Pascal Kriete[/eluser]
If by monthly archives, you mean the kind of thing most blogs have, then it's just how you treat your database entries. You add a timestamp to each entry, and if it is older than a month it doesn't show up on your main page. To get the archive contents you just run a query to get all the entries with a timestamp in the requested month. On the other hand, if you mean something more like a monthly backup, you could try implementing the database backup function of the utilities class.
[eluser]Martin Snajdr[/eluser]
I mean the most blog feature - automatic generated monthly archives. I think I can do filtering by month but I've no idea how to make generator of monthly links. |
Welcome Guest, Not a member yet? Register Sign In |