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
1 answer

How to check for invalid route in layout view

I have this piece of code written in Application/view/layout/layout.phtml for adding a link which will be pointing to current page. This I added for debugging purpose for refreshing the current page.
  • dejjub-AIS
    • 1,501
    • 2
    • 24
    • 50
  • 0
    votes
    1 answer

    using ZEND_Layout, having different Layouts

    I asked a similar question again, but I don´t get it. I wanted to try using different layouts at first just for understanding ZEND_Layout. I have two layout files in my layout path: application\layouts\scripts layout.phtml login.phtml First I want…
    pia-sophie
    • 505
    • 4
    • 21
    0
    votes
    1 answer

    ZEND_Auth, deactivate navigation area

    I´ve built a Login Page using Zend_Auth. Now my question ist how can I deactivate areas which are loaded with my layout.phtml? Here the part of my code of my layout.phtml which I don´t want to see in my login and logout forms:
    pia-sophie
    • 505
    • 4
    • 21
    0
    votes
    3 answers

    Layout per module zf2

    I have 2 modules, and I need to use different layout for each one, but all modules always use layout of second loaded module. application.config.php : return array( // This should be an array of module namespaces used in the application. 'modules'…
    Vladomir
    • 11
    • 2
    0
    votes
    1 answer

    Zend 2 challenge :How to configure Zend Framework 2 to hold generic template outside a module?

    I am new to ZF 2 and just trying to render generic layout outside a module's view directory. At the moment ,i have a module "categories" and in "Categories\view\generic\" ,i have splitted all common layout elements (i.e header(contains menus etc)…
    0
    votes
    1 answer

    Zf2 changing layout

    I am trying to change the layout based on my routes, here what I have done until now:
    kitensei
    • 2,510
    • 2
    • 42
    • 68
    0
    votes
    1 answer

    ZF2 User group specific layouts

    I have a project with 3 different Layouts. 1 Layout for the Login page, 1 Layout for the administrators and editors and a 3rd Layout for general users where also the administrators have access to (its a layout for 3 different pages where you can…
    Velixir
    • 88
    • 7
    0
    votes
    1 answer

    Zend disableLayout() leaves html & body tags in output

    could anyone take a look at this for me? Problem: trying to output a csv on demand using Zend Framework. I want to avoid creating files on the system so I'm trying to use the same solution posted here: export csv in zend framework However - I'm…
    sunwukung
    • 2,815
    • 3
    • 41
    • 56
    0
    votes
    1 answer

    Using actionHelper without returning layout in output

    I call an action helper in one of my views using the following code echo $this->action('foo', 'bar'); The fooAction in the barController does its thing and outputs a list of pages. However, the list has the layout in the output again, which is…
    Philip Bennison
    • 519
    • 2
    • 10
    0
    votes
    1 answer

    ZF2 how to display tweets in layout

    I'm developing a site using ZF2. One of the section in footer contains tweets. I can fetch tweets but I am not sure how to display them in the layout. I have following ideas but not sure which approach to use Create a controller plugin and use it…
    M Hill
    • 225
    • 2
    • 6
    0
    votes
    1 answer

    Zend Framework 2 actions without layout by default

    I would like set all actions because when these return a ViewModel class, this has the parameter setTerminal = true by default. I want that my aplication have this behavior because the 90% of my calls are AJAX. Thanks in advance.
    josepmra
    • 617
    • 9
    • 25
    0
    votes
    1 answer

    Zend_Navigation vs Zend Layout

    Hi I am new to Zend Framework and using version 1.12 to start with. I am trying to build my first site and dont know which direction to take. I have an HTML template that I set as my Zend Layout and the navigation menu has link structured in a…
    0
    votes
    2 answers

    Zend_Layout display Login or Navigation

    iam not sure if iam doing it the right way. My Goal is to display in my Layout an Login or an Navigation at the header section. My implementation looks like this (without logic): 2 Layout scripts: login.phtml navigation.phtml An FrontController…
    opHASnoNAME
    • 20,224
    • 26
    • 98
    • 143
    0
    votes
    2 answers

    Zend Framework - multiple modules, one layout

    I have a Zend application with the following structure: application configs application.ini modules api controllers Bootstrap.php default controllers …
    Zorrocaesar
    • 748
    • 1
    • 7
    • 22
    0
    votes
    1 answer

    Zend_Layout configuration: when and how?

    I am building a Zend Framework MVC application and am having difficultly configuring my Zend_Layout. Firstly, my application resources are all in resource plugins which are loaded in bootstrap with the following code: protected function…
    DatsunBing
    • 8,684
    • 17
    • 87
    • 172