Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Zend Framework 2 Cookbook

You're reading from   Zend Framework 2 Cookbook If you are pretty handy with PHP, this book is the perfect way to access and understand the features of Zend Framework 2. You can dip into the recipes as you wish and learn at your own pace.

Arrow left icon
Product type Paperback
Published in Dec 2013
Publisher Packt
ISBN-13 9781849694841
Length 340 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
joseph@callaa.rs joseph@callaa.rs
Author Profile Icon joseph@callaa.rs
joseph@callaa.rs
Josephus Callaars Josephus Callaars
Author Profile Icon Josephus Callaars
Josephus Callaars
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Zend Framework 2 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Zend Framework 2 Basics 2. Translating and Mail Handling FREE CHAPTER 3. Handling and Decorating Forms 4. Using View 5. Configuring and Using Databases 6. Modules, Models, and Services 7. Handling Authentication 8. Optimizing Performance 9. Catching Bugs Setting up the Essentials Index

Index

A

  • AbstractActionController / How it works…
  • AbstractHydrator class / Creating a Hydrator
  • abstract mapper class
    • creating / Creating an abstract mapper class
  • Action view helper
    • used, for getting re-usable content / Use the Action view helper to get the re-usable content
    • about / The Action view helper explained
    • pros / Pros and cons
    • cons / Pros and cons
  • annotated form
    • elements, adding / Adding elements to an annotated form
    • setting up / Setting up an annotated form
  • Apc adapter
    • about / Apc caching
    • interfaces / Apc caching
  • application
    • translating / Translating your application, Getting ready
    • essentials, setting up / Setting up and checking the essentials
    • essentials, checking / Setting up and checking the essentials
    • localizing / Localizing your application, So it begins, How it works…
    • date/time, localizing / Localizing date/times
  • application.config.php file
    • editing / Editing your application.config.php file
  • Application module
    • translation, setting up / Basic set up of translation in your module
  • Aspect-Oriented Programming (AOP)
    • about / Aspect-Oriented Programming (AOP) explained
  • authentication
    • about / About Authentication
  • authentication methods
    • DbTable adapter / The DbTable adapter, The DbTable adapter (again)
    • Http adapter / The Http adapter, The Http adapter (again)
    • Digest adapter / The Digest adapter
    • LDAP adapter / The LDAP adapter
  • AvailableSpaceCapableInterface / Storage adapter's implementations

B

  • BasePath view helper
    • about / The BasePath view helper, The BasePath view helper explained
  • basic form
    • creating / Creating a basic form
    • setting up / Setting up a basic form

