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

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

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

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