|
|||
|
Hi,
I just started using ZF. Untill now, I got everything working, added smarty as my template engine etc. I got only 1 problem. When I go to /index/ it loads index/index.phtml Now I want to use index/index.tpl, so I can use it with smarty, parse values etc. How do I do this? Because the view automaticly displays the template file it's very hard to find it. From the quickstart demo: /** Load application configuration ini file */ require_once 'Zend/Config/Ini.php'; $config = new Zend_Config_Ini('quickstart.ini', 'default'); /** Setup database */ require_once 'Zend/Db.php'; require_once 'Zend/Db/Table/Abstract.php'; $db = Zend_Db::factory($config->database); Zend_Db_Table_Abstract::setDefaultAdapter($db); /** Setup layout */ require_once 'Zend/Layout.php'; Zend_Layout::startMvc($config->appearance); What does the factory do ? And what does Zend_Layout do? |
![]() |
| Thread Tools | |
| Display Modes | |
|
|