Tag Archives: ThinkPhp5

Error reported by thinkphp5 and wdatepicker calendar control

Error reported by thinkphp5 and wdatepicker calendar control

The solution is as follows

{literal}
	<input type="text" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'logmax\')||\'%y-%M-%d\'}'})" id="logmin" class="input-text Wdate" style="width:120px;">
	<input type="text" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'logmin\')}',maxDate:'%y-%M-%d'})" id="logmax" class="input-text Wdate" style="width:120px;">
{/literal}

ThinkPHP uses literal to prevent template tags from being parsed