function __construct()
 {
     $name = getInput("name");
     $label = getInput("label");
     $title = getInput("title");
     $body = getInput("body");
     $page = new Custompage();
     $page->name = $name;
     $page->label = $label;
     $page->title = $title;
     $page->body = $body;
     $page->save();
     new SystemMessage("Your page has been created.");
     forward("admin/custom_pages");
 }
Ejemplo n.º 2
0
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="<?php 
    echo getSiteURL();
    ?>
"><?php 
    echo getSiteName();
    ?>
</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <?php 
    echo MenuItem::getAll("header_left");
    echo Custompage::getMenuItems();
    ?>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <?php 
    echo MenuItem::getAll("header_right");
    ?>
                </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
    <?php 
}
echo display("navigation:after");