calendar specific date |
[eluser]Mutsop[/eluser]
Hi, I recently came across the following wiki page: [specific date] Now how is it possible to use this dynamicly? As in my controller i use this: Code: $list = $this->news_model->get_list()->result(); and for each list as item I could use Code: $item->date But I don't get how to bring these 2 codes together... Any ideas? Or maybe other work arounds?
[eluser]Cristian Gilè[/eluser]
Code: $list = $this->news_model->get_list()->result(); Change $item->date and $item->news_text according to your db fields. Cristian Gilè
[eluser]Mutsop[/eluser]
Well I didn't store the date as int, but I can reformat it and convert to int, no? ![]() Thanks thought this is amazing!
[eluser]Cristian Gilè[/eluser]
Yes, you can. I generally prefer to store date as INT because is much easier to work with but this is only my opinion. There is an open thread about the best way to store the date and time: http://ellislab.com/forums/viewthread/177759/ Cristian Gilè
[eluser]Mutsop[/eluser]
Well it works like a charm... I do have one last question In each filled in date, there is a dot that is added to the text check: http://www.scripttesting.com/evastienen/..._nationale For some reason I can't seem to find where to remove the dot.
[eluser]Cristian Gilè[/eluser]
Check the calendar template (if any) for some random dot. Cristian Gilè
|
Welcome Guest, Not a member yet? Register Sign In |