C

  • cache
    • performing / Caching and when to Cache, How to do it…
    • configuration, caching / Caching configuration
    • output, caching / Caching output
    • class map, caching / Caching the class map
  • cache patterns
    • about / Cache patterns
    • CallbackCache / The CallbackCache pattern
    • CaptureCache / The CaptureCache pattern
    • ClassCache / The ClassCache pattern
    • ObjectCache / The ObjectCache pattern
    • OutputCache / The OutputCache pattern
    • PatternOptions / The PatternOptions pattern
  • caching
    • about / Caching and when to Cache
  • caching system
    • setting up / Setting up a caching system
    • application, benchmarking / Benchmarking our application before cache
    • configuration/class map cache, implementing / Implementing configuration/class map cache
    • class caching, implementing / Implementing the class caching
  • CallbackCache pattern
    • about / The CallbackCache pattern
  • Capabilities / Storage adapter's implementations
  • CaptureCache pattern
    • about / The CaptureCache pattern
  • catalogs
    • about / Translating strings with Poedit
  • ClassCache pattern
    • about / The ClassCache pattern
  • ClearByNamespaceInterface / Storage adapter's implementations
  • ClearExpiredByFactor plugin
    • about / Using the ClearExpiredByFactor plugin
    • using / Using the ClearExpiredByFactor plugin
  • ClearExpiredInterface / Storage adapter's implementations
  • client language
    • identifying / Identifying the client language
  • Composer, Zend Framework 2
    • about / Composer and its uses within Zend Framework 2
    • using / Composer and its uses within Zend Framework 2
    • composer.json file / The composer.json file
    • packages, upgrading / Upgrading packages
  • composer.json file / The composer.json file
  • config folder, Zend Framework 2
    • about / Folder – config
  • configuration
    • view helper, adding to / Adding view helper to the configuration
  • configurations
    • using / Using configurations to your benefit
    • global configuration, creating / Creating a global configuration
    • creating, for local machine / Creating configuration that only works for a local machine
    • application.config.php file, editing / Editing your application.config.php file
  • connector
    • creating / Creating a connector
  • context switching
    • using, for different output / Using context switching for a different output
    • multiple strategies, defining to output / Define multiple strategies to output
    • view model, determining on accept header / Determine the view model based on the Accept header, How it works…
  • controller
    • strings, translating / Translating strings in the controller
  • createStatement
    • using / Using createStatement
  • createStatement() function / Using prepared statements
  • currencies
    • localizing, within view / Localizing currencies, Localizing currencies and dates
  • custom authentication method
    • writing / Writing a custom Authentication method, How to do it…
    • adapter, creating / Creating our adapter
    • adapter outline / The adapter outline
    • getter, creating / Creating a getter and setter for any error messages
    • setter, creating / Creating a getter and setter for any error messages
    • secure connection, verifying / Making sure we have a secure connection
    • certificate, verifying / Checking if the certificate is an actual certificate
    • certificate fields, verifying / Checking if we have all the certificate fields
    • certificate expiry, checking / Checking if the certificate isn't expired yet
    • getter and setter, creating for Database adapter / Creating a getter and setter for the Database adapter
    • creating / Creating the authenticate method
    • certificates / About certificates
  • custom form element
    • creating / Creating a custom form element and form view helper
  • custom view strategy/renderer
    • writing / Writing a custom view strategy/renderer
    • XmlOutput renderer, writing / Creating the XmlOutput renderer

D

  • database
    • connecting to / Connecting to a database
    • MySQL database connecting to, configuration used / Connecting to a MySQL database through the configuration, Connecting to a MySQL database through the configuration
    • multiple database connecting to, configuration used / Connecting to multiple databases through the configuration, Connecting to multiple databases through the configuration
    • MySQL database connecting to, code used / Connecting to a MySQL database through code
    • ServiceManager / About the ServiceManager
  • Database Access Object (DAO)
    • creating / Creating a Database Access Object, Getting ready
    • new module, creating / Creating our new module and configuration
    • configuration, creating / Creating our new module and configuration
    • connector, creating / Creating a connector
    • mapper interface, creating / Creating a mapper interface
    • abstract mapper class, creating / Creating an abstract mapper class
    • Data Transfer Object (DTO), creating / Creating a Data Transfer Object
    • mapper class, creating / Creating a mapper class
    • about / About the DAO
  • database authentication
    • setting up / Setting up a simple database Authentication, How to do it…
    • module initialization, setting up / Setting up the module initialization
    • authentication service, creating / Creating the authentication service
    • controller, setting up / Setting up the controller and action
    • action, setting up / Setting up the controller and action
    • working / How it works…
  • Data Transfer Object (DTO)
    • creating / Creating a Data Transfer Object
  • date
    • localizing, within view / Localizing currencies and dates
  • date/time
    • localizing / Localizing date/times
  • dba adapter
    • interfaces / Dba caching
  • DB profiler
    • optimization with / Optimizating with a DB profiler
    • new profiler, setting up / Setting up a new profiler, How it works…
  • DbTable adapter
    • about / The DbTable adapter, The DbTable adapter (again)
  • default view strategies
    • about / The default view strategies
  • dependency injection
    • about / Understanding dependency injection, How to do it…
    • initializing, at call time / Initializing the DI at call-time
    • initializing / Initializing the DI at call-time
    • initializing, through Configuration object / Initializing the DI through a Configuration object
    • singleton pattern / The DI only gives out one instance of an object
    • properties, defining / Defining either all properties, or using a Fully Qualified (FQ) setter parameter
    • properties, defining with FQ setter parameter / Defining either all properties, or using a Fully Qualified (FQ) setter parameter
  • Dependency Injection (DI) / The configuration
  • Digest adapter
    • about / The Digest adapter
  • Doctype view helper
    • about / The Doctype view helper, The Doctype view helper explained

