How to a php file/function - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: How to a php file/function (/showthread.php?tid=10785) |
How to a php file/function - harrisc - 2019-04-13 I can generate pages well. I want to include a PHP file/function on one page ( it is file calendar.php to put a calendar on the page) Can I embed the file so that is used and the calendar displayed? Chris RE: How to a php file/function - Felix - 2019-04-13 If the functions in calender.php allow it you can use php include: <?php include('calender.inc.php'); ?> RE: How to a php file/function - harrisc - 2019-04-13 On a web page I went to the Source code mode and inserted the line <?php include('calender.inc.php'); ?> When I updated the page and went to Source code mode again and the inserted line was then <!--?php include('calender.inc.php'); ?--> The function didn't work. How do I get it to work? Chris RE: How to a php file/function - Oleg06 - 2019-04-13 Use plugin http://get-simple.info/extend/plugin/dynpages/81/ RE: How to a php file/function - harrisc - 2019-04-14 I used the plug-in. I found that I had to put calendar.php in the plugins directory and activate it. The plug-in worked but on every page not just one where I put {% calendar %}. Also it was the top of every page not where I wanted it. Any further suggestions appreciated. RE: How to a php file/function - datiswous - 2019-04-16 You have to put the code inside the calendar.php file in a component. Then by using dynpages include it in your page. |