I have a couple of scheduler page with different purposes, and all the data are referring from a function called ‘cal’ inside a controller named ‘main’
in scheduler1.php (view), I have this code:
scheduler.load("cal/<?php echo $selRoom; ?>");
var dp = new dataProcessor("cal/<?php echo $selRoom; ?>");
in scheduler2.php (view), I have this code because when I only write ‘cal’ like schedule1, it won’t appear:
scheduler.load("<?php echo base_url();?>/index.php/main/cal/<?php echo $selRoom; ?>");
var dp = new dataProcessor("<?php echo base_url();?>/index.php/main/cal/<?php echo $selRoom; ?>");
in scheduler3.php(view), I’ve tried both ways like above, but none of that works.
Why is that?