E

  • e-mail
    • sending / Sending mail, How it works…
    • sending, through sendmail / Transport\Sendmail
    • sending, through SMTP server / Transport\Smtp, Sending mail through SMTP
    • sending, into files / Transport\File, Sending mail through files
    • receiving / Receiving mail, How to do it…, How it works…
  • elements
    • adding, to Zend\Form extend form / Adding elements to a Zend\Form extend form
    • adding, to annotated form / Adding elements to an annotated form
    • adding, to form / Adding elements to the form
  • Event-driven architecture
    • about / Event-driven architecture explained
  • EventManager
    • about / The EventManager and Bootstrap classes
    • bootstrap, using / Using the bootstrap
    • session, starting / Starting a session
    • class / Using the EventManager class
    • View output, changing / Changing the View output
    • methods / How it works…
    • Observer pattern / The Observer pattern explained
    • Aspect-Oriented Programming (AOP) / Aspect-Oriented Programming (AOP) explained
    • Event-driven architecture / Event-driven architecture explained
  • ExceptionHandler plugin
    • about / Using the ExceptionHandler plugin
    • using / Using the ExceptionHandler plugin
  • Exception handling
    • about / Handling Exceptions – your partner in crime, How to do it...
    • classes / Exception classes in Zend Framework 2, Exception classes in Zend Framework 2
    • implementing, on dispatch or rendering / Handling Exceptions on dispatch or rendering, How it works..., Handling exceptions on dispatch or rendering
    • try-catch block / About try-catch

F

  • Feed strategy
    • about / The Feed strategy, The Feed strategy explained
  • file system adapter
    • about / File system caching
    • interfaces / File system caching
  • filters
    • about / Forms, filtering, and validation
  • FirePHP log() method / Implementing a FirePHP logger
  • FirePHP logger
    • implementing / Implementing a FirePHP logger, Implementing a FirePHP logger
    • working / How it works...
  • flags
    • about / Working with flags on IMAP or Maildir connections
  • FlushableInterface / Storage adapter's implementations
  • form
    • extending, from Zend\Form class / Defining a form that is extended from Zend\Form
    • Zend\Form\Annotation, using / Defining a form that uses the Zend\Form\Annotation
    • elements, adding to / Adding elements to the form
    • about / Forms, filtering, and validation
  • Form
    • about / Form
    • working / Form
  • FormButton
    • about / FormButton
    • working / FormButton
  • FormCaptcha
    • about / FormCaptcha
    • working / FormCaptcha
  • FormCheckbox
    • about / FormCheckbox
    • working / FormCheckbox
  • FormCollection
    • about / FormCollection
    • working / FormCollection
  • FormColor
    • about / FormColor
    • working / FormColor
  • FormDate
    • about / FormDate, FormDateTime, and FormDateTimeLocal
    • working / FormDate, FormDateTime, and FormDateTimeLocal
  • FormDateTime
    • about / FormDate, FormDateTime, and FormDateTimeLocal
    • working / FormDate, FormDateTime, and FormDateTimeLocal
  • FormDateTimeLocal
    • about / FormDate, FormDateTime, and FormDateTimeLocal
    • working / FormDate, FormDateTime, and FormDateTimeLocal
  • form element
    • displaying / Displaying the new element
    • creating / Creating the element
  • FormElementErrors
    • about / FormElementErrors
    • working / FormElementErrors
  • FormEmail
    • about / FormEmail
    • working / FormEmail
  • FormFile
    • about / FormFile
    • working / FormFile
  • FormHidden
    • about / FormHidden
    • working / FormHidden
  • FormImage
    • about / FormImage
    • working / FormImage
  • form input
    • validating / Validating form input
  • FormInput
    • about / FormInput
    • working / FormInput
  • FormLabel
    • about / FormLabel
    • working / FormLabel
  • forms
    • about / Introduction
    • creating / Creating forms, Getting ready…
  • form view helper
    • creating / Creating the new view helper
  • form view helpers
    • using / Using form view helpers
    • Form / Form
    • FormButton / FormButton
    • FormCaptcha / FormCaptcha
    • FormCheckbox / FormCheckbox
    • FormCollection / FormCollection
    • FormColor / FormColor
    • FormDate / FormDate, FormDateTime, and FormDateTimeLocal
    • FormDateTime / FormDate, FormDateTime, and FormDateTimeLocal
    • FormDateTimeLocal / FormDate, FormDateTime, and FormDateTimeLocal
    • FormEmail / FormEmail
    • FormFile / FormFile
    • FormHidden / FormHidden
    • FormImage / FormImage
    • FormInput / FormInput
    • FormLabel / FormLabel
    • FormElementErrors / FormElementErrors

