Esempio n. 1
0
 public function __index()
 {
     $this->view->docs = R_Document::find();
     $this->body($this->view->load("pages/documents.php"));
 }
Esempio n. 2
0
documents/">
                            <?php 
echo __t("Pages");
?>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a href="<?php 
echo App::admin()->url();
?>
documents/new"><i class="icon-plus"></i> <?php 
echo __t("New page");
?>
</a></li>
                            <li class="divider"></li>
                            <?php 
$pages = R_Document::find("(type='page') AND (is_page=1) AND (parent_fk is null)", "sort_order");
foreach ($pages as $i => $p) {
    ?>
                            <li><a href="<?php 
    echo App::admin()->url() . "documents/?id=" . $p->id;
    ?>
"><em> <?php 
    echo $p->name;
    ?>
</em></a></li>
                            <?php 
    if ($i == 1) {
        ?>
                                <li><a href="<?php 
        echo App::admin()->url() . "documents/";
        ?>