# |
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.. |
# |
Jul 11th 2019, 18:34 |
yamcomnet |
?? |
# |
Jul 11th 2019, 18:34 |
yamcomnet |
are empty. but i can see at fiddler that that data is being set correctly |
# |
Jul 11th 2019, 18:34 |
yamcomnet |
for some reason: both debug($this->request->getData()); debug($this->request->data); |
# |
Jul 11th 2019, 18:33 |
yamcomnet |
Sending request but cannot read DATA it at controller? |
# |
Jul 11th 2019, 16:23 |
admad |
@neon1024 :tada: |
# |
Jul 11th 2019, 14:31 |
slackebot |
and add the path there first. |
# |
Jul 11th 2019, 14:31 |
jeremy.payne |
Checking to make sure I'm not re-inventing the wheel or making this unnecessarily complex. I building a multi-tenant app and want that, when rendering `Template/home.ctp`, if there is a `Template/Tenant/{id}/home.ctp`, it should use that instead. This should do the same for in views when rendering with `<?=$this->element()?>`. If overriding my project's `src\View\AppView` the way to go? Looks like I could hook into the `_paths()` method |
# |
Jul 11th 2019, 13:54 |
neon1024 |
I didn’t find it unfortunatly, so I’ve resorted to changing the config value to have a skip config option which sets the state back to false and returns the query |
# |
Jul 11th 2019, 13:21 |
admad |
@neon1024 all options |
# |
Jul 11th 2019, 12:25 |
neon1024 |
Almost like `$this->Examples->find('all', ['behaviors' => ['Timestamp' => false]])` or something |
# |
Jul 11th 2019, 12:24 |
neon1024 |
I want to be able to run an ORM query, and pass an option to disable a behaviour |
# |
Jul 11th 2019, 12:21 |
neon1024 |
With `beforeFind` are the options passed to it from the find() ? |
# |
Jul 11th 2019, 11:57 |
neon1024 |
Yeah |
# |
Jul 11th 2019, 11:55 |
neon1024 |
Ah, I bet it’s that pesky behaviour! |
# |
Jul 11th 2019, 11:54 |
neon1024 |
Seems to be doing a transaction with a huge UNION query and then rollsback |
# |
Jul 11th 2019, 11:50 |
neon1024 |
I am failing to create a new record using my add method. The resulting entity had no errors, and the associated data is being marshalled correctly, I’m a bit out of ideas on what else to check |
# |
Jul 11th 2019, 11:47 |
roel |
Hello everyone, I was wondering if there is a way to trigger a cli command with Cakephp Commands, like: I have a cronjob that triggers a cakephp command every hour. If this command find some data in the database, it needs to trigger a nodejs script. Thanks in advance |
# |
Jul 11th 2019, 11:26 |
admad |
Yup it has makings of a good match |
# |
Jul 11th 2019, 11:16 |
neon1024 |
But we’ll see, it’s exciting! :slightly_smiling_face: |