[Phpmyadmin-devel] Access PHP variables in JS

11 Jun
2015
11 Jun
'15
1:23 p.m.
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? Thanks. -- Nisarg Jhaveri નિસર્ગ ઝવેરી

11 Jun
11 Jun
1:59 p.m.
On Thu, Jun 11, 2015 at 4:53 PM, Nisarg Jhaveri <nisargjhaveri@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_... -- Regards Atul Pratap Singh
3748
Age (days ago)
3748
Last active (days ago)
1 comments
2 participants
participants (2)
-
Atul Pratap Singh
-
Nisarg Jhaveri