[Phpmyadmin-devel] Access PHP variables in JS

Atul Pratap Singh atulpratapsingh05 at gmail.com
Thu Jun 11 13:59:59 CEST 2015


On Thu, Jun 11, 2015 at 4:53 PM, Nisarg Jhaveri <nisargjhaveri at gmail.com>
wrote:

> Hi,
>
> Is there any common/standard way by which we can access configuration
> options (or in general a PHP variable) in JS? If not, what is the best way
> to do so?
>
> You can define them in getJsParams() in libraries/Header.class.php.. It is
documented at [0]

[0]
https://wiki.phpmyadmin.net/pma/Page_loader#Accessing_common_parameters_via_JS


--
Regards

Atul Pratap Singh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20150611/be41349f/attachment.html>


More information about the Developers mailing list