G

  • get() method / How it works…
  • getAutoloaderConfig
    • implementing / Implementing the getAutoloaderConfig
  • getAutoloaderConfig method
    • about / The getAutoloaderConfig method
  • getControllerConfig
    • implementing / Implementing the getControllerConfig, getControllerPluginConfig and getViewHelperConfig
  • getControllerConfig method
    • about / The getControllerConfig, getControllerPluginConfig, and getViewHelperConfig methods
  • getControllerPluginConfig
    • implementing / Implementing the getControllerConfig, getControllerPluginConfig and getViewHelperConfig
  • getControllerPluginConfig method
    • about / The getControllerConfig, getControllerPluginConfig, and getViewHelperConfig methods
  • getData() method / Forms, filtering, and validation
  • getFlags() method / Working with flags on IMAP or Maildir connections
  • getServiceLocator / How it works…
  • Gettext
    • about / Gettext
  • getViewHelperConfig
    • implementing / Implementing the getControllerConfig, getControllerPluginConfig and getViewHelperConfig
  • getViewHelperConfig method
    • about / The getControllerConfig, getControllerPluginConfig, and getViewHelperConfig methods
  • global configuration
    • creating / Creating a global configuration
  • global layout template
    • creating / Creating a global layout template
    • main layout file, creating / Creating the main layout file
    • error templates, creating / Creating the error templates, How it works…

H

  • hasFlag() method / Working with flags on IMAP or Maildir connections
  • Http adapter
    • about / The Http adapter, The Http adapter (again)
  • hydrator
    • about / A Model and a Hydrator
    • creating / Creating a Hydrator, Creating a hydrator
  • hydrator strategy
    • creating / Creating a Hydrator strategy, Creating a hydrator strategy

I

  • IBM DB2 driver
    • about / IBM DB2 driver
  • IgnoreUserAbort plugin
    • about / Using the IgnoreUserAbort plugin
    • using / Using the IgnoreUserAbort plugin
  • IMAP mail server
    • connecting to / Connecting to an IMAP mail server
  • indexAction method / Implementing a really simple file logger
  • ini array
    • about / Ini
  • init_autoloader.php file, Zend Framework 2
    • about / File – init_autoloader.php
  • isValid() method / Forms, filtering, and validation
  • IterableInterface / Storage adapter's implementations

J

  • JSON strategy
    • about / The JSON strategy, The JSON strategy explained

