Docs | Components | Pages
<?php
    class hello extends Controller {
        function index() {
            $p = new dvc\pages\bootstrap;
            $p
                ->header()
                ->title();

            $p->primary();
                print 'hello world';

            $p->secondary();
                print 'secondary';
  • php classes have a __destruct method, the page class __destruct method calls $p->close(); method during destruction closing the html and appending a page footer

By default the page structure uses bootstrap 4 to create 4 main areas

+---------------------------------------+
| Navbar                                |
+---------------------------+-----------+
| Primary                   | Secondary |
| 9 Columns                 | 3 Columns |
+---------------------------+-----------+
| Footer                                |
+---------------------------------------+

Templates used

  • app/views/navbar-default.php
  • app/views/footer.php