# |
Jul 23rd 2018, 13:32 |
flavius |
File uploaded https://cakesf.slack.com/files/U75U0UMR9/FBUFG0LTS/image.png / https://slack-files.com/T053DPNCM-FBUFG0LTS-003cb2bc8f - it was for real deprecated, my IDE was showing it so i've fixed it with getRequest(), dereuromark then came along and updated it as a soft deprecation :slightly_smiling_face: |
# |
Jul 23rd 2018, 13:31 |
admad |
child classes can use protected properties :slightly_smiling_face: |
# |
Jul 23rd 2018, 13:31 |
admad |
"The property will become protected" |
# |
Jul 23rd 2018, 13:31 |
flavius |
however, i believe there was one or two if not more releases with it being deprecated and my other IDE was going crazy so I've fixed that |
# |
Jul 23rd 2018, 13:30 |
flavius |
https://github.com/cakephp/cakephp/blame/1f51a72d4b85ab98e0a1dcc195d50565c847724e/src/Controller/Controller.php#L128 |
# |
Jul 23rd 2018, 13:30 |
flavius |
` * Deprecated 3.6.0: The property will become protected in 4.0.0. Use getRequest()/setRequest instead.` -- yeah, dereuro, you fixed that with a soft deprecation 3 months ago |
# |
Jul 23rd 2018, 13:28 |
flavius |
File uploaded https://cakesf.slack.com/files/U75U0UMR9/FBV32722F/image.png / https://slack-files.com/T053DPNCM-FBV32722F-c33045996a - yeah, and i've disabled the native php typehinting as well |
# |
Jul 23rd 2018, 13:28 |
admad |
@flavius have you installed the php intellisense plugin? |
# |
Jul 23rd 2018, 13:27 |
dereuromark |
he might not have latest code, it is fixed there to a soft deprecation |
# |
Jul 23rd 2018, 13:27 |
dereuromark |
for external use |
# |
Jul 23rd 2018, 13:27 |
admad |
it's made protected instead of public, not deprecated |
# |
Jul 23rd 2018, 13:27 |
dereuromark |
no |
# |
Jul 23rd 2018, 13:27 |
flavius |
`$this->request` was deprecated |
# |
Jul 23rd 2018, 13:26 |
styks1987 |
Their community page appears down too |
# |
Jul 23rd 2018, 13:26 |
dereuromark |
inside controller you shouldnt need getRequest() :slightly_smiling_face: |
# |
Jul 23rd 2018, 13:26 |
styks1987 |
Sorry this is off topic but I am at a loss where to find help on this. UPS test webservices appears to be down. I have no way to validate this outside of my connection. Does anyone know of a ups api status page? |
# |
Jul 23rd 2018, 13:25 |
flavius |
where's @admad pinging doctor @admad :P |
# |
Jul 23rd 2018, 13:24 |
flavius |
does VS code not cache anything? |
# |
Jul 23rd 2018, 13:24 |
flavius |
and everything is on a SSD |
# |
Jul 23rd 2018, 13:23 |
flavius |
4 seconds of loading to be exact |
# |
Jul 23rd 2018, 13:23 |
flavius |
you press ctrl + space and you're greeted with a "loading", how wonderful :P |
# |
Jul 23rd 2018, 13:22 |
flavius |
this feels sluggish |
# |
Jul 23rd 2018, 13:22 |
flavius |
my other IDE took it's sweet time to cache everything, sure i had to wait a bit to load the whole project but when it was ready everything was instant |
# |
Jul 23rd 2018, 13:21 |
flavius |
maybe there's a setting somewhere, however i'm a newb :slightly_smiling_face: |
# |
Jul 23rd 2018, 13:20 |
flavius |
and the loading is annoying me, it's not "instant" like i'm used to |
# |
Jul 23rd 2018, 13:20 |
flavius |
so now that works after trying it a second time |
# |
Jul 23rd 2018, 13:19 |
flavius |
File uploaded https://cakesf.slack.com/files/U75U0UMR9/FBUKW2QBT/image.png / https://slack-files.com/T053DPNCM-FBUKW2QBT-ba48a1b9b0 |
# |
Jul 23rd 2018, 13:17 |
dereuromark |
what code exist is still lacking? i am curious |
# |
Jul 23rd 2018, 13:16 |
flavius |
even with dereuromark's IDE helper |
# |
Jul 23rd 2018, 13:16 |
flavius |
@neon1024 so you haven't used it in any projects yet huh? im also trying it out but there's some code assist things that are lacking |
# |
Jul 23rd 2018, 13:15 |
flavius |
@dereuromark :slightly_smiling_face: |
# |
Jul 23rd 2018, 13:15 |
dereuromark |
I prefer components :slightly_smiling_face: |
# |
Jul 23rd 2018, 13:15 |
flavius |
you can have private functions that are helpers for those actions however |
# |
Jul 23rd 2018, 13:15 |
flavius |
public functions in controllers go to actions (URL) |
# |
Jul 23rd 2018, 13:14 |
flavius |
>> is this right ? yep |
# |
Jul 23rd 2018, 13:01 |
mr.mjsm |
File uploaded https://cakesf.slack.com/files/UBN7KUDRA/FBUKK0LGZ/-.php / https://slack-files.com/T053DPNCM-FBUKK0LGZ-9eaa362de6 - <@U75U0UMR9> ok i did it like this and it worked thanks. my question now. i wrote a method in my UserController to display the name. now i feel this is wrong, these type of method should be put in a helper. is this right ? so the controller should only have add edit delete index or actions that require a URL |
# |
Jul 23rd 2018, 12:34 |
neon1024 |
@flavius I gave VS Code a bit of a try out, but I haven’t used it properly for a whole day yet |
# |
Jul 23rd 2018, 12:33 |
dereuromark |
highstrike: dont tell them lies. tabs are superior. it is just that the psr people are 90s :slightly_smiling_face: and as such cake has to do that now. |
# |
Jul 23rd 2018, 12:22 |
mr.mjsm |
thanks |
# |
Jul 23rd 2018, 12:22 |
mr.mjsm |
ok i think i got it. will work on it |
# |
Jul 23rd 2018, 12:22 |
flavius |
you write your function in your custom helper and you call that function from your templates |