PHP development tool-PRADO1.6 entry and installation

Source: Internet
Author: User
Chapter 1 What is entry 1.1PRADO? PRADO is an event-driven and component-based WEB exploitation development framework in the PHP5 environment. The most important task you need to do when using PRADO to develop WEB applications is to use the existing components of the application. (the original article is "instantiation has already been set to Chapter 1.

  1.1What is PRADO?

PRADO is an event-driven and component-based WEB exploitation development framework in the PHP5 environment. The most important task you need to do when using PRADO to develop WEB applications is to apply existing components (the original article is 'instantiate the defined components ', developers familiar with object-oriented programming may easily understand this sentence), set component attributes, and write corresponding processing functions for various events of control components, and then organize these into pages one by one. (Translator's note: I personally prefer to translate component into components and control into controls. In fact, there is no difference between the two in most cases, but in order for readers to understand the original text more easily, this document is translated according to this rule .) This process is very similar to developing Windows exploitation programs by using RAD development tools (such as Delphi or Visual Basic.

The following uses a simple example to illustrate the working principle of the PRADO framework. Suppose we want to use PRADO to develop a common logon page. First, select two of the PRADOTTextBoxControls and 1TButtonControls are used to distinguish between the input by user name, the input by password, and the submit button. Then, enter the corresponding password.TTextBoxControlTextModeSet the attribute to 'password' andTButtonControlOnClickEvent specifies a processing functionLogin. Finally, place these controls in the appropriate position of the page template (what is the page template will be described later, in fact it is very similar to an html page ), A fully functional logon page is available. The control will handle such issues as how to display data, how to obtain the data imported by users, and how to handle the control of users. For example,TTextBoxThe control displays a Input box for the user to enter. the user's input password is displayed as the * number, and the developer can readTTextBoxControlTextAttribute to obtain the user's actual input password. when the user clicks the submit button,LoginThe function will be called proactively. This is very different from the traditional PHP programming method. Using traditional PHP programming methods, developers need to apply HTML tags to display user input boxes and buttons, at the same time, you need to parse the POST data to get the user's input and determine whether the button has been clicked.

PRADO

Component-based programming methods make code reuse extremely convenient. Some repetitive and monotonous work, such as form input verification and page state governance, can be processed by components already provided by PRADO. Developers can also develop new components to meet requests by continuing existing components or combining existing components. Other new components will be announced soon.

In general, PRADO provides the following benefits for PHP programmers:

  • Reusability-code that conforms to the PRADO component scale is highly reusable.
  • Ease of application-the PRADO component is very simple. Generally, you only need to configure their attributes and write related event processing functions.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.