Download the PHP package halasz/trynx-support-form without Composer
On this page you can find all versions of the php package halasz/trynx-support-form. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download halasz/trynx-support-form
More information about halasz/trynx-support-form
Files in halasz/trynx-support-form
Package trynx-support-form
Short Description Support form for web applications.
License BSD-3-Clause GPL-2.0-or-later GPL-3.0-or-later
Informations about the package trynx-support-form
Quickstart
This extension add feedback form to your application.
Instalation
Download
The best way to install Halasz/TrynxSupportForm is using Composer:
Registering
You can enable the extension using your neon config:
Injecting
You can simply inject factory in Your Presenters/Services:
Presenter
When you need to create component in your presenter for use in template you can do it as shown bellow. Don't forget use namespace Halasz:
Templates
Create method of interface ISupportFormFactory returns an component, so in your .latte you can simply call:
Default .latte file used to draw the component you can find in samples folder. You can copy this template and customize it. Path to the template you can specify via your config file.
Reqirements
IMPORTANT!!! you must link the css and js files from samples folder into your template.
After that you need to call halasz.SupportForm.init(); in your js code - AFTER jQuery!!!.
This extension requires jQuery v3.4.1, Bootstrap v3.3.7, netteForms.js v3 and html2canvas 1.0.0-rc.5. All of theese are included in samples folder.
Configuration
All config is optional.
Configuration must be specified in config file:
Receive data on specified URL
In PHP:
Data are sent by POST method. In $_POST are included data in format:
If user is logged in:
If user is not logged in:
in both cases can be files1-3 accessed via $_FILES Example of $_FILES content
Screenshot tips
Screenshot is generated from body element of page. Screenshot is taken according to size of body element. In some layout cases is possible that body doesn't have correct height, so if this issue hapen's to you, check height of body element.
Returned data from specified URL
This component is expecting XML with specified structure.
If everything is correctly processed:
In case of some errors:
Translation
Component has autowired translator, which is registered in config file and implements Nette\Localization\ITranslator see Nette Localization
Conclusion
This extension requires Nette3 and it is property of Tomas Halász © 2019
All versions of trynx-support-form with dependencies
latte/latte Version ^2.5.0
nette/di Version ^3.0.0
nette/neon Version ^3.0.0
nette/utils Version ^3.0.0
nette/component-model Version ^3.0.0
nette/application Version ^3.0.0
nette/http Version ^3.0.0
nette/security Version ^3.0.0
tracy/tracy Version ^2.6.0