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

Symfony in phpDesigner 7

Introduction

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

Symfony is a web application framework written in PHP which follows the model-view-controller (MVC) paradigm. Symfony aims to speed up the creation and maintenance of web applications and to replace repetitive coding tasks. Symfony is aimed at building robust applications in an enterprise context, and aims to give developers full control over the configuration: from the directory structure to the foreign libraries, almost everything can be customized. To match enterprise development guidelines, Symfony is bundled with additional tools to help developers test, debug and document projects1).

Symfony features include2):

  • Easy to install and configure on most platforms (and guaranteed to work on standard *nix and Windows platforms)
  • Database engine-independent
  • Simple to use, in most cases, but still flexible enough to adapt to complex cases
  • Based on the premise of convention over configuration–the developer needs to configure only the unconventional
  • Compliant with most web best practices and design patterns
  • Enterprise-ready–adaptable to existing information technology (IT) policies and architectures, and stable enough for long-term projects
  • Very readable code, with phpDocumentor comments, for easy maintenance
  • Easy to extend, allowing for integration with other vendor libraries
  • The built-in internationalization layer allows for both data and interface translation, as well as content localization.
  • The presentation uses templates and layouts that can be built by HTML designers without any knowledge of the framework. Helpers reduce the amount of presentation code to write by encapsulating large portions of code in simple function calls.
  • Forms support automated validation and repopulation, and this ensures a good quality of data in the database and a better user experience.
  • Output escaping protects applications from attacks via corrupted data.
  • The cache management features reduce bandwidth usage and server load.
  • Authentication and credential features facilitate the creation of restricted sections and user security management.
  • Routing and smart URLs make the page address part of the interface and search-engine friendly.
  • Built-in e-mail and API management features allow web applications to go beyond the classic browser interactions.
  • Lists are more user-friendly thanks to automated pagination, sorting, and filtering.
  • Factories, plug-ins, and mixins provide a high level of extensibility.
  • Ajax interactions are easy to implement thanks to one-line helpers that encapsulate cross-browser-compatible JavaScript effects.

Requirements

Working with the Symfony in phpDesigner 7

Setup

First you need to download the Symfony 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 Symfony. 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 Symfony inside phpDesigner 7.

Navigation

You can easily navigate and browse all listed classes, functions and variables in Symfony 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 Symfony. 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 Symfony 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.