Custom php breakouts
PermalinkI need some custom php blocks to do some very specific things based on the page I'm on and perhaps the user that is logged in .
How can I say call up the current page title and the current user variables.
Is there some way to do a print_r($what goes in here);
do I need to do a traditional call to the database to obtain these.
If you can answer these questions I think you would accelerate development work ... Put em under Development FAQ
I'll try out the firePHP cool!
I am really interested in improvement in the document structure. It really needs like you say a development faq for each section and if possible very simple real world examples of the implementation.
As far as I can see a lot of new plugins could be born from people writing their own style of php solutions - then converting them to concrete plug-ins.
Therefore the marketing angle to get good development activity is to have simple simple simple examples of use with regular php code - not because they are novice code writers , but because it leads them to the right place to get started.
..Sorry I'm going on a bit ... thanks for the reply
What is the difference between the developer tutorials and the designer tutorials?
Thanks for helping!
Current page information:
http://www.concrete5.org/documentation/developers/pages/overview...
User information:
http://www.concrete5.org/documentation/developers/permissions/users...
You can always use print_r or var_dump, but alternatively, have a look at the logging:
http://www.concrete5.org/documentation/developers/system/logging...
Also, search the forums for FirePHP. I uploaded a helper somewhere that allows you to out variable etc into the firebug console which is sooo useful! I use it all the time.
All these pages and more under "Documentation" -> "Developers Guide" (Top right of this screen)
Hope that helps :)
Jon