Re : How to add another application with Tiki Wiki
I'd propose you a small reading concerning that.
http://smarty.php.net/manual/en/what.is.smarty.php
Smarty's our templates engine, templates are tpl files located in tiki/templates/, called with smarty->display() in php files.