# |
Jan 2nd 2019, 15:53 |
k4t |
thx |
# |
Jan 2nd 2019, 15:48 |
jeremyharris |
Perhaps the request handler is taking over, if you have that enabled |
# |
Jan 2nd 2019, 15:46 |
itmpls |
yes |
# |
Jan 2nd 2019, 15:46 |
jeremyharris |
@itmpls are you returning the response? if so it should short circuit the view render process |
# |
Jan 2nd 2019, 15:45 |
jeremyharris |
you can check the awesome list for rest API plugins, they may have examples too: https://github.com/FriendsOfCake/awesome-cakephp#rest-and-api |
# |
Jan 2nd 2019, 15:44 |
jeremyharris |
@k4t there is one here, that I know of: https://github.com/gothinkster/cakephp-realworld-example-app |
# |
Jan 2nd 2019, 15:34 |
itmpls |
3.6.14 |
# |
Jan 2nd 2019, 15:34 |
itmpls |
anyone know why return $this->response->withType('json')->withBodyString(json_encode($data)); would trigger a render from a template 'json/blah.ctp' instead of directly returning that response? |
# |
Jan 2nd 2019, 15:08 |
k4t |
I would like to see example of such app based on REST API wirtten in Cake |
# |
Jan 2nd 2019, 15:08 |
k4t |
can you recommend any application written in CAKEPHP with REST API? |
# |
Jan 2nd 2019, 15:07 |
k4t |
hello |
# |
Jan 2nd 2019, 14:10 |
challgren |
Welp now I know! Thanks! |
# |
Jan 2nd 2019, 14:10 |
challgren |
Ohhh I missed the last part ;) |
# |
Jan 2nd 2019, 13:57 |
nayakvradhit |
Default Authcomponent.php file of cakephp 2.9 can be overidden?? With current working project of cakephp 2.2.1 Authcomponent.php Help me as I am new to cakephp |
# |
Jan 2nd 2019, 13:36 |
dereuromark |
I wrote you what I executed: `bin/cake upgrade fixture_casing /path/to/plugin/` |
# |
Jan 2nd 2019, 13:35 |
dereuromark |
thats not a plugin, thats an app :slightly_smiling_face: |
# |
Jan 2nd 2019, 12:25 |
challgren |
I was wondering how you ran Upgrade on Tools |
# |
Jan 2nd 2019, 12:24 |
challgren |
Ohh ok |
# |
Jan 2nd 2019, 11:53 |
dereuromark |
you dont, you include the plugin into an app and run it from there |
# |
Jan 2nd 2019, 11:26 |
challgren |
yeah |
# |
Jan 2nd 2019, 11:04 |
kitcat711 |
using a Shell command? |
# |
Jan 2nd 2019, 11:04 |
challgren |
How would I run the bin/cake under a plugin I’m developing? |
# |
Jan 2nd 2019, 11:02 |
kitcat711 |
I think that working alone on this may lead me to some error: who would be willing to give hand - and some time - to help me on that? |
# |
Jan 2nd 2019, 11:01 |
kitcat711 |
As I run accros the artfact_relationships, I need to stop adding rows when some conditions are true. My main issue is that for the current row, the condition depends about row(n-1) |
# |
Jan 2nd 2019, 11:01 |
kitcat711 |
The process is modelised trhough a table artefact_realtionships |
# |
Jan 2nd 2019, 11:01 |
kitcat711 |
have already designed the process, using BPMN artefacts, and create the MySQL Table for the artefacts |
# |
Jan 2nd 2019, 11:01 |
kitcat711 |
Just ended a course on mysql, and facing both a modelisation / query situation: I intend to modelize a process (not in the IT definition, I am here referencing to a high level functional job definition, like “how to manage the depart of a estate contrat holder?“) |
# |
Jan 2nd 2019, 10:33 |
kitcat711 |
Good morning everyone! |
# |
Jan 2nd 2019, 09:27 |
challgren |
Stupid immutability |
# |
Jan 2nd 2019, 09:27 |
challgren |
Didn’t think of the clone cost |
# |
Jan 2nd 2019, 09:27 |
challgren |
I’ll continue to work on that dont merge please |
# |
Jan 2nd 2019, 09:26 |
challgren |
Thats probably smart since withData is expensive |
# |
Jan 2nd 2019, 09:26 |
challgren |
I could add a check to check if the data is dirty |
# |
Jan 2nd 2019, 09:26 |
dereuromark |
that keeps the behavior intact/lean as it was before |
# |
Jan 2nd 2019, 09:26 |
dereuromark |
ok, but then only do withData() if data actually changed, otherwise dont do that call :slightly_smiling_face: |
# |
Jan 2nd 2019, 09:25 |
dereuromark |
I never liked the immutability for request and response as per psr, overkill in these cases, and we have now more trouble than benefits with that. |
# |
Jan 2nd 2019, 09:25 |
challgren |
Thats why Im thinking its no longer possible to do it in the Controller |
# |
Jan 2nd 2019, 09:25 |
challgren |
I dont see how I can’t |
# |
Jan 2nd 2019, 09:24 |
dereuromark |
please dont^^ It should have one final withData() call if possible :slightly_smiling_face: every with is very expensive using immutable (fresh object creation) |
# |
Jan 2nd 2019, 09:14 |
challgren |
I was being overly paranoid |
# |
Jan 2nd 2019, 09:13 |
challgren |
Flatten the getData() then iterate through it and set the $request->withData($k, $v) |