include a page with include()
I cannot use an iframe as paypal will not allow this.
No matter how i try and include this page, it simply wont work. I am using the php block (PHP block by ND - 1.0) and the page url is
Could someone please give me the correct code to use to add this page.
1.) Create a new page template file in your theme. For example copy default.php and rename it to mycustomcode.php
2.) Add it to your site by going to the theme and "inspecting" it
3.) Paste the old PHP code you want to run inside mycustomcode.php
4.) If you need to reference outside php files place them in your themes folder and use a snippet such as below to include them
<?php $this->inc('myawesomeinclude.php'); ?>
This will work but I do want to make mention that this is a horribly hacky way to use Concrete5. Concrete has a great architecture - if possible use it and make a package!!!
(warning: sales pitch) Depending on your needs with Paypal, check this out:http://www.concrete5.org/marketplace/addons/paypal-cart-buttons/...
Thanks very much for your help windhack. after more tests it seems the php page had some problems. I made a simple php page and it was able to include that fine.
Now just goptta find out why my real page wont work :)