Zend框架中的日历 [英] Calendar in Zend Framework

查看:82
本文介绍了Zend框架中的日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望使用Zend Framework创建一个自定义的日历,我希望它能够列出未来几年中每月的所有日期,并且如果发生以下事件,则可以在日期上使用不同的bg颜色这.但是,我首先要创建它是很困难的,因为它需要进入布局视图,而不是操作,所以逻辑在哪里呢?对于mkdate()的逻辑如何工作,我也不清楚.

I looking to create a custom calender with Zend Framework, I am hoping that it will be able to list all the days of the month for the coming years and then have a different bg color on the date if there is an event on this. I am however struggling to create this firstly because it needs to go into the layout view, rather than an action, so where does the logic go? I am also unclear as to how the logic with mkdate() would work.

有人可以指出我正确的方向吗?

Can someone point me in the right direct please?

谢谢

推荐答案

这里是一个简单的Calendar类,它使用Zend_Date和Zend_Locale作为起点:

Here is a simple Calendar class that uses Zend_Date and Zend_Locale that you can use as a starting point:

查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