src/MPageController.php
protected function renderTitle()
    {
        // Render page title
        if( $this->pageTitle != null )
        {
            $title = mb_convert_encoding( $this->pageTitle, $this->getCharset(), 'auto' );

            $domQuery = $this->qp->find( "title" );
            if( $domQuery->count() <= 0 )
            {
                trigger_error( 'title tag not found in page', E_USER_WARNING );
            }
            else
            {
                $domQuery->append( $title );
            }
        }
    }
protected function renderTitle()
    {
        // Render page title
        if( $this->pageTitle != null )
        {
            $title = mb_convert_encoding( $this->pageTitle, $this->getCharset(), 'auto' );

            $domQuery = $this->qp->find( "title" );
            if( $domQuery->count() <= 0 )
            {
                trigger_error( 'title tag not found in page', E_USER_WARNING );
            }
            else
            {
                $domQuery->append( $title );
            }
        }
    }
protected function renderTitle ( ) { // Render page title if ( $ this -> pageTitle != null ) { $ title = mb_convert_encoding ( $ this -> pageTitle , $ this -> getCharset ( ) , 'auto' ) ; $ domQuery = $ this -> qp -> find ( "title" ) ; if ( $ domQuery -> count ( ) <= 0 ) { trigger_error ( 'title tag not found in page' , E_USER_WARNING ) ; } else { $ domQuery -> append ( $ title ) ; } } }
Write the title in the title tag of the page.
Write the title in the title tag of the page .