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.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting