So I have several pages written in PHP that I would like use on a page in php. They are doing a lot of interaction with a database for ordering and configuring products. I want to be able to use my code with a MODx template, so I can easily change the template and such. Anyway, how do you get PHP code to work on a page in MODx? I am just tyring to test it with: <?php phpinfo(); ?>, but nothing shows up.
I guess I should also point out that I am also JavaScript and PEAR templates along with PHP...
Create a snippet with your PHP code.
Nice! Okay thanks. That seemed obvious enough...