File modules/cms/action/page/PageSrcAction.class.php

Last commit: Sat Mar 19 00:24:33 2022 +0100	dankert	Fix: Using the correct PageContext for generating the page source.
1 <?php 2 namespace cms\action\page; 3 use cms\action\Method; 4 use cms\action\PageAction; 5 use cms\generator\PageContext; 6 use cms\generator\PageGenerator; 7 use cms\generator\Producer; 8 use cms\model\Project; 9 10 class PageSrcAction extends PageAction { 11 public function view() { 12 $project = new Project( $this->page->projectid ); 13 $this->setModelAndLanguage(); 14 15 $pageContext = $this->createPageContext( Producer::SCHEME_PUBLIC ); 16 $generator = new PageGenerator( $pageContext ); 17 18 $this->setTemplateVar('src',$generator->getCache()->get() ); 19 } 20 }
Download modules/cms/action/page/PageSrcAction.class.php
History Sat, 19 Mar 2022 00:24:33 +0100 dankert Fix: Using the correct PageContext for generating the page source. Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.