Page 1 of 1
PHP Screen with RPG Code?
Posted: Sat Apr 13, 2013 8:45 pm
by andrew
I was wondering I would go about using PHP created screens that would be run along side an RPG application? We are wanting to do an employee web portal and I was seeing about using
Foundation Framework for the user friendly interface and having RPG code to detect the user's actions.
Is this possible?
Re: PHP Screen with RPG Code?
Posted: Mon Apr 15, 2013 4:31 pm
by Scott Klement
I'm not sure that I understand what you are looking for.
When you say "PHP alongside RPG" do you mean that you'll code PHP programs to run as web pages, and the PHP pages will run RPG programs under the covers to get data? If so, you don't need/want a framework like Profound UI, PHP can just call RPG programs directly and pass parameters to them.
If by "alongside" you mean that you want a PHP application and an RPG application to appear side-by-side on a single web page, then you would probably want to code iframes for each, and have one of them point to the RPG program, and one point to the PHP program.
If you mean that you'd like to use Foundation Framework, and have it use RPG as a backend... you can't do that with Profound UI, since Profound UI is a framework itself, and our OA handler and JS framework are designed to work with each other. Adapting it to use another framework would be extremely difficult, if possible at all. But, you could certainly use our RPGsp product to drive a different Javascript framework, or you could use something like CGIDEV2. I'm not familiar with Foundation Framework (so it may or may not work with RPG?), but they'd work fine with other frameworks like jQuery or ExtJS. Obviously, in this case, you'd need to understand how to code that sort of program (much like you would if you coded in PHP, et al, you'd need to understand the framework, Javascript code, HTML and CSS)
Does any of that help? I'm not so sure that I understand what you are asking.