Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 未定义showCalendar_Php_Joomla_Calendar_Joomla3.0 - Fatal编程技术网

Php 未定义showCalendar

Php 未定义showCalendar,php,joomla,calendar,joomla3.0,Php,Joomla,Calendar,Joomla3.0,在joomla 1.5中,我使用以下内容来显示日历 <?php JHTML::_('behavior.calendar'); ?> <input type="reset" class="button" value="..." onclick="return showCalendar('startdate','%Y-%m-%d');" /> 如何在joomla 3.0中实现同样的功能?现在我得到了未捕获的引用错误:未定义showCalendar 谢谢这很有效 <

在joomla 1.5中,我使用以下内容来显示日历

<?php JHTML::_('behavior.calendar'); ?>

<input type="reset" class="button" value="..." onclick="return showCalendar('startdate','%Y-%m-%d');" />

如何在joomla 3.0中实现同样的功能?现在我得到了
未捕获的引用错误:未定义showCalendar

谢谢

这很有效

<?php echo JHTML::_('calendar', $startdate, "mydate" , "mydate", '%Y-%m-%d');?>


您需要定义showCalendar。。。。您可能需要在定义它的地方包含一个脚本。所有脚本都在那里,因为我调用
JHTML::(('behavior.calendar')检查页面的源代码,看看它是否真的在那里?已经完成,它们位于正确的位置!我认为在Joomla3.0中,它们改变了结构,但我找不到文档。