# |
Jul 12th 2019, 08:30 |
challgren |
Haha |
# |
Jul 12th 2019, 08:27 |
admad |
shouldn't you keep your sex life private? |
# |
Jul 12th 2019, 08:18 |
challgren |
Another night in Kotlin |
# |
Jul 12th 2019, 07:28 |
neon1024 |
Morning all :wave: |
# |
Jul 11th 2019, 22:13 |
ricksaccous |
and always specify the optional as 0 where necessary |
# |
Jul 11th 2019, 22:13 |
ricksaccous |
I'm just going to use 0 as my special string key |
# |
Jul 11th 2019, 22:12 |
ricksaccous |
how annoying |
# |
Jul 11th 2019, 22:12 |
ricksaccous |
actually in my "fix" it still is putting that portion of it as part of the GET request |
# |
Jul 11th 2019, 22:11 |
ricksaccous |
if you had optional args i suppose you could just specify them as null though or some weird string key if you had to |
# |
Jul 11th 2019, 22:10 |
ricksaccous |
so i did /edit/:company_id/:hospital_id/* |
# |
Jul 11th 2019, 22:10 |
ricksaccous |
so i have two args that i need for sure and one optional |
# |
Jul 11th 2019, 22:10 |
ricksaccous |
even if you do */* it does 3/3 |
# |
Jul 11th 2019, 22:10 |
ricksaccous |
for some reason * instead of being allowed to do whatever, it's translating to argument 0 |
# |
Jul 11th 2019, 22:09 |
ricksaccous |
yeah I got it working |
# |
Jul 11th 2019, 22:08 |
ricksaccous |
heh |
# |
Jul 11th 2019, 22:08 |
ricksaccous |
that matters |
# |
Jul 11th 2019, 22:07 |
ricksaccous |
yeah |
# |
Jul 11th 2019, 22:00 |
ricksaccous |
not sure if that matters |
# |
Jul 11th 2019, 22:00 |
slackebot |
<ricksaccous> |
# |
Jul 11th 2019, 21:59 |
challgren |
Ohh nm misunderstood |
# |
Jul 11th 2019, 21:59 |
ricksaccous |
i just want /3/20 |
# |
Jul 11th 2019, 21:58 |
ricksaccous |
i don't want that though |
# |
Jul 11th 2019, 21:58 |
challgren |
You need an ‘id’ => $hospitalEntity->id |
# |
Jul 11th 2019, 21:57 |
slackebot |
<ricksaccous> |
# |
Jul 11th 2019, 21:55 |
ricksaccous |
the second param is being treated like a get param even though i'm not specifying it as one |
# |
Jul 11th 2019, 21:55 |
ricksaccous |
url |
# |
Jul 11th 2019, 21:55 |
ricksaccous |
when i'm building a rul |
# |
Jul 11th 2019, 20:14 |
ricksaccous |
i always just use $.ajax |
# |
Jul 11th 2019, 20:14 |
ricksaccous |
yeah i'm not too familiar with fetch |
# |
Jul 11th 2019, 20:14 |
yamcomnet |
body: JSON.stringify( { licenseType: 'license_type', quantity: 5 }), |
# |
Jul 11th 2019, 20:14 |
yamcomnet |
and fetch: |
# |
Jul 11th 2019, 20:14 |
yamcomnet |
thats how i read it |
# |
Jul 11th 2019, 20:14 |
yamcomnet |
$jsonData = $this->request->input('json_decode'); |
# |
Jul 11th 2019, 20:13 |
yamcomnet |
almost crazy :) |
# |
Jul 11th 2019, 20:13 |
yamcomnet |
i got it |
# |
Jul 11th 2019, 19:29 |
ricksaccous |
@yamcomnet did you figure it out? lol |
# |
Jul 11th 2019, 19:29 |
ricksaccous |
rather than $this->request->data |
# |
Jul 11th 2019, 19:28 |
ricksaccous |
when you spit out $_POST |
# |
Jul 11th 2019, 19:28 |
ricksaccous |
do you get anything |
# |
Jul 11th 2019, 18:34 |
yamcomnet |
pls, help me out |
# |
Jul 11th 2019, 18:34 |
yamcomnet |
drives me crazy.. |