Sorry for the question, but you have to start somewhere. I’m starting to pick apart and learn extensions. This is really 2 questions:
I’m seeing this sort of thing a lot: $PREFS->ini(‘site_url’, TRUE), or $PREFS->core_ini[“site_url”], which I sort of get, but is there a complete list of those somewhere? The $PREFS? It may be too early in the a.m. of something.
And somewhat related, how do I get and refer to the name of the System folder when I’m in an extension? For example, there is this line:
'script_url' => $PREFS->ini('site_url', TRUE).'folder1/folder/file.js'
resulting in http://www.site.com/folder1/folder/file.js
If I wanted to put that in the System Folder, how could I reference it? I’m assuming it is something like:
'script_url' => $PREFS->ini('system_folder', TRUE).'folder1/folder/file.js'
resulting in http://www.site.com/system/folder1/folder/file.js
Thanks for helping me get started with this under-the-hood stuff!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.