How to get to the page content in PHP?

Hello,

I would like to append page content in PHP by:

$page = $this->grav[‘pages’]->get(’’);

$content = $page->getRawContent();

// Prepend the output with the custom text and set back on the page
$page->setRawContent($content . "

Some text");

but I am not able to get specific page. Any help/hint?

Vlada

See reply in Gitter. Pages::get() requires the full page path. Page::find() accepts a route.

Thanks, get() works with full system path!