phpfox3使用的模板引擎


Template engine used by phpfox 3

有人能告诉我Phpfox 3社交网络引擎使用的模板引擎吗?或者可以告诉我解释该模板的教程链接吗。我也很乐意与教授Phpfox 的优秀资源取得联系

Phpfox脚本使用了一些类似于Smarty模板引擎的模板标记。这并不意味着phpfox使用Smarty,我们有自己的模板引擎,在脚本的任何部分都不使用Smarty。因此,如果你是一名开发人员或设计师,并且想知道有哪些模板可用,这里有一个列表,我希望你会觉得有用。请记住,有些标记需要一个模板变量,比如在控制器中为模板赋值()。

此文件中列出了所有支持的功能:

PF.Base''include''library''phpfox''template''cache.class.php函数phpfox_template_cache::_parseFunction()

这是一个例子。

// HTML
this is a funky pointer -{ldelim}
// Code Gererated
this is a funky pointer -{
 
// HTML
This next is php {php} echo 'hello'; {/php}
// Code Gererated
This next is php <?php echo 'hello'; ?>
 
 
 
// HTML
I can count to 5: {for $i = 1; $i <= 5; $i++} {$i} {/for}
// Output Gererated
I can count to 5: 12345
 
// HTML
My numbers are {foreach from=$aVar item=iItem} {$iItem},
// Output Gererated
My numbers are 1,2,3,4,
 
 
 
// HTML
Show the ajax loading image {img theme='ajax/small.gif'}
 
// HTML Example Show an image uploaded by a user
{img server_id=$aPhoto.server_id path='photo.url_photo' file=$aPhoto.destination suffix='_150' max_width=150 max_height=150 class="hover_action" title=$aPhoto.title}