# |
Jul 19th 2017, 18:19 |
dereuromark |
or use your own CustomAjax view class :slightly_smiling_face: That would then skip this magic |
# |
Jul 19th 2017, 18:19 |
dereuromark |
https://github.com/cakephp/cakephp/blob/master/src/Controller/Component/RequestHandlerComponent.php#L584-L596 |
# |
Jul 19th 2017, 18:18 |
heter |
@dereuromark can u give me some more details or some proper link to docs? :P |
# |
Jul 19th 2017, 18:17 |
dereuromark |
overwrite wha the request handler puts in :slightly_smiling_face: |
# |
Jul 19th 2017, 18:15 |
heter |
hi there, how can i prevent cake to use "ajax" folder for views when im doing ajax requests? i need to use templates right from its template directory |
# |
Jul 19th 2017, 18:13 |
inoas |
I cant imagine lorenzo being happy with setWhere() ;P |
# |
Jul 19th 2017, 18:12 |
inoas |
(if it stores state) |
# |
Jul 19th 2017, 18:12 |
inoas |
and in future decide if a class is a builder or a read/write object |
# |
Jul 19th 2017, 18:12 |
inoas |
just strip all the set from UrlOptions |
# |
Jul 19th 2017, 18:01 |
dereuromark |
Sounds very theoretical, would love to see a concrete implementation to try out how it feels :slightly_smiling_face: |
# |
Jul 19th 2017, 18:00 |
inoas |
where would you think this is bad @ dereuromark https://github.com/cakephp/cakephp/pull/10887#issuecomment-316465007 |
# |
Jul 19th 2017, 17:59 |
inoas |
(but as long as it is non destructive I'd autodetect, convention out of the box, and make it overwritable) |
# |
Jul 19th 2017, 17:59 |
inoas |
I am not using Ides so I have to first understand what you do ;p |
# |
Jul 19th 2017, 17:58 |
dereuromark |
Would you rather have it by default for all, or with a small config to set them as whitelist? |
# |
Jul 19th 2017, 17:57 |
inoas |
Admin, Backend, Web, Frontend, Api, Service? |
# |
Jul 19th 2017, 17:57 |
inoas |
and sometimes Api |
# |
Jul 19th 2017, 17:56 |
inoas |
we use Admin and Frontend |
# |
Jul 19th 2017, 17:56 |
dereuromark |
I never used anything else than "Admin" to be honest, not sure what others of the community do |
# |
Jul 19th 2017, 17:55 |
dereuromark |
Anyone else some feedback on https://github.com/dereuromark/cakephp-ide-helper/pull/28 ? What strategy would be best? |
# |
Jul 19th 2017, 17:50 |
inoas |
https://github.com/cakephp/cakephp/pull/10887#issuecomment-316465007 |
# |
Jul 19th 2017, 17:45 |
inoas |
$options or orm building => all functions are setters, if you want to get things prefix with get*() |
# |
Jul 19th 2017, 17:44 |
inoas |
those objects that are mostly set and consumed (builders) and those that are heavily read and written (like say request/response...) |
# |
Jul 19th 2017, 17:44 |
inoas |
jeremyharris what would you think of splitting the core's getter/setter "metaphor" into two classes |
# |
Jul 19th 2017, 17:44 |
styks1987 |
In a controller I instantiate a library. I want to mock this library. I want to create a private function for _getMyLibrary in the controller so I can override it in my test, but mocking private methods is messy… If I make it a public method then I have to deny access to it via a request… Any good ideas on how to call libraries in controllers while being able to mock them out? Are either of the methods mentioned above preferred? |
# |
Jul 19th 2017, 17:31 |
genellern |
Don't remember |
# |
Jul 19th 2017, 17:31 |
genellern |
Or was it cake1.3 |
# |
Jul 19th 2017, 17:31 |
genellern |
I don't remember pretty well, but I think you can change the driver to use Mysqli in 'datasource' => 'Database/Mysql', |
# |
Jul 19th 2017, 17:21 |
jarard |
if anyone wants to earn some SO credit: https://stackoverflow.com/questions/45196560/cakephp-console-cron-database-connection-error |
# |
Jul 19th 2017, 17:02 |
NickBusey |
deleted all that stuff from app.php, in bootstrap.php: Log::config('default', ['engine' => 'Console']); |
# |
Jul 19th 2017, 17:01 |
NickBusey |
got it |
# |
Jul 19th 2017, 16:58 |
NickBusey |
tried this: https://pastebin.com/raw/pgnDbvk7 no luck |
# |
Jul 19th 2017, 16:55 |
NickBusey |
k thanks, I'll give it a shot |
# |
Jul 19th 2017, 16:55 |
cleptric |
This works for me when using dokku which is based on docker |
# |
Jul 19th 2017, 16:53 |
NickBusey |
hmm, console://logs, not php://stdout ? |
# |
Jul 19th 2017, 16:52 |
cleptric |
error log url: console://logs?levels[]=warningandlevels[]=errorandlevels[]=criticalandlevels[]=alertandlevels[]=emergencyandfile=error |
# |
Jul 19th 2017, 16:48 |
cleptric |
You have to set the log_url in your app.php |
# |
Jul 19th 2017, 16:43 |
NickBusey |
Has anyone had any luck with getting cake3 log output through to the docker logs? Can't seem to get it piped out |
# |
Jul 19th 2017, 16:24 |
admad |
Okay, sorry can't offer any help. Just that i too had got such random 403's a while back. But we already had a server switch planned so never got to the bottom of it |
# |
Jul 19th 2017, 16:23 |
r3zam |
slackebot: nope ... |
# |
Jul 19th 2017, 16:22 |
admad |
Was apache / its settings updated recently by any chance? |
# |
Jul 19th 2017, 16:22 |
r3zam |
slackebot: yup |