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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-06-2007, 10:44 AM
Junior Member
 
Join Date: Dec 2007
Posts: 15
Default quick question about views

hey,

either I have misunderstood the idea of Zend_View or render, or something is working wrong here.

Let's assume:
http://localhost/module/main

shoould invoke method mainAction() in ModuleController.php, right? right.
then inside it i'm writing:

function mainAction() {
$view = new Zend_View();
echo $view->render("s.phtml");
}

My expected result is then to get s.phtml rendered only.
Instead, in the output I can see main.phtml + s.phtml.
Why?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-08-2007, 06:31 PM
Junior Member
 
Join Date: Dec 2007
Posts: 3
Default

You have to turn off the viewRenderer, put this in your bootstrap file.

PHP Code:
// Turn off the view renderer.
$frontController->setParam('noViewRenderer'true); 
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 01:18 PM.