Log message #4046816

# At Username Text
# Jun 30th 2017, 21:20 gutts for the Html->link helper, how do I pass the first argument (text) if I want to specify HTML? ( glyphicon span element )
# Jun 30th 2017, 19:00 royalty whatever tickles your giblets i'd say
# Jun 30th 2017, 18:53 flashios09 if a method return `$this`, what should i put in the `@return` doc block ? the full namespace or just **this** ?
# Jun 30th 2017, 18:49 flashios09 hi
# Jun 30th 2017, 18:47 savant https://github.com/FriendsOfCake/cakephp-upload/releases/tag/3.7.0
# Jun 30th 2017, 18:47 savant has quite a few other changes as well
# Jun 30th 2017, 18:47 savant 3.7.0
# Jun 30th 2017, 18:45 cpierce thank you sir!
# Jun 30th 2017, 18:28 savant @cpierce its been released
# Jun 30th 2017, 16:52 megan aaronc - great to have you on board! definitely interesting (and I think beneficial) feedback! :slightly_smiling_face: And happy to hear you will be doing some PR's which will help other users!
# Jun 30th 2017, 16:45 admad :+1:
# Jun 30th 2017, 16:38 aaronc But I didn't know they were derived from the PHP timezones. I googled "CakePHP timezones" and nothing came up. Django has them referenced in their docs, for example. My PR will probably just be "For valid timezones, refer to the PHP timezones here [link]".
# Jun 30th 2017, 16:36 admad Googling "php timezones" isn't too difficult
# Jun 30th 2017, 16:34 aaronc True, but a link to them would be nice since there already is an entire page for "bootstrap.php" configuration. If there is StackOverflow questions on the subject then things can be clarified. https://stackoverflow.com/questions/22625181/how-do-i-set-default-timezone-in-cakephp And that's not even up to date bc that config is no longer in core.php
# Jun 30th 2017, 16:30 admad Can't expect us to include php docs too in our manual
# Jun 30th 2017, 16:29 admad Well assuming someone using a PHP framework knows basic PHP isn't out of the ordinary.
# Jun 30th 2017, 16:22 aaronc Hmm... I'm gonna have a ton of pull requests in the docs for you guys soon. I'm using CakePHP for an internship, never used PHP before, so I'm finding tons of stuff you've left out on assumed knowledge. But thanks.
# Jun 30th 2017, 16:14 jeremyharris @aaronc http://php.net/manual/en/timezones.php
# Jun 30th 2017, 16:14 admad @aaronc php manual has a page for valid timezone identifiers
# Jun 30th 2017, 16:13 admad cakephp385: did you check your php version?
# Jun 30th 2017, 16:08 aaronc Is there a list of acceptable timezone abbreviations somewhere? Apparently 'PST' isn't a valid option.
# Jun 30th 2017, 16:06 cakephp835 getting error Parse error: syntax error, unexpected 'new' (T_NEW) in cake\libs\inflector.php on line 302
# Jun 30th 2017, 16:06 cakephp835 Any friend please help me I am new for cake
# Jun 30th 2017, 16:03 alexlambson @neon1024 I am going to try that. That makes it shorter and require less work
# Jun 30th 2017, 16:02 cakephp835 as I am very new for cake
# Jun 30th 2017, 16:01 cakephp835 please help me
# Jun 30th 2017, 16:01 cakephp835 Hi i am trying to setup a cake project to development....getting error Parse error: syntax error, unexpected 'new' (T_NEW) in cake\libs\inflector.php on line 302
# Jun 30th 2017, 16:00 neon1024 If it’s a pair you could use a single array `$role = ['role' => $int]` then `key($role)` and `$role[key($role)]` :thinking_face:
# Jun 30th 2017, 15:59 alexlambson `role` and `district` represent two different permissions tables. So I can't use objects. Basically, it says "grab the ID from the role table or the districts table." I think I'll do ``` $params = [ 'type' => 'role', 'id' => some int ]; $allowed_types = [ 'role' => 'RolesSchoolsUsers', 'district' => 'DistrictsUsers' ]; $this->{$params['type']}->get($params['id']); ```
# Jun 30th 2017, 15:54 neon1024 Perhaps it should be a role object?
# Jun 30th 2017, 15:54 jeremyharris you can use what David said or http://php.net/manual/en/function.array-search.php
# Jun 30th 2017, 15:53 alexlambson I might just give up and make 'role' the key and store something as the value. I'm getting hella #triggered by that numeric index
# Jun 30th 2017, 15:52 neon1024 Er, values ;P
# Jun 30th 2017, 15:52 neon1024 :slightly_smiling_face:
# Jun 30th 2017, 15:52 neon1024 Or isset(array_keys(
# Jun 30th 2017, 15:51 neon1024 Or maybe array_flip() ?
# Jun 30th 2017, 15:51 alexlambson PHP is numerically indexing the array, so isset() isn't working either. I'd have to loop and say if('role')
# Jun 30th 2017, 15:51 jeremyharris sorry, array_search
# Jun 30th 2017, 15:51 jeremyharris derp
# Jun 30th 2017, 15:51 neon1024 Perhaps I misunderstood
# Jun 30th 2017, 15:51 neon1024 https://3v4l.org/IAq7H