protected function defaultParamValues()
{
return array(
"dateRange"=>array('201707')
);
}
I put a breakpoint on defaultParamValues() but that never seems to get called.
I have DateTimePicker
<form method="post">
<?php \koolreport\inputs\DateTimePicker::create(array("name" => "dateRange","format"=>"YYYYMM","useCurrent" =>false)); ?>
<button type="submit">Submit</button>
</form>
After the user presses Submit, I would like to be able to set the default date to whatever the user has set it to. I can get it via _POST fine. But I don't know where (how?) to set it. The date always defaults to current date. Please help!