Getting a GLOBAL value on a page PHP vs NODE

I have set globals in my Node project.


and i can “call” these on my nodejs page as …
<%=_(‘servertimenow’,locals)%> and it will render the server time NOW…

I am now trying to do the same with PHP…
php-global
I have tried the same approach… to call the global <%=_(‘servertimenow’,locals)%> but not working for me. So i assume in PHP you would use a different line of code to do this…

If i look in the dev tools. I can see it in the output in the browser console, but how do i get it onto my page.

Thank you

Only nodejs server model in Wappler supports server-side rendering on the pages.

Well the steps in globals are available on every page a server action is added on. So you can bind them on the page.

1 Like

Ok. Thank you - that was pretty simple

If anybody else wanted to know…

1 Like