Questions tagged [zend-layout]

Zend_Layout: Part of the Zend Framework that combines the ideas behind Composite view and Two Step View

There are two design patterns that Zend Framework uses to implement layouts: » Two Step View and » Composite View. Two Step View is usually associated with the » Transform View pattern; the basic idea is that your application view creates a representation that is then injected into the master view for final transformation. The Composite View pattern deals with a view made of one or more atomic, application views.

In Zend Framework, Zend_Layout combines the ideas behind these patterns. Instead of each action view script needing to include site-wide artifacts, they can simply focus on their own responsibilities.

Source

82 questions
0
votes
2 answers

Zend default view script name switch

I want to display a mobile view instead of the normal view script. Let's take for example this action /my_module/my_controller/my_action. When I call it, based on some headers processing I know that user agent is a mobile device. Then I set the main…
0
votes
1 answer

Zend: Adding multiple js files to layout

Im trying to add multiple js files to layout. I want do this in helper. Here's code of my helper: // class Zend_View_Helper_LoadJs extends Zend_View_Helper_Abstract public function loadJs() { $dir = '../public/js'; $dir =…
user1409508
  • 623
  • 1
  • 12
  • 38
0
votes
1 answer

Load Zend Layout from a Database

I am building a cms on top of Zend, just to practice and for fun. I would like to be able to store the layout scripts and view scripts in the database, and retrieve them from there, so they are easily editable from within my CMS. Could someone point…
0
votes
2 answers

stylesheet view helper in zend framework

I wanted to append css stylesheet inside head tag but gets appended to body tag. Here's what i did: i have a controller 'countries' with action 'index' and my view is index.phtml index.phtml contains:
rockstar
  • 1,322
  • 1
  • 20
  • 37
0
votes
1 answer

Zend Layout Double Div

Hi i want to put two div in a zend view. After i want to have the two div in different position. My problem is that i want to have the normal content adn i want to add another div that rapresent the side menu For example my view is:
Simone
  • 85
  • 1
  • 9
-1
votes
2 answers

Performance effect using $this -> render(); while developing a layout?

A lot of time, it becomes necessary to separate some section commonly used like banner, footer to a separate file and later on include this parts as $this -> render('banner.phtml'). When this is used extensively, how costly does it become…
Starx
  • 77,474
  • 47
  • 185
  • 261
-1
votes
1 answer

Redirect to login if user inactive zend

I want to redirect to login page if user is inactive for 30 minutes. Where to write the code and how? I have layout.phtml. Is it the right place to check session expired and redirect?
1 2 3 4 5
6