# |
Aug 26th 2019, 13:06 |
davorminchorov |
Yeah, something similar to Laravel's Form Request classes and the rules you apply before the request hits the controller method |
# |
Aug 26th 2019, 13:06 |
hmic |
but you would not do that for add/edit only, probably. it's usefull for every request |
# |
Aug 26th 2019, 13:05 |
davorminchorov |
yeah |
# |
Aug 26th 2019, 13:05 |
davorminchorov |
which can be controlled separately |
# |
Aug 26th 2019, 13:05 |
hmic |
so you define valid requests upfront, maybe per action. cool thing! |
# |
Aug 26th 2019, 13:05 |
davorminchorov |
validation that happens before the save / update occurs |
# |
Aug 26th 2019, 13:05 |
hmic |
nice idea. like an application level firewall |
# |
Aug 26th 2019, 13:04 |
admad |
what do you mean by request validation? |
# |
Aug 26th 2019, 13:01 |
davorminchorov |
Hi, is there request validation in CakePHP 3.8? I can only see model validation in the docs |
# |
Aug 26th 2019, 11:47 |
alexdd55976 |
one work day in the trash |
# |
Aug 26th 2019, 11:47 |
alexdd55976 |
last week i spend a whole day trying to authenticate against LDAP/AD ... today i got a message, that the auth is not available to users due to special rights |
# |
Aug 26th 2019, 11:01 |
martin |
I think webservice is easier? most of the orm already support it? just implement it in the webservice driver I think |
# |
Aug 26th 2019, 10:19 |
challgren |
Ok so heres a question for yall. QBO has a webservice XML and JSON, to access this webservice the “queries” are a modified variant of SQL. Would it be better to write a ORM Driver or Build off of https://github.com/UseMuffin/Webservice |
# |
Aug 26th 2019, 09:37 |
challgren |
And https://github.com/cakephp/cakephp/blob/master/src/Http/Session.php#L36 |
# |
Aug 26th 2019, 09:36 |
challgren |
https://github.com/cakephp/cakephp/blob/master/src/Http/ServerRequest.php#L323 |
# |
Aug 26th 2019, 09:28 |
awime |
Does anyone know where Cake opens and closes sessions. I seem to have some weird session locking issues |
# |
Aug 26th 2019, 09:28 |
awime |
hi |
# |
Aug 26th 2019, 08:36 |
conehead |
Or extend a custom Table |
# |
Aug 26th 2019, 08:36 |
conehead |
Why would you need it in core? I cannot see a general use case for this. Just create a trait and use it where needed |
# |
Aug 26th 2019, 08:13 |
marek.sebera |
could striping entity assoc properties be included in core? this is what i came up with instead https://gist.github.com/smarek/4eb45ff9abc64627dcf6d42301d3ebef |
# |
Aug 26th 2019, 07:31 |
conehead |
@ashish_onmobile I think GET is not affected by cors |
# |
Aug 26th 2019, 07:14 |
ashish_onmobile |
GET is working for port number :4200 but POST , PUT not working |
# |
Aug 26th 2019, 07:13 |
ashish_onmobile |
public function beforeFilter(Event $event) { parent::beforeFilter($event); $this->response= $this->response->cors($this->request) ->allowOrigin([‘*’]) ->allowMethods([‘GET’, ‘POST’,‘PUT’,‘OPTIONS’]) ->allowHeaders([‘X-CSRF-Token’]) ->allowCredentials() ->exposeHeaders([‘Link’]) ->maxAge(300) ->build(); |
# |
Aug 26th 2019, 07:13 |
ashish_onmobile |
I have added below code in AppController.php |
# |
Aug 26th 2019, 07:13 |
ashish_onmobile |
my code is running at http://localhost:4200 and the api is running at http://localhost:80 |
# |
Aug 26th 2019, 07:13 |
ashish_onmobile |
I am facing CORS problem. |
# |
Aug 26th 2019, 07:12 |
ashish_onmobile |
Hi guys I am working on one angular project and implemented my rest api. |
# |
Aug 26th 2019, 06:59 |
jh |
SQL BINARY LIKE |
# |
Aug 26th 2019, 06:59 |
jh |
is there an easy way to teach cakephp to use BINARY LIKE instead of LIKE ? |
# |
Aug 26th 2019, 06:53 |
conehead |
Good morning and a good start into the new week ;) |
# |
Aug 26th 2019, 06:53 |
alexdd55976 |
morning dudes and duderinos |
# |
Aug 26th 2019, 04:36 |
conehead |
@rchavik I tried to use a foreign key for uuids and ints as well. Just scroll a little up and you can see it. I just had massive problems when using pagination with it (or sorting by this entity). Even just loading a single entity most of the times caused a timeout. From my personal experience I would not strongly advise not to do the same mistake. Go for a second key or switch to int |
# |
Aug 26th 2019, 01:00 |
waspinator |
when would you use `TableLocator::get()` vs `loadModel()` |
# |
Aug 25th 2019, 15:28 |
dereuromark |
yes it is. should be documented. also queue plugin etc use this custom logging scope. |
# |
Aug 25th 2019, 15:19 |
alexdd55976 |
when i remember right, there was a way in 2.x to create a log file which is not error.log or debug.log and you could give it an own name… is the functionallity still available? can not remember how this worked |
# |
Aug 25th 2019, 07:40 |
bgrinter |
@neon1024 @spriz http://www.theshovel.com.au/2019/08/22/australia-offers-to-sell-new-zealand-to-us-%EF%BB%BF/` |
# |
Aug 25th 2019, 02:27 |
brett |
We are using both the deprecated AuthComponent as well as the Authentication plugin. I ended up just unloading the Auth component if the route prefix was the incorrect one. |
# |
Aug 25th 2019, 01:33 |
brett |
Is it possible to load the auth component twice? Once with one configuration, then again with a separate configuration? |
# |
Aug 25th 2019, 00:04 |
Cenk21 |
But getting this error all the time Class 'App\Controller\MengeneinheitenCell' not found |
# |
Aug 25th 2019, 00:03 |
Cenk21 |
i gone through http://josediazgonzalez.com/2014/03/20/view-cells/ and implemented "Retrieving Cell data from a controller" |
# |
Aug 25th 2019, 00:02 |
Cenk21 |
hi, can anyone help out with Cells? |