I set a start date and end date to show a content.
$sdate = 2015-07-20 0:0
$edate = 2015-07-30 0:0
Now in php how to set this?
php
static $module = 0;
if($module < 1) {
$this->data['module'] = $module++;
}
tpl
<?php echo $module; ?>
output is 0
. Now i want if i set start date
and end date
and when output 0
ended then auto define next module number 1