Strict Standards: Declaration of Doku_Renderer_metadata::table_open() should be compatible with Doku_Renderer::table_open($maxcols = NULL, $numrows = NULL, $pos = NULL) in /customers/b/e/2/mpsoftware.dk/httpd.www/wiki/inc/parser/metadata.php on line 24 Strict Standards: Declaration of Doku_Renderer_metadata::table_close() should be compatible with Doku_Renderer::table_close($pos = NULL) in /customers/b/e/2/mpsoftware.dk/httpd.www/wiki/inc/parser/metadata.php on line 24 Strict Standards: Declaration of syntax_plugin_qna_toc::handle() should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, &$handler) in /customers/b/e/2/mpsoftware.dk/httpd.www/wiki/lib/plugins/qna/syntax/toc.php on line 217 Strict Standards: Declaration of syntax_plugin_qna_toc::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, &$renderer, $data) in /customers/b/e/2/mpsoftware.dk/httpd.www/wiki/lib/plugins/qna/syntax/toc.php on line 217 Strict Standards: Declaration of syntax_plugin_qna_block::handle() should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, &$handler) in /customers/b/e/2/mpsoftware.dk/httpd.www/wiki/lib/plugins/qna/syntax/block.php on line 151 Strict Standards: Declaration of syntax_plugin_qna_block::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, &$renderer, $data) in /customers/b/e/2/mpsoftware.dk/httpd.www/wiki/lib/plugins/qna/syntax/block.php on line 151

PRADO in phpDesigner 7

Introduction

phpDesigner 7 is a PHP EDITOR and PHP IDE that gives you the possibility to work with the PRADO. You can access its classes, functions and variables inside phpDesigner 7.

The PRADO framework is an open source programming framework for creating professional web applications. PRADO means PHP Rapid Application Development Object-oriented. It is component-based and allows event-driven programming. PRADO, which has a configurable and pluggable modular architecture, supports Ajax components and offers customizable and localizable error handling, generic caching modules and selective output caching.

The PRADO framework's main goal is to ensure reusability in web programming, which involves not only reusing one's own code, but also others’, and which may considerably decrease the development time. The introduction of the notion of the component is for this purpose.

Being a component-based framework, PRADO offers a protocol for writing components to build web applications. A component is a self-contained software unit that can be reused after a small customization. New components can be created by combining existing ones 1)2).

PRADO features include3):

  • Reusability - Helps developers as they can reuse their previous work and easily integrate others'.
  • Event-driven programming - End-user activities, such as mouse clicking or key pressing, are captured as server events.
  • Web controls - Using PRADO, which offers a set of components for web user interfaces, you can create interactive web pages with a few lines of code. By using the datagrid component you can build a page in the form of a data table allowing paging, sorting, editing, and deleting of the rows.
  • Database support - PRADO offers complete database support. Depending on the complexity of the business objects, you can pick the simple PDO-based data access, the popular active record, or the complete business object mapping scheme SqlMap.
  • Ajax support - Using Ajax in PRADO is easy. You can write an Ajax-enabled application without writing Javascript code. Actually, using the active controls, which were introduced in version 3.1, does not differ very much from using the regular non-Ajax enabled web controls.
  • XHTML compliance - PRADO-generated web pages are XHTML-compliant
  • Accommodation of existing work - PRADO, which is a framework focused on the presentational layer, does not ban developers from using existing class libraries or toolkits. You can use ADOdb or Creole in your PRADO application, for example.
  • Customizable and localizable error/exception handling and message logging
  • Generic and selective output caching
  • Extensible authentication and authorization
  • Security measures such as cross-site script (XSS) prevention, cookie protection, etc.

Requirements

Working with the PRADO in phpDesigner 7

Setup

First you need to download the PRADO and extract it to your project's root folder.

Create a new project in phpDesigner 7 from the menu Project > Project Manager. Under 'Libraries', add the path to PRADO. Now load the new project from either the 'Project Manager' > 'Load Project' or the menu Project. You can now work with all the classes, functions and variables listed in PRADO inside phpDesigner 7.

Navigation

You can easily navigate and browse all listed classes, functions and variables in PRADO from the menu Go to. Select Project Declaration > All. You can filter all the listed classes, functions and variables in your project including your framework in the text-field 'Search'.

Code Completion

The Code completion for PHP will be displayed on the fly as you continue to write your code and is able to detect the context and display PHP items based on the context. You need to be inside a PHP block in order to access all classes, functions and variables listed in your PRADO. The Code Completion will be automate triggered once typing. For manual triggering simply press 'CTRL+SPACE'.

You can configure the behavior of the Code Completion from the menu Tools > Preferences > Editor > Code Completion.

Code Tip

The contextual Code Tip for PHP helps you complete predefined and user-defined functions easily by automatically showing the expected parameters for the current function. You need to be inside a PHP block in order to work with all listed classes, functions and variables in your PRADO using the Code Tip. It is automatic triggered on the fly as you continue to write your code or manually invoked by pressing CTRL.

You can configure the behavior of the Code Tip from the menu Tools > Preferences > Editor > Code Tip.