L

  • LDAP adapter
    • about / The LDAP adapter
  • Linux
    • Zend Server Community Edition, installing / Installing Zend Server Community Edition on a Linux environment
  • loadModule event
    • about / The loadModule event
  • loadModules.post event
    • about / The loadModules.post
    • attaching to / Attaching to the loadModules.post event
  • loadModules.postevent
    • attaching to / Attaching to the loadModules.postevent
  • loadModules.resolve event
    • about / The loadModules.resolve event
  • loadModules event
    • about / Understanding the loadModules event
  • logger system
    • implementing / How to do it...
    • simple file logger, implementing / Implementing a really simple file logger, Implementing a really simple file logger
    • FirePHP logger, implementing / Implementing a FirePHP logger, Implementing a FirePHP logger
  • logging
    • about / Logging and how it makes your life easier
  • Log\Logger / About the Logger

M

  • .mo file / Getting ready, Gettext
  • machine object / Gettext
  • Maildir++ Quota system / Maildir++ Quota system
    • about / About the Maildir++ Quota system
  • Maildir connection
    • keeping alive / Keeping a connection alive
  • mapper class
    • creating / Creating a mapper class
  • mapper interface
    • creating / Creating a mapper interface
  • Memcached adapter
    • about / Memcached caching
    • interfaces / Memcached caching
  • Memory adapter
    • about / Memory caching
    • interfaces / Memory caching
  • model
    • about / A Model and a Hydrator, About models
    • setting up / How to do it…
    • accessing / Accessing the Model
    • purpose / Think about the model's purpose
    • location / Think about the model's location
    • methods / Think about the model's methods
    • testing / Unit test the model
    • class, documenting / Document your class
  • module
    • creating / Creating a new module, How to do it…
  • Module.php
    • creating / Creating the Module.php, Creating the Module.php
  • module directory
    • creating / Creating a new module directory
  • module folder, Zend Framework 2
    • about / Folder – module
  • ModuleManager
    • about / How it works…
  • ModuleManager events
    • about / Optionally act on ModuleManager events
    • loadModules event / Understanding the loadModules event
    • loadModules.resolve event / The loadModules.resolve event
    • loadModule event / The loadModule event
    • loadModules.post / The loadModules.post
    • loadModules.post event / Attaching to the loadModules.post event
  • modules, using as widget
    • about / Using modules as a widget
    • controller, creating / Creating the Comment/Controller/Index
    • comment/controller/index, creating / Creating the Comment/Controller/Index
    • comment module, creating / Creating the Comment/Controller/Index
    • view helper, using / Using a view helper to display the comments statically, Using a view helper to display the comments statically
    • forward(), using / Using the forward to render the comments statically, Using the forward() method to render the comments statically
    • comments, getting through AJAX / Getting the comments through AJAX, How it works…, Getting the comments through AJAX
    • widgetizing / About Widgetizing
  • multiple databases
    • connecting to, configuration used / Connecting to multiple databases through the configuration
  • MySQL database
    • connecting to, configuration used / Connecting to a MySQL database through the configuration, Connecting to a MySQL database through the configuration
    • connecting to, code used / Connecting to a MySQL database through code
  • MySQLi driver
    • about / MySQLi driver

N

  • noop() function / Keeping a connection alive
  • No Operation command / Keeping the connection alive

O

  • ObjectCache pattern
    • about / The ObjectCache pattern
  • Observer pattern
    • about / The Observer pattern explained
  • OCI8 driver
    • about / OCI8 driver
  • onBootstrap method
    • about / Creating the Module.php
  • OptimizableInterface / Storage adapter's implementations
  • OptimizeByFactor plugin
    • about / Using the OptimizeByFactor plugin
    • using / Using the OptimizeByFactor plugin
  • OutputCache pattern
    • about / The OutputCache pattern

