concept component in category php

appears as: components, component, components, The components, The component
Zend Framework in Action

This is an excerpt from Manning's book Zend Framework in Action.

Before we dive into using it, we will first look at why we use Zend Framework over all the other PHP frameworks out there. In a nutshell, Zend Framework introduces a standardized set of components that allow for easy development of web applications that can be easily developed, maintained, and enhanced.

Figure 1.4. Zend Framework contains lots of components that include everything required to build an enterprise application.
PHP in Action: Objects, Design, Agility

This is an excerpt from Manning's book PHP in Action: Objects, Design, Agility.

We want the ability to refactor—to improve the design by moving chunks of code around. In many cases, this will force us to create components that are independent of an existing inheritance hierarchy and therefore easier to use from anywhere inside or outside the hierarchy.

Figure 14.2. Names for the components of the page from figure 14.1

17.1.3. Naming the components of a form

In most of this chapter, we will use the term field to refer to the components of a web form. The use of this term in computing predates graphical user interfaces, relational databases, and object-oriented programming. To make sure we are clear about the terminology, table 17.2 defines some terms as they will be used in this chapter.

Table 17.2. Definitions of form component terms

Term

Definition

Input element The HTML element that creates a form control.
Form control The onscreen representation of an input component.
Form field The abstract representation or abstract aspect of a form input component. For example, the name of a country can be input through a text input control, a select menu, or in other ways, but represents the same field in all cases.

After reviewing the overall strategies for input validation and defining the components, we are ready to examine some specific problems we are trying to solve. What makes input validation so hard that the plain PHP way falls short?