Loading...
 
Development

Development


Re: Re: PHP code in wiki pages

posts: 3665 United States

> Hi Rick,
>
> Thanks.
>
> If I understood, I have to include my php code, between {php}...{/php}, in a Smarty TPL file. OK, but,
> 1 - how can I call that TPL file from my Wiki page ( not a module )?
> 2 - How can I execute it?
> 3 - I thought that Smarty TPL files have the presentation component of the application and are referenced from php files. Is this correct?
>
> I'm a little confused. Can you help?
>
> > Thanks very much,
> > Venap


I might be the one who is confused.... you're trying to execute some PHP on specific wiki pages, right? Not all wiki pages or all Tiki pages, right?

I suggest creating a wiki plugin (see the docs for details). You can include your PHP code in the plugin, then call the plugin from a wiki page:



HTH,

-Rick
Now Available: TikiWiki for Dummies Smarties — A beginner's guide to using ))TikiWiki((.

There are no comments at this time.