P

  • .po file / Getting ready, Gettext
  • ParameterContainer object / Using raw SQL, Using raw SQL
  • Partial view helper
    • about / The Partial view helper, The Partial view helper explained
  • PatternOptions pattern
    • about / The PatternOptions pattern
  • PDO driver
    • about / PDO driver
  • PGSQL driver
    • about / PGSQL driver
  • PHP array
    • about / PHP array
  • PHPDoc / Document your class
  • PHP DocBlock / Document your class
  • PHPUnit cheat sheet
    • reference link / See also
  • PHPUnit XML configuration file
    • reference link / See also
  • Poedit
    • about / Getting ready
    • URL / Getting ready, Gettext
    • strings, translating with / Translating strings with Poedit
  • POP3 mail server
    • connecting to / Connecting to a POP3 mail server
  • POP3 server
    • connecting to / Connecting to a POP3 server
  • portable object / Gettext
  • prepared statements
    • using / Using the prepared statements
  • Profiler$$profileStart() method / How it works…
  • public/index.php file, Zend Framework 2
    • about / File – init_autoloader.php
  • public folder, Zend Framework 2
    • about / Folder – public

Q

  • queries
    • executing / Executing simple queries, How to do it…
    • raw SQL, using / Using raw SQL
    • prepared statements, using / Using the prepared statements, Using prepared statements
    • quote identifier / Quote identifier
    • quote identifier, chain / Quote identifier chain
    • quote (trusted) value / Quote (trusted) value
    • quote value list / Quote value list
    • quote identifier, in fragment / Quote identifier in fragment, How it works…
    • raw SQL / Using raw SQL
    • SQL, quoting / Quoting in our SQL
    • createStatement, using / Using createStatement
    • executing, TableGateway used / Executing queries using TableGateway, Inserting a new record
    • record, updating / Updating a record
    • record, deleting / Deleting a record
    • joins conditions / Advanced selects – joins conditions
  • query() method / Using prepared statements, Using createStatement
  • quote identifier
    • about / Quote identifier
    • chain / Quote identifier chain
    • in fragment / Quote identifier in fragment
  • quoteIdentifierChain method / Quote identifier chain
  • quoteIdentifierInFragment method / Quote identifier in fragment
  • quote value list / Quote value list

R

  • record
    • inserting / Inserting a new record
    • updating / Updating a record
    • deleting / Deleting a record
  • Redis adapter
    • about / Redis caching
    • interfaces / Redis caching
  • retrieveLocales() method / So it begins
  • reusable Views
    • creating / Creating reusable Views, How to do it…
    • creating, Action view helper used / Use the Action view helper to get the re-usable content
    • child, defining to ViewModel instance / Define a child to the ViewModel instance
  • routine
    • handling / Handling routines
  • routing
    • defining / How to do it…
    • setting up / Setting up routing
    • SimpleRouteStack, using / Using SimpleRouteStack
    • TreeRouteStack, using / Using TreeRouteStack

S

  • sendmail
    • e-mail, sending through / Transport\Sendmail
  • Serializer plugin
    • about / Using the Serializer plugin
    • using / Using the Serializer plugin
  • service
    • creating / Creating a service
    • getting, from within controller / Getting a service from within a controller
  • ServiceManager
    • about / About the ServiceManager, A basic service
  • Session storage adapter
    • about / Session caching
    • interfaces / Session caching
  • simple file logger
    • implementing / Implementing a really simple file logger, Implementing a really simple file logger
  • SlmLocale module / Identifying the client language
    • URL / Identifying the client language
  • SMTP server
    • e-mail, sending through / Transport\Smtp, Sending mail through SMTP
  • SQL
    • quoting in / Quoting in our SQL
  • SQLSRV driver
    • about / SQLSRV driver
  • start() method / Keeping a connection alive
  • stop() method / Keeping a connection alive
  • storage adapters
    • about / About storage adapters and patterns
    • implementing / Storage adapter's implementations
    • Apc adapter / Apc caching
    • dba / Dba caching
    • file system / File system caching
    • Memcached adapter / Memcached caching
    • Memory adapter / Memory caching
    • Redis / Redis caching
    • Session storage adapter / Session caching
    • WinCache / WinCache caching
    • XCache / XCache caching
    • ZendServerDisk / ZendServerDisk caching
    • ZendServerShm / ZendServerShm caching
    • differentiating, with patterns / Explaining the difference
  • storage plugins
    • about / How to do it…
    • ClearExpiredByFactor plugin / Using the ClearExpiredByFactor plugin
    • ExceptionHandler plugin / Using the ExceptionHandler plugin
    • IgnoreUserAbort plugin / Using the IgnoreUserAbort plugin
    • OptimizeByFactor plugin / Using the OptimizeByFactor plugin
    • Serializer plugin / Using the Serializer plugin
    • using / Using any plugin
  • strings
    • translating, in controller / Translating strings in the controller
    • translating, in view / Translating strings in the View
    • translating, with Poedit / Translating strings with Poedit
  • structures, Zend Framework 2
    • about / Basic Zend Framework 2 structures
    • config folder / Folder – config
    • module folder / Folder – module
    • public folder / Folder – public
    • vendor folder / Folder – vendor
    • init_autoloader.php file / File – init_autoloader.php

T

  • TableGateway
    • used, for executing queries / Executing queries using TableGateway
  • TableGatewayInterface / How it works…
  • TaggableInterface / Storage adapter's implementations
  • TDD (test-driven development) / When should we test? – before, or after code is written
  • TotalSpaceCapableInterface / Storage adapter's implementations
  • translate() method / Translating strings with Poedit
  • translatePlural() method / Basic set up of translation in your module
  • translation, Application module
    • setting up / Basic set up of translation in your module
  • try-catch block
    • about / About try-catch

U

  • Unit testing
    • about / Unit testing – why would you do it, Getting ready, What is unit testing
    • Pseudo-code examples / Pseudo-code examples
    • working / How it works..., How it works...
    • TDD (test-driven development) / When should we test? – before, or after code is written
    • discipline / It is a matter of discipline
    • setting up / Setting up and using unit testing, Setting up the test framework
  • URL view helper
    • about / The URL view helper, The URL view helper explained

V

  • validation
    • about / Forms, filtering, and validation
  • vendor folder, Zend Framework 2
    • about / Folder – vendor
  • view
    • strings, translating / Translating strings in the View
    • currencies, localizing / Localizing currencies, Localizing currencies and dates
    • date, localizing within / Localizing currencies and dates
  • View
    • working with / Working with View, Getting ready
    • Manager, configuring / Configure the ViewManager
    • variables, setting in ViewModel instance / Set variables in the ViewModel instance
    • template file, marking / Mark up the template file
    • configuration / The configuration
    • Model instance / The ViewModel instance
    • Strategy class / The ViewStrategy class
    • Renderer helper / The ViewRenderer helper
    • BasePath view helper / The BasePath view helper
    • Doctype view helper / The Doctype view helper
    • URL view helper / The URL view helper
    • Partial view helper / The Partial view helper
    • Zend\View\Helper\AbstractHelper / Zend\View\Helper\AbstractHelper
  • view helper
    • adding, to configuration / Adding view helper to the configuration
  • ViewManager
    • configuring / Configure the ViewManager
  • ViewModel instance
    • variables, setting / Set variables in the ViewModel instance
    • about / The ViewModel instance
    • child, defining / Defining a child to a ViewModel instance explained
  • ViewRenderer helper
    • about / The ViewRenderer helper
  • view strategies/renderers
    • using / Using view strategies/renderers
    • view strategy, adding / Adding a view strategy
    • JSON strategy / The JSON strategy
    • Feed strategy / The Feed strategy
    • view strategy class / The view strategy class
    • default view strategies / The default view strategies
  • view strategy
    • adding / Adding a view strategy
    • about / More about view strategies
  • view strategy class
    • about / The view strategy class
  • ViewStrategy class
    • about / The ViewStrategy class

