context() public method

Returns the template context object.
public context ( ) : CampContext
return CampContext object
Esempio n. 1
0
 public function __construct(ThemesService $themesService)
 {
     $this->smarty = \CampTemplate::singleton();
     $this->smarty->assign('gimme', $this->smarty->context());
     $this->themesService = $themesService;
     $this->preconfigureSmarty();
 }
Esempio n. 2
0
 public function __construct(ThemesService $themesService, PublicationService $publicationService)
 {
     $this->smarty = \CampTemplate::singleton();
     $this->smarty->assign('gimme', $this->smarty->context());
     $this->themesService = $themesService;
     $this->publicationService = $publicationService;
     $this->originalVector = $this->smarty->campsiteVector;
     $this->preconfigureSmarty();
 }