# |
Aug 28th 2019, 14:30 |
ricksaccous |
I'm still trying to use cake form validation throughout the whole form so I pretty much have a lot of buttons that do not act as submit buttons throughout and are all controlled by jquery submit event |
# |
Aug 28th 2019, 14:29 |
ricksaccous |
in case i run into something like this again, but hopefully i have enough time to change this all up |
# |
Aug 28th 2019, 14:29 |
ricksaccous |
i see i suppose i might have to learn it in my spare time |
# |
Aug 28th 2019, 14:29 |
neon1024 |
Yeah, sounds like Vue would be helpful for that |
# |
Aug 28th 2019, 14:29 |
ricksaccous |
you select a hospital, it determines case contacts, it determines services available, it determines what fields show/hide etc |
# |
Aug 28th 2019, 14:29 |
neon1024 |
I’m building a dynamic form builder with add and remove fields, drag and drop, all that jazz |
# |
Aug 28th 2019, 14:28 |
ricksaccous |
basically one selection affects many |
# |
Aug 28th 2019, 14:28 |
neon1024 |
Although I agree with @admad if you want to pull data and do lots of JS things to it, it’s a big help |
# |
Aug 28th 2019, 14:28 |
ricksaccous |
i'm doing a lot throughout the page |
# |
Aug 28th 2019, 14:28 |
admad |
*your |
# |
Aug 28th 2019, 14:28 |
ricksaccous |
yeah, I'll have to talk with the team about it and they probably won't be too enthusiastic about it, we'll see |
# |
Aug 28th 2019, 14:28 |
admad |
if you js is pulling json then more so |
# |
Aug 28th 2019, 14:28 |
neon1024 |
@ricksaccous It depends how much data and dom manipulation you’re dong I’d say |
# |
Aug 28th 2019, 14:27 |
admad |
@ricksaccous i would |
# |
Aug 28th 2019, 14:27 |
admad |
sometimes having one defacto tools instead of choices is also good |
# |
Aug 28th 2019, 14:27 |
ricksaccous |
at this point i'm not sure i have a choice since i pretty much got one portion done |
# |
Aug 28th 2019, 14:27 |
ricksaccous |
@neon1024 i have a page that's heavy in jQuery with a lot of ajax calls, would you recommend learning vue and refactoring? |
# |
Aug 28th 2019, 14:26 |
admad |
:slightly_smiling_face: |
# |
Aug 28th 2019, 14:26 |
neon1024 |
Been doing Vue.js last week and so far this week, so mostly ES Lint |
# |
Aug 28th 2019, 14:26 |
neon1024 |
Yes, I read the github page, but that was as far as i got with it |
# |
Aug 28th 2019, 14:25 |
admad |
@neon1024 you need more psalm in your life |
# |
Aug 28th 2019, 14:25 |
ricksaccous |
on CakePHP as it is in Laravel, Amen |
# |
Aug 28th 2019, 14:24 |
neon1024 |
Forgive us our daily bugs, and deliver us from PHP Stan |
# |
Aug 28th 2019, 14:24 |
admad |
@neon1024 true. things were simpler in the old days, you could just label it as mental disorder :P |
# |
Aug 28th 2019, 14:24 |
koeller |
typo ^^ |
# |
Aug 28th 2019, 14:24 |
neon1024 |
Hallowed be thy docblocks |
# |
Aug 28th 2019, 14:24 |
koeller |
:P |
# |
Aug 28th 2019, 14:24 |
ricksaccous |
forever shall you use your IdeHelper powers for good and not evil |
# |
Aug 28th 2019, 14:23 |
neon1024 |
It’s the modern way @admad |
# |
Aug 28th 2019, 14:23 |
ricksaccous |
@koeller oh IdeHelper please aid us in our IDE usage, hint at the correct syntax |
# |
Aug 28th 2019, 14:23 |
ricksaccous |
he can identify as both, there are no limitations |
# |
Aug 28th 2019, 14:22 |
admad |
i thought he's Sebastian |
# |
Aug 28th 2019, 14:21 |
ricksaccous |
you are indeed IdeHelper |
# |
Aug 28th 2019, 14:20 |
koeller |
Ah ok, I see. Thank you. I’m IdeHelper |
# |
Aug 28th 2019, 14:19 |
dereuromark |
Or you could easily make it added to https://github.com/dereuromark/cakephp-sandbox/blob/master/.phpstorm.meta.php/.ide-helper.meta.php#L147-L149 => that is if you use an ide that can understand such meta files. |
# |
Aug 28th 2019, 14:15 |
dereuromark |
Also note that they become auto-discoverable and type-autocomplete for any find() call if you use IdeHelper to create IDE autocomplete file :slightly_smiling_face: |
# |
Aug 28th 2019, 14:14 |
dereuromark |
I think he means the custom finders they can expose: https://github.com/dereuromark/cakephp-geo/blob/master/src/Model/Behavior/GeocoderBehavior.php#L57-L59 |
# |
Aug 28th 2019, 14:14 |
ricksaccous |
that's a good example |
# |
Aug 28th 2019, 14:14 |
ricksaccous |
yeah |
# |
Aug 28th 2019, 14:13 |
koeller |
You talk about the GeocodeBehavior, @ricksaccous? |
# |
Aug 28th 2019, 14:12 |
ricksaccous |
it's pretty neat |