Im trying to convert the a day to a link if there are any content so the format will be.
site/calendar/2012/1/2
so i will be able to retrieve the information that is relevant.
in my model in have the template and the other options,
and
can someone please tell me how can i get the dates as year/month/day to the so i can retrieve the values.
<div class="content"><a href="year/month/{day}">View</a></div>
You're setting the month and year in your
view
method, so you could just pass those to the view through the$data
array:then, in your model you can set it like this: