But no tools/required directory and no required() being called from what I can tell. I'm sure I am missing something simple. Can someone please advise?
The physical directory for /index.php/tools/required would be ~/concrete/tools
Where as, /index.php/tools would be ~/tools with a condition that if the requested file doesn't exist try ~/concrete/tools
/index.php/tools/packages/PACKAGE_HANDLE/ would be ~packages/PACKAGE_HANDLE/tools ...and /index.php/tools/blocks/BLOCK_HANDLE/ could be either ~blocks/BLOCK_HANDLE/tools, ~concrete/blocks/BLOCK_HANDLE/tools, or ~packages/IRRELEVANT/blocks/BLOCK_HANDLE/tools
Basically the URI is a tool that automagically figures out the right physical location for your tool php file and loads it via the dispatcher, so the c5 API is still exposed.
If you were to request the file directly, the you wouldn't be able to use c5's API, and in most cases be denied outright thanks to this script: defined('C5_EXECUTE') or die("Access Denied.");
---thanks Isaac ( member: ijessup )
Code
Post Reply
Delete Post
You are allowed to delete your post for 5 minutes after it's posted.
Where as, /index.php/tools would be ~/tools with a condition that if the requested file doesn't exist try ~/concrete/tools
/index.php/tools/packages/PACKAGE_HANDLE/ would be ~packages/PACKAGE_HANDLE/tools ...and /index.php/tools/blocks/BLOCK_HANDLE/ could be either ~blocks/BLOCK_HANDLE/tools, ~concrete/blocks/BLOCK_HANDLE/tools, or ~packages/IRRELEVANT/blocks/BLOCK_HANDLE/tools
Basically the URI is a tool that automagically figures out the right physical location for your tool php file and loads it via the dispatcher, so the c5 API is still exposed.
If you were to request the file directly, the you wouldn't be able to use c5's API, and in most cases be denied outright thanks to this script: defined('C5_EXECUTE') or die("Access Denied.");
---thanks Isaac ( member: ijessup )