Wprowadzenie do Zend Framework

     Nauka Zend Framework

    appendix

     Przewodnik po Zend Framework


  • Zend_Gdata
  • Zend_Http
  • Zend_InfoCard
  • Zend_Json
  • Zend_Layout
  • Zend_Ldap
  • Zend_Loader
  • Zend_Locale
  • Zend_Log
  • Zend_Mail
  • Zend_Markup
  • Zend_Measure
  • Zend_Memory
  • Zend_Mime
  • Zend_Navigation
  • Zend_Oauth
  • Zend_OpenId
  • Zend_Paginator
  • Zend_Pdf
  • Zend_ProgressBar
  • Zend_Queue
  • Zend_Reflection
  • Zend_Registry
  • Zend_Rest

  • Zend_Search_Lucene
  • Zend_Serializer
  • Zend_Server
  • Zend_Service
  • Zend_Session
  • Zend_Soap
  • Zend_Tag
  • Zend_Test
  • Zend_Text
  • Zend_TimeSync
  • Zend_Tool
  • Zend_Tool_Framework
  • Zend_Tool_Project
  • Zend_Translate
  • Zend_Uri
  • Zend_Validate
  • Zend_Version
  • Zend_View
  • Zend_Wildfire
  • Zend_XmlRpc
  • ZendX_Console_Process_Unix
  • ZendX_JQuery
  • Translation 21.3% Update 2011-11-16 - Revision 24356 - Version ZF 1.11.x

    Rozdział 5. Rozpoczęcie nauki Zend_View Placeholders

    5.1. Introduction

    In the previous chapter, we looked at primarily the Two Step View pattern, which allows you to embed individual application views within a sitewide layout. At the end of that chapter, however, we discussed some limitations:

    • How do you alter the page title?

    • How would you inject conditional scripts or stylesheets into the sitewide layout?

    • How would you create and render an optional sidebar? What if there was some content that was unconditional, and other content that was conditional for the sidebar?

    These questions are addressed in the Composite View design pattern. One approach to that pattern is to provide "hints" or content to the sitewide layout. In Zend Framework, this is achieved through specialized view helpers called "placeholders." Placeholders allow you to aggregate content, and then render that aggregate content elsewhere.

    digg delicious meneame google twitter technorati facebook

    Comments

    Loading...