Quote from: OpenGeek at Jun 03, 2007, 12:07 PM
$modx->config[’base_path’] is definitely not gone; it is one of the most used variables in the configuration! However, you could also use the new constants...
MODX_BASE_PATH
MODX_BASE_URL
...but it seems to me that you are just not getting access to the MODx variable ($modx) for some reason.
Agreed. Other snippets that use $modx are working ok but it doesn’t seem to be available in this one.
The file with the unresponsive code (myfile.php) is reached this way:
<form action="[(base_url)]assets/snippets/myfile/myfile.php" method="post">
so it looks like base_url is available there, but I can’t seem to access $modx from the page it triggers.
Bob Ray, Official MODx weirdness magnet