Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() |
![]() ![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 31 | All time: 10,798 This week: 134![]() |
Version | License | PHP version | Categories | |||
mezon-ajax-applicati 1.0 | MIT/X Consortium ... | 5 | PHP 5, Libraries, AJAX |
Description | Author Contributor | |
This package facilitates the creation of AJAX applications using the Mezon framework. |
Mezon Framework provides simple class for creating ajax applications. This class uses all functionality of the Mezon Application Class also provides usefull functionality:
Just print in console
composer require mezon/ajax-application
And that's all )
More information can be found here:
For better debugging exception handling is performed in a special way. If the ajax request will be failed to process, then on the front end you will get JSON object with fields:
After finishing request processing you can mark it as successfull:
function ajaxRequestSuccess(): void
Wich will return {"code": 0}
Or return any other result:
function ajaxRequestResult($result): void
In this case $result will be encoded in JSON and outputted.
Or in case of the error you can call
function ajaxRequestError(string $message, int $code = - 1): void
Wich will return object {"code": $code, "message": "message"}
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Doc. | Documentation |
![]() |
/ | Mezon | / | Application |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() | mezon-ajax-applicati-2022-01-17.zip 2KB |
![]() | mezon-ajax-applicati-2022-01-17.tar.gz 2KB |
![]() | Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.