Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() |
![]() ![]() |
Reputation | Support forum (2) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2022-01-17 (4 days ago) ![]() | Not yet rated by the users | Total: 18 This week: 18 | All time: 10,494 This week: 11![]() |
Version | License | PHP version | Categories | |||
mezon-ajax-applicati 1.0 | MIT/X Consortium ... | 5 | PHP 5, Libraries, AJAX |
Description | Author | |
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 |
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.