Within a block's definition, you can click or in the editor gutter to navigate to the templates where the corresponding block is implemented or overwritten. Navigate to a Smarty template or a template's block definition. Navigate to a module, controller, or action when assembling a URL using the Enlight_Controller_Router 's assemble method. Navigate to a controller, hook, or event. Alternatively, Control+LeftClick the usage. To navigate to the declaration of an item, place the caret at its usage and press Control+B. Subscribe to events provided by Shopware and other plugins as well as complete the names of controllers and hooks.Ĭomplete array keys and values when using setElement for forms.Ĭomplete array keys like module, controller and action when assembling a URL using the Enlight_Controller_Router 's assemble method.Ĭomplete array keys when creating a plugin in Shopware and implementing the getInfo or Path methods.Ĭomplete block names when working with Smarty templates.Ĭomplete the names of existing templates when including or extending other templates by means of the constructs.Ĭomplete the names of files (such as scripts, Style Sheets, or images) when referencing them from a Smarty template.Ĭomplete the snippets' and widgets' namespaces.Ĭomplete the names of Doctrine repositories when calling getRepository.Ĭomplete ExtJs models or controllers, for example when creating model associations. In the editor, press Control+Space to invoke code completion and do any of the following: Restart PhpStorm for the changes to take effect. In the Settings dialog ( Control+Alt+S), navigate to PHP | Symfony and select the Enable Plugin for this Project checkbox. Enable the Symfony Plugin for a projectĬlick the Enable the Symfony plugin with autoconfiguration link in the notification message. After creating or opening a Symfony project, PhpStorm will display a notification message suggesting you enable the plugin. Having installed the Symfony and Shopware plugins, you need to explicitly enable the Symfony plugin for the project. Enabling the Symfony Plugin for a project Before you startīefore you start working with Shopware, make sure that the Symfony, PHP Annotations, and Shopware plugins are installed and enabled. The source code for the Shopware plugin, as well as its issue tracker, can be found on GitHub. The Shopware plugin adds additional support for developing Shopware eCommerce with PhpStorm. It is based on a number of Symfony framework components, supported in PhpStorm through the core features and the Symfony Plugin. Shopware is a powerful and flexible application that can be used for building eCommerce experiences.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |