Sunday, 25 June 2017

49.details from php to jquery(controller to tpl)

//controller
    $common_settings_table =  Engine_Api::_()->getDbtable('commonsettings', 'user'); //commonsettings-class name
$common_settings = $common_settings_table->fetchRow($common_settings_table->select()->where('type =?', 'tip_duration'));
$showtime=date("H:i:s", strtotime($dismiss_time."+".$common_settings->value."hour"));
//echo time("H:i:s");exit("1212");
$this->view->tip_dismiss_time=$common_settings->value;
//tpl
    var tip_dismiss_time='<?php echo $this->tip_dismiss_time; ?>';

No comments:

Post a Comment