a:2:{i:0;a:1:{s:4:"data";a:1:{s:7:"entries";a:1:{i:0;a:7:{s:2:"id";s:2:"69";s:5:"title";s:40:"ExpressionEngine Config Variables Plugin";s:11:"displayDate";s:10:"02.15.2011";s:13:"attributeDate";s:10:"2011-02-15";s:4:"body";s:1148:"
As I was in the process of moving this site into Git and having a local version, I have been trying to move as many paths as possible into the config.php. One of them included the cache path for image sizer. Since the local and production paths are different, I wanted some way for them to be dynamic. In my config.php file, I am using $_SERVER['DOCUMENT_ROOT'] to set the base_path. I could have enabled PHP in the template and then use the $_SERVER['DOCUMENT_ROOT'], but that seemed like a silly reason to enable PHP.
So I made a plugin that gives you access to everything in the $config array without having to use PHP.
{exp:config:vars value="base_path"}
To see all possible values, just pass in “all”:
{exp:config:vars value="all"}
You can download from GitHub or Devot-ee. As always, let me know if you run into any issues.
";s:13:"numberOfLikes";N;s:10:"bodyBlocks";a:0:{}}}}}i:1;O:25:"yii\caching\TagDependency":3:{s:4:"tags";a:4:{i:0;s:7:"element";i:1;s:29:"element::craft\elements\Entry";i:2;s:40:"element::craft\elements\Entry::section:4";i:3;s:7:"graphql";}s:4:"data";a:4:{s:40:"CraftCMSce35088bdfe0816226cd17fd051a4803";s:21:"0.70573500 1736501960";s:40:"CraftCMS2743a789e8993267a348eee1ee7e4450";s:21:"0.67537500 1713205687";s:40:"CraftCMS2ac34726f299f7e18e449d8e536c67f8";s:21:"0.84529700 1741778847";s:40:"CraftCMS3817d4a648fcfac939af46605323feb0";s:21:"0.36746500 1735923287";}s:8:"reusable";b:0;}}