예제 #1
0
 public function __construct()
 {
     parent::__construct();
     $self = $this;
     $this->add(new Link('home', function () use($self) {
         $self->setPage(HomePage::getIdentifier());
     }));
     $files = array('index.php', 'assets/AbstractPage.php', 'assets/AbstractPage.html', 'assets/SamplePageClassAuthorisationStrategy.php');
     $files = array_merge($files, $this->getInvolvedFiles());
     $sourceLink = new Link('source', function () use($self, $files) {
         $self->setPage(new SourcePage($files));
     });
     $sourceLink->setPopupSettings(new PopupSettings('Source Code', '900px', '600px'));
     $this->add($sourceLink);
 }
예제 #2
0
파일: SourcePage.php 프로젝트: picon/sample
 public function renderHead(HeaderResponse $headerResponse)
 {
     parent::renderHead($headerResponse);
     $headerResponse->renderCSSFile('css/source.css');
 }