javascript - fullCalendar cannot redeclare -


So I have just started using fullCalendar on a php script. I have copied this line from the demo:

  requires dirname (__ FILE__). '\ UtilsController.php';  

But when I try to use it, I get:

fatal error : in strtotime () / P> can not redeclare

and if I comment on it, I get another redistribution problem. Do I have to change my name in my controller? Or is there another alternative solution? Redeclare means that it has already been defined, does it depend on my PHP version?

I have: PHP version 5.4.19

It seems that strtotime ( ) The function is included several times. If you are loading utilsController.php 'many times, use the require_once in that condition, otherwise checking another file is the same function strontotype () and you are including it on your current script. Make sure the strtotime () function is included once.


Comments