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