Closed emilorol closed 9 years ago
Hi there,
There is certainly no reason you can't use the code from functions - I do it loads.
BUT i would not recommend using a global as you have done.
If you want, I can throw some code together as an alternative.
Tom
Hi Tom,
I would appreciated it tremendously as I am still wrapping my head around OOP and now namespaces and injections and everything else is still ahead of me.
Thank you,
Emil
Have you got any chance to put together some code?
Hi Emil,
I've not forgotten you! Been snowed under recently - but i will put a gist together for you ASAP.
Tom
Thank you Tom.
I have been dreaming of putting together some sort of CMS or expanding the Bolt CMS to use the datastore and I am sure your library will help me in my quest.
Hi there,
I've updated the php-gds-demo application to use some OO code, so you should be able to use that for reference
https://github.com/tomwalder/php-gds-demo
https://github.com/tomwalder/php-gds-demo/blob/master/src/GDS/Demo/Repository.php
Good luck!
Hi,
Thank you for this amazing code. I am struggling with something and that is use this code from inside a function. So far I have done something like:
But I am not getting any results. What am I missing or is this even possible?