Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | require_once("../../require.php"); |
---|
4 | |
---|
5 | $objView = new SC_View(); |
---|
6 | $arrAssignVars = array( |
---|
7 | 'test1' => '<script>alert("hello")</script>', |
---|
8 | 'test2' => 'test2<br>', |
---|
9 | 'arr' => array('1','2','3') |
---|
10 | ); |
---|
11 | |
---|
12 | //$objView->_smarty->template_dir = '/home/web/dev.ec-cube.net/html/test/adachi/templates/'; |
---|
13 | //$objView->_smarty->compile_dir = '/home/web/dev.ec-cube.net/html/test/adachi/templates_c/'; |
---|
14 | |
---|
15 | $objView->_smarty->template_dir = 'C:\Eclipse322\workspace\dev.ec-cube.net\html\test\adachi\templates'; |
---|
16 | $objView->_smarty->compile_dir = 'C:\Eclipse322\workspace\dev.ec-cube.net\html\test\adachi\template_c'; |
---|
17 | $objView->assignArray($arrAssignVars); |
---|
18 | $objView->display('C:\Eclipse322\workspace\dev.ec-cube.net\html\test\adachi\\templates/test3.tpl'); |
---|
Note: See
TracBrowser
for help on using the repository browser.