Example #1
0
 /**
  * Create a new page.
  *  Extend this method if standard Page class is not enough
  *
  * @return Page
  */
 public function createPage()
 {
     $page = new Page();
     // introduce $page variable for action
     $page->checkMultilingualSetup();
     // log the last viewed page in the Page object itself
     $page->add('lastPage', $this->getNextUrl());
     // Add assets that are common for all p-actions
     $page->addCommonAssets();
     // Add assets that are common for all p-actions of given module
     $page->addModuleAssets($this->moduleName);
     return $page;
 }