CampTemplate::context PHP Méthode

context() public méthode

Returns the template context object.
public context ( ) : CampContext
Résultat CampContext object
    public function context()
    {
        if (!isset($this->m_context)) {
            $this->refreshContext();
        }
        return $this->m_context;
    }

Usage Example

 public function __construct(ThemesService $themesService)
 {
     $this->smarty = \CampTemplate::singleton();
     $this->smarty->assign('gimme', $this->smarty->context());
     $this->themesService = $themesService;
     $this->preconfigureSmarty();
 }
All Usage Examples Of CampTemplate::context