PfSense Developer Shell - $config always seems to be empty?
-
Every time I try to use the developer shell, $config appears to be empty. I've even tried examples straight from the help.
echo $config; exec
print_r($config); exec
parse_config(true); print_r($config); exec
All of these output nothing. I've tried it on several 2.0 machines, embedded, full installs, etc. I just tried it on 1.2.3 and I got the same thing. I must be doing something wrong, or missing something. I get the feeling that I'm going to feel really dumb when I find out why this isn't working..
-
I figured it out by looking at one of the pre-recorded macros.
global $config;
This isn't in the help or documentation anywhere.. I guess I'm the only person who ever got tripped up on it though!