0 users online. Create an account or sign in to join them.Users

Search

In a custom datasource, I try to access the environment variables. Using the accessor function Frontend::instance()->Env() I get nothing (as in: nada). Using $this->_env works fine though.

Can anybody tell me why the accessor function doesn't work? (Symphony 2.2.5)

Try Frontend::instance()->Page()->Env()

My bad. Thanks!

BTW, should I prefer Frontend::instance() or Symphony::Engine()?

Page()->Env() doesn't exist in a backend context, so Frontend::instance() is the correct usage :)

Ah, thanks!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details