<html> <body> {VAR1} {VAR2} </body> </html> <?php // Library objects $page = KYWeb::page(); $page->assign("VAR1", "Hello"); $page->assign("VAR2", "World"); // or $page->assign(array("VAR1" => "Hello", "VAR2" => "World"));
/** * Process PHP * * @access private */ private function process_php() { if (file_exists($this->_common_php_path) || file_exists($this->_page_php_path)) { KYWeb::page()->html($this->_result_html); if (file_exists($this->_common_php_path)) { require_once $this->_common_php_path; } if (file_exists($this->_page_php_path)) { require_once $this->_page_php_path; } $this->_result_html = KYWeb::page()->process()->result(); } return $this; }