예제 #1
0
<h1>Блог поднимателя пингвинов</h1>
<?php 
//ObjRegistry::getInstance()->fill();
$posts = \FoolCMS\ObjRegistry::get("post");
foreach ($posts as $postid) {
    echo \FoolCMS\FoolObject::initial("post")->get($postid);
}
예제 #2
0
<aside class="mainaside">
<?php 
$widgets = \FoolCMS\ObjRegistry::get("widget");
foreach ($widgets as $wid) {
    echo \FoolCMS\FoolObject::initial("widget")->get($wid);
}
?>
</aside>