W

  • widgetizing
    • about / Using modules as a widget, About Widgetizing
  • WinCache adapter
    • about / WinCache caching
    • interfaces / WinCache caching
  • Windows
    • Zend Server Community Edition, installing / Installing Zend Server Community Edition on a Windows environment

X

  • XCache adapter
    • about / XCache caching
    • interfaces / XCache caching
  • XmlModel
    • about / The XmlRenderer and XmlModel
  • XmlOutput renderer
    • creating / Creating the XmlOutput renderer
  • XmlRenderer
    • about / The XmlRenderer and XmlModel
  • XmlStrategy
    • about / The XmlStrategy

Z

  • Zend Framework
    • URL / There's more…
  • Zend Framework 2 / Translating your application
    • setting up / Setting up a Zend Framework 2 project, Getting ready, How to do it…
    • skeleton, cloning / Cloning the skeleton
    • skeleton, moving / Moving the skeleton
    • Composer, initializing / Initializing the Composer
    • EventManager / The EventManager and Bootstrap classes
    • application, translating / Translating your application, Getting ready
    • application, localizing / Localizing your application, So it begins, How it works…
    • e-mail, sending / Sending mail, How it works…
    • e-mail, receiving / Getting ready, How to do it…, Connecting to an IMAP mail server, How it works…
    • module, creating / Creating a new module
    • basic service / A basic service
    • authentication methods / Understanding Authentication methods
    • storage plugins / Understanding and using storage plugins
    • Exception handling / Handling Exceptions – your partner in crime
    • logging / Logging and how it makes your life easier
    • Unit testing / Unit testing – why would you do it
    • searching / Finding Zend Framework 2
    • downloading / Finding Zend Framework 2
    • phpcloud, coding in / Coding in the phpcloud
    • documentation / The documentation and getting started guide
    • Composer / Composer and its uses within Zend Framework 2
    • structures / Basic Zend Framework 2 structures
    • flow chart diagram / What's next?
    • storage adapters / About storage adapters and patterns
    • cache patterns / Cache patterns
  • Zend Server
    • about / Making sure you have all that you need
    • installing / Making sure you have all that you need
    • URL / Making sure you have all that you need
    • first-time run / First-time run of Zend Server
  • Zend Server Community Edition
    • installing, on Linux / Installing Zend Server Community Edition on a Linux environment
    • installing, on Windows / Installing Zend Server Community Edition on a Windows environment
  • ZendServerDisk adapter
    • about / ZendServerDisk caching
    • interfaces / ZendServerDisk caching
  • ZendServerShm adapter
    • about / ZendServerShm caching
    • interfaces / ZendServerShm caching
  • Zend\Form extend form
    • elements, adding / Adding elements to a Zend\Form extend form
  • Zend\Mvc\Router\Http namespace
    • about / Namespace – Zend\Mvc\Router\Http
  • Zend\Mvc\Router\Http\Hostname namespace
    • about / The Hostname class explained
  • Zend\Mvc\Router\Http\Literal class
    • about / The Literal class explained
  • Zend\Mvc\Router\Http\Method class
    • about / Methods explained
  • Zend\Mvc\Router\Http\Part class
    • about / The Part class explained
  • Zend\Mvc\Router\Http\Regex class
    • about / Regex explained
  • Zend\Mvc\Router\Http\Scheme class
    • about / The Scheme class explained
  • Zend\Mvc\Router\Http\Segment class
    • about / The Segment class explained
  • Zend\View\Helper\AbstractHelper
    • about / Zend\View\Helper\AbstractHelper
  • ZF2 skeleton application
    • about / Getting ready…
lock icon The rest of the chapter is locked
arrow left Previous Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image