Another mautic guide Mautic Developer Documentation https developer mautic org plugin-directory-structure C Mautic Developer Documentation Introduction Welcome to the Mautic Developer Documentation This documentation will go over how to build a Mautic Plu

Mautic Developer Documentation https developer mautic org plugin-directory-structure C Mautic Developer Documentation Introduction Welcome to the Mautic Developer Documentation This documentation will go over how to build a Mautic Plugin that extends the features of Mautic how to build custom themes and and how to integrate applications outside of Mautic using its REST API Submitting Code to Mautic Development is open and available to any member of the Mautic community All ?xes and improvements are done through pull requests to the code on GitHub This code is open source and publicly available Read more about the PR process on the Mautic Governance page The code should try to follow Symfony ? s Coding Standards Symfony Mautic is built on Symfony the popular PHP framework Mautic x uses Symfony Mautic x uses Symfony This document will go over the basics but most of their documentation applies to Mautic as well which can be used to obtain more advanced Symfony functionality There are some structural di ?erences between Mautic and standard Symfony Below is a list of where you will ?nd some of standard Symfony locations in Mautic Symfony Mautic src app bundles Mautic core or plugins Mautic plugins web AcmeBundle Resources con ?g AcmeBundle Con ?g AcmeBundle Resources views AcmeBundle Views AcmeBundle Resources public AcmeBundle Assets AcmeBundle Resources translations domain enUS ini AcmeBundle Translations enUS domain ini Most of Symfony ? s standard locations such as the Resources views and Resources translations directories should still function with Mautic However it may be required to handle service registration etc with native Symfony processes if not using the Mautic methods de ?ned in this document Development Environment SETUP It is assumed that the system already has composer and git installed and con ?gured https developer mautic org plugin-directory-structure C Mautic Developer Documentation To setup the developer environment simply fork and clone the source from GitHub Then Run composer install on the source Open your browser and complete the installation through the Mautic installer ENVIRONMENTS There are three environments in Mautic prod dev and test prod is used when accessing the site through index php dev is used when accessing the site through indexdev php Using Mautic in the dev environment will activate Symfony ? s pro ?ler toolbar has more strict error handling will display information about exceptions and will not cache as much see below Note that steps should be taken to ensure indexdev php is not accessible to the public as it could potentially reveal sensitive information It is restricted to localhost by default However there are two ways to allow access to indexdev php from a non-localhost The ?rst option is to set a header from the web-server with the IP addresses assigned to MAUTICDEVHOSTS The second and easier option is to add an array to your installation ? s app con ?g local php ?le as 'devhosts' ' ' ' ' then clear the cache test is used mainly for PHP Unit Tests CACHE Symfony makes heavy use of

  • 32
  • 0
  • 0
Afficher les détails des licences
Licence et utilisation
Gratuit pour un usage personnel Attribution requise
Partager
  • Détails
  • Publié le Dec 31, 2021
  • Catégorie Administration
  • Langue French
  • Taille du fichier 703.2kB