CodeIgniter Forums
Getting $year & $month from CI Calendar - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Getting $year & $month from CI Calendar (/thread-49694.html)



Getting $year & $month from CI Calendar - El Forum - 02-29-2012

[eluser]SidharthaXx[/eluser]
Hi All,

I'm new to CI... just playing around with the calendar library.

It seems that the calendar passes it's year & month to the index() function of the controller (I assume via it's URL changing). However, is there any other way to access the year & month outside of the index() function.

I'm a little confused. Could someone clear this up for me.

So far I am thinking the only way of getting this info while in the view or model is to actually parse the URL... is that correct?

Many Thanks