public function setPageTitle(array $config): void
    {
        foreach ($config as $item) {
            if (isset($item['active']) && $item['active']) {
                $this->_View->assign('title', $item['title']);
                break;
            }
        }
    }
public function setPageTitle(array $config): void
    {
        foreach ($config as $item) {
            if (isset($item['active']) && $item['active']) {
                $this->_View->assign('title', $item['title']);
                break;
            }
        }
    }
public function setPageTitle ( array $ config ) : void { foreach ( $ config as $ item ) { if ( isset ( $ item [ 'active' ] ) && $ item [ 'active' ] ) { $ this -> _View -> assign ( 'title' , $ item [ 'title' ] ) ; break ; } } }
Set page title automatically based on the current menu item

@param array $config Menu Config
@return void
Set page title automatically based on the current menu item