
Shaikh Sonny Aman - 2009-01-20 11:11:55
One of the core feature of the php-papa is 'applet'.
Applets as it names, can be independent application. For example, Simple Machine Forum (smf) is a popular forum software written in php. Now, if you like to add this in your application you can do it easily with php-papa.
You need to just place the smf folder into the applet directory of your application and show it in a div using this function:
papa_show_app($app_folder_name)
Alternatively, you can create a layout named applet.php if you like to access this via URL. Here you must have this code:
<?
echo $content;
?>
Now, how to access this applet do this: http://localhost/app/smf.
Papa converts all the form actions,url etc dynamically.
This will also help you build a site for showing demo of user conrtibuted application.
Don't forget to get the php-papa from http://www.phppapa.com
Known issue:
applet css may distort global css.