This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation
 1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 
<?php

defined('C5_EXECUTE') or die("Access Denied.");
class Concrete5_Controller_Dashboard extends DashboardBaseController {

    public $helpers = array('form'); 
    
    public function view() {
        $this->enableNativeMobile();
        $categories = array();
        $c = Page::getCurrentPage();
        $children = $c->getCollectionChildrenArray(true);
        foreach($children as $cID) {
            $nc = Page::getByID($cID, 'ACTIVE');
            $ncp = new Permissions($nc);
            if ($ncp->canRead() && (!$nc->getAttribute('exclude_nav'))) {
                $categories[] = $nc;    
            }
        }
        $this->set('categories', $categories);
    }

}