neotoxic Posted May 22, 2011 Posted May 22, 2011 I am really sorry if I am just missing something, but I can't find a page where the $config object is documented. Would have thought it would be here http://processwire.com/api/variables/ perhaps? I was specifically interested in knowing what URLs were made available under $config->urls
ryan Posted May 22, 2011 Posted May 22, 2011 You are right, I still need to add this to the documentation. I will make that the next item added, this week. Here is some code you can add to your template (temporarily) to make it show all the URLs available for access from $config->urls: <?php foreach($config->urls as $key => $value) { echo $key . ": " . $config->urls->$key . "<br />"; }
ryan Posted May 24, 2011 Posted May 24, 2011 The $config API documentation has been posted here: http://processwire.com/api/variables/config/
neotoxic Posted May 26, 2011 Author Posted May 26, 2011 I am sorry for not replying sooner, I have been out of the office and my iPad doesn't seem to like this forum much. Thank you very much for adding the documentation Ryan, its very much appreciated. I have been spreading the word about ProcessWire to a number of UK business and there is a fair bit of interest. Great to see such a worth while project get more attention. Thanks again,
ryan Posted May 26, 2011 Posted May 26, 2011 Thanks for spreading the word! Glad to hear there is some interest.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now