Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-14-2008, 05:13 PM
Junior Member
 
Join Date: Jun 2008
Posts: 8
Default output of the view

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:09 PM.