There is nothing to be documented. PHP code is ... PHP code It doesn't matter if you write it in Notepad or Wappler.
Nope, that's not the case, there is no such a thing as "wappler way to run PHP"
What have you tried and what is not working?
That's not the name of the session $_SESSION['siteSecurityId'] as explained in the docs, the session name depends on the security provider step name. If it is called siteSecurity then the session name will be $_SESSION['siteSecurityId']
If it is called pizza the session would be $_SESSION['pizzaId'] ... etc.
I’ve got to keep going on with what I have in front of me.
So, I must postpone this discussion until another day.
I’m used to using functions in php and then using those functions directly in a php page to output everything — if a dropdown list that pulls out all the necessary options is needed – php does it and you can go reference the functions and/ or classes on another page to modify or troubleshoot.
If you’re using templates then that changes the equation, so to speak, and you must customize your code to work with the built-in requirement of that particular template. PHP as usual methods fall apart when a template language must be interfaced.
My reaction to Wappler was to try and use the Click-click-click “visual” instructions from the start. But, the EXACT location & sequence of actions that are making up a Wappler page do usually make crucial differences in what variables are ready to be used, etc, etc.
So, now that I’ve been able to take some time to sort through all of the developmennt folders and generated “action steps” files associated with a page I can better see the flow of what is called for where & how these are defined.
I will never be a javascript .js query, etc, etc expert but I have a basic knowledge enough to do some troubleshooting with other tools.
Overall, though, it is the vast dependency on DMX extensions which make troubleshooting a bit tougher – You developers have a certain logical approach to how you created JS based solutions that is reflected in the proprietary DMX Zone javascript components.
For the time being I’m having to study the files that encompass what’s behind all of the click-clicks to the Visual approach.
You don't really answer my question, but instead you mention some other things which i am really lost in. I am not sure how your last post is related to your initial question and what are you trying to explain or ask or comment.
In your first post you ask:
I asked you:
And no answer to this.
Please, can you stick to the topic and answer my question which is really specific and the answer should be really specific?
(example: I added xxxxxxxxxx on my page and the result is yyyyyyyyyy)
I use php code directly in Wappler all the time, well at least I used to, I think these days I enjoy the challenge of making things work without using my old trusty php, but anyway, here is some php to stick between the open and close body tags on a new test.php page and I just ran it, and it runs perfectly. So i’m not sure what you trying to do, but it would be great to see your visual php code that is not working, because I haven’t come across it yet.
I will try this – you are putting this into a regular Wappler php page into the text content between the Open and Close body tags.
My code examples look like yours in that I was using the same open & close PHP tags and not even simple echo was working when I checked the browser page. PHP localhost was up and running. My page was “blahblah.php”
I must admit, I have used quite a bit of php code in Wappler that also wasn’t between the open and close body tags, they should work pretty much anywhere in your page, even if not between the open / close body tags.
Give it a try when you get a moment and see.
Using custom php is not a problem. The only reason that you could try recreate all code using Wappler way is to just be able visualuze everything in ServerConnect or AppConnect.
For example there are many times that I use a menu structure as an icluded file. In there I have several if statements that display diferreent structure based on SESSION id or User level as a SESSION variable.
Another example is a mutlilingual website where based on the ‘lang variable’ I display the results in a certain language.
All of us here we have some level of expertise in PHP and from the very first start of Wappler creation our main concern was to be able to add ‘custom code’. This is why Wappler is one of its kind. It is a tool that writes code that you can actually edit.
For anyone who is using Wappler creating everything though Wappler GUI is just a challenge and not an obligation, in order to make Wappler even more user friendly. But again Wappler has reached to a point that there is almost nothing that you cant do.
We all will be glad if something that can not be done is mentioned so it is added in future releases of Wappler.
I use an API that allows me to get the real-time exchange rate of all currencies. I have embedded the code in my page, but using App Connect Bidding it does not retrieve the values (currency codes) which should calculate the conversion rate.