pwaring Reply #1, 2 years, 6 months ago
Hi,
I'm kind of a ModX 'newbie' so forgive me if this is may seem trivial.
I am developing an application and I want to seperate out the backend PHP logic coding and the front end template/javascript design. So I decided to use ModX so I could get 1 person on the template HTML design and Javascript and the other person doing the PHP classes for the backend data collection and processing.
So for example, say I have a resource file or a template in ModX and within that I want to call a Php file that resides somewhere on my server and returns something (let's just say "hello world" to be really original) and display it within a page.
So let's say the php file resides in www.mydomainname.com/code/helloWorld.php
Now within ModX let's say I have a normal HTML template:
So what's the best way to do this?
Thanks
Peter
I'm kind of a ModX 'newbie' so forgive me if this is may seem trivial.
I am developing an application and I want to seperate out the backend PHP logic coding and the front end template/javascript design. So I decided to use ModX so I could get 1 person on the template HTML design and Javascript and the other person doing the PHP classes for the backend data collection and processing.
So for example, say I have a resource file or a template in ModX and within that I want to call a Php file that resides somewhere on my server and returns something (let's just say "hello world" to be really original) and display it within a page.
So let's say the php file resides in www.mydomainname.com/code/helloWorld.php
Now within ModX let's say I have a normal HTML template:
So what's the best way to do this?
Thanks
Peter