Run php code in Paper lantern using .html.tt
Hello
I was using plugin which was working on x3 theme. That code written in .php
how can I use that code with .html.tt ? When I tried to create new file, my php code doesn't work
-
Hello, The following guide is available for help developing your cPanel plugin: Guide to cPanel Plugins - Software Development Kit - cPanel Documentation Could you review this guide to ensure you are following the correct steps? Thank you. 0 -
Hello I already checked cpanel documentation couple of times but I an not able to run my php code in paper_latern. Can you please tell me how can I get header and footer using .php file ? If I use index.live.php file name, I am able to get header and footer but when I place my code in that file I get this error Child failed to make LIVEAPI connection to cPanel. Please help to get header footer and side bar using .php file. Thanks 0 -
Hello, We document this under "Step 2" at: Tutorial - Create a New Paper Lantern Interface in PHP - Software Development Kit - cPanel Documentation Can you verify the specific steps you are taking if this is not working, or provide us with the steps we can use to reproduce the issue? Thank you. 0 -
Hello Thank you for the reply, but if I want to use below code, I must set file filename.live.php header( "Page Heading, app_key" ); // Add the header. ?> Is that correct ? Using this code, I am able to get header, but when I set my code in file, and run file, I get error Child failed to make LIVEAPI connection to cPanel. Can I get header and footer using only .php file ? 0 -
All good. Thank you. There was a small issue with my code which is fixed now. Thanks for the help. 0 -
Hi, I'm happy to see you solved the issue. Could you share the code change that you made? Thanks! 0
Please sign in to leave a comment.
Comments
6 comments