Loading...
 
Skip to main content

Features / Usability


can I use php code in the tiki-custom_home.tpl ? should I even try that ? Will it break something ?

I am trying to implement a sql editing script into the tiki custom home page.
This one http://www.phpmyedit.orgQuestion
Should I even be trying to do something like that ? Would there be a chance of conflicting variable names etc ?

In general terms can you "plug in" stuff like that to a tpl page ?

Cheers

code
Copy to clipboard
Hello print "PHP Hello, world!"; phpInfo();


I am guessing not ... I just tried to do this

It just produced h1 header only and not the PHP Hello, world! echo.
No PhpInfo either.

If I can't do this here what to I need to do to make that sort of functionality happen using Tiki ?

Cheers


In Smarty, you can use php code
Try

Copy to clipboard
{PHP} my php code here {/PHP}


However, template security must me off.

Best regards,

M 😉