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

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Getting $year & $month from CI Calendar (/showthread.php?tid=49694)



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