我得到未来的日期而不是下面的 2013 年是代码
protected function _initView()
{
$view = new Zend_View();
$view->doctype('XHTML1_STRICT');
$view->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
$view->headTitle()->setSeparator(' - ');
//$view->headTitle('IMR - BI System');
$view->env = APPLICATION_ENV;
//$view->baseUrl = Zend_Registry::get('config')->root_path;
$view->addHelperPath("ZendX/JQuery/View/Helper", "ZendX_JQuery_View_Helper");
// $view->jQuery()->addStylesheet($view->baseUrl . '/js/themes/base/demos.css');
$view->jQuery()->addStylesheet($view->baseUrl . '/js/themes/base/jquery.ui.all.css');
$view->jQuery()->addStylesheet($view->baseUrl . '/js/css/jquery.ui.theme.css');
$view->jQuery()->setLocalPath($view->baseUrl . '/js/jquery.min.js');
$view->jQuery()->setUiLocalPath($view->baseUrl .'/js/jquery-ui.min.js');
$view->jQuery()->enable();
$view->jQuery()->uiEnable();
$viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
$viewRenderer->setView($view);
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
return $view;
}
在我给出的视图中
Pick your Date: <?php echo $this->datePicker("dp1", '', array('defaultDate' => date('Y/m/d', time()))); ?>