function cntPopup() { $popup = new Popup(); $popup->counter('1'); $data = $popup->get_by_id('1'); echo $data->counter; }
} $this->output(); } /** * Output the template file */ protected function output() { $this->Template->theme = $this->getTheme(); $this->Template->base = $this->Environment->base; $this->Template->language = $GLOBALS['TL_LANGUAGE']; $this->Template->title = $GLOBALS['TL_CONFIG']['websiteTitle']; $this->Template->charset = $GLOBALS['TL_CONFIG']['characterSet']; $this->Template->href = ampersand($this->Environment->request, true) . '&download=1'; $this->Template->headline = basename(utf8_convert_encoding($this->strFile, $GLOBALS['TL_CONFIG']['characterSet'])); $this->Template->label_imagesize = $GLOBALS['TL_LANG']['MSC']['fileImageSize']; $this->Template->label_filesize = $GLOBALS['TL_LANG']['MSC']['fileSize']; $this->Template->label_ctime = $GLOBALS['TL_LANG']['MSC']['fileCreated']; $this->Template->label_mtime = $GLOBALS['TL_LANG']['MSC']['fileModified']; $this->Template->label_atime = $GLOBALS['TL_LANG']['MSC']['fileAccessed']; $this->Template->label_atime = $GLOBALS['TL_LANG']['MSC']['fileAccessed']; $this->Template->label_path = $GLOBALS['TL_LANG']['MSC']['filePath']; $this->Template->download = $GLOBALS['TL_LANG']['MSC']['fileDownload']; $this->Template->output(); } } /** * Instantiate controller */ $objPopup = new Popup(); $objPopup->run();
function sendorder() { $model = new Popup(); $model->sendOrder(); View::$layout = 'popup'; View::render('popup/close', array('href' => '/popup/callback/')); }