Can you please tell me how to add php code output to addScriptDeclaration body?
There is such a code (just part of it):
<?php $document->addScriptDeclaration(' $("#address_street").suggestions({ token: "0000000000000000000000", type: "ADDRESS", onSelect: showPostalCode, onSelectNothing: clearPostalCode }); '); ?> How to insert the output of the php code instead of 0000000000000000000000 , for example, $ plg_params-> get ('allow') ?