public function getPageByIndex($index)
    {
        if (!$this->hasPageWithIndex($index)) {
            throw new Exception(sprintf('There is no page with an index of %d', $index), 1329233627);
        }
        return $this->renderables[$index];
    }
public function getPageByIndex($index)
    {
        if (!$this->hasPageWithIndex($index)) {
            throw new Exception(sprintf('There is no page with an index of %d', $index), 1329233627);
        }
        return $this->renderables[$index];
    }
public function getPageByIndex ( $ index ) { if ( ! $ this -> hasPageWithIndex ( $ index ) ) { throw new Exception ( sprintf ( 'There is no page with an index of %d' , $ index ) , 1329233627 ) ; } return $ this -> renderables [ $ index ] ; }
Get the page with the passed index. The first page has index zero.

If page at $index does not exist, an exception is thrown. @see hasPageWithIndex()

@param integer $index
@return Page the page, or NULL if none found.
@throws Exception if the specified index does not exist
@api
Get the page with the passed index . The first page has index zero .