# |
Mar 22nd 2019, 11:46 |
neon1024 |
Anyone know how I can check if a field has validation rules which allow it to be empty |
# |
Mar 22nd 2019, 11:34 |
steinkel |
hi, we did some work on the contents for the certification in cake3, we are not close to release it yet and depending on cake4 release dates, we might want to refactor it for 4 |
# |
Mar 22nd 2019, 11:24 |
emilushi |
@neon1024 Thanks for the replay |
# |
Mar 22nd 2019, 11:23 |
neon1024 |
@steinkel Would be the person to check with :slightly_smiling_face: |
# |
Mar 22nd 2019, 11:23 |
neon1024 |
@emilushi Probably not, with CakePHP 4 coming |
# |
Mar 22nd 2019, 11:16 |
emilushi |
Does anyone know if there will be anything about CakePHP 3 here: https://certification.cakephp.org/ |
# |
Mar 22nd 2019, 09:48 |
challgren |
I was thinking of going to datetime since that converts into Chronos Datetime |
# |
Mar 22nd 2019, 09:46 |
berarma |
@challgren https://stackoverflow.com/a/602038/1714120 |
# |
Mar 22nd 2019, 09:45 |
berarma |
Morning |
# |
Mar 22nd 2019, 09:28 |
challgren |
Yeah sometimes I use datetime sometimes I use datetime so Im not really sure |
# |
Mar 22nd 2019, 09:27 |
neon1024 |
Plus, datetime is more readable when looking at the data directly imho |
# |
Mar 22nd 2019, 09:27 |
neon1024 |
If you’re displaying it |
# |
Mar 22nd 2019, 09:27 |
neon1024 |
I don’t know if timestamp is marshalled into a DateTime object though |
# |
Mar 22nd 2019, 09:27 |
neon1024 |
I believe either will work with the Timestamp behaviour |
# |
Mar 22nd 2019, 09:27 |
neon1024 |
I use `datetime` |
# |
Mar 22nd 2019, 09:26 |
challgren |
Ok quick question for created and modified timestamp or datetime in SQL? |
# |
Mar 22nd 2019, 09:25 |
neon1024 |
Haha, fair point |
# |
Mar 22nd 2019, 09:25 |
challgren |
And my phone isnt ringing off the hook |
# |
Mar 22nd 2019, 09:25 |
challgren |
The only time people dont bug me |
# |
Mar 22nd 2019, 09:25 |
challgren |
Ahh Im a late nighter |
# |
Mar 22nd 2019, 09:25 |
neon1024 |
Wow, up early @challgren;) |
# |
Mar 22nd 2019, 09:25 |
challgren |
Morning @neon1024 |
# |
Mar 22nd 2019, 09:24 |
neon1024 |
Morning all! |
# |
Mar 22nd 2019, 09:02 |
slackebot2 |
https://www.pastiebin.com/5c94a3b641f0e |
# |
Mar 22nd 2019, 09:02 |
johnwayne |
Hi, we have in the last time problems with CakePhp pagination (Cakephp 3.7). We have aroun 50 000 orders and user type = admin in the Orders->Index page can see all Orders (paginated), but however it seems that ORM is really slow (we have a lot of contains, but however it should be faster than 30 seconds). Does anybody else have the same problems? There is our "quick fix" and it works now but it is only "fix" |
# |
Mar 22nd 2019, 09:00 |
challgren |
$this->RequestHandler->renderAs($this, ‘json’); |
# |
Mar 22nd 2019, 08:48 |
Martin` |
but what is the best way to tell cakephp to always response json? |
# |
Mar 22nd 2019, 08:47 |
Martin` |
i like to use crud plugin for rest |
# |
Mar 22nd 2019, 08:24 |
spriz |
Check this one @snake-venom: http://www.bravo-kernel.com/2015/04/how-to-build-a-cakephp-3-rest-api-in-minutes/ |
# |
Mar 22nd 2019, 08:11 |
snake-venom |
hi there. i was going to cakephp3 rest api without any plugin.. i am getting this error " Error: Create the class ApiController below in file: src/Controller/ApiController.php " |
# |
Mar 22nd 2019, 01:54 |
minh.lv0312 |
Hello everyone, can you help me? I have ~2000 achounts, they allocate on ~200 postgres server My cakephp version 3.6 I need connect to each account to get data, but i got problem over 50 connection I try close connection before open new, i use disconnect() https://api.cakephp.org/3.2/source-class-Cake.Database.Connection.html#190-198 But when use netstat command to check, i see that the connection didn't close!? |
# |
Mar 22nd 2019, 01:41 |
cakephp444 |
Is anyone there |
# |
Mar 22nd 2019, 01:41 |
cakephp444 |
test |
# |
Mar 21st 2019, 23:35 |
dereuromark |
I finally finished my DTO plugin blogpost, enjoy, try it and give me some feedback plz: https://twitter.com/dereuromark/status/1108873977743765504 |
# |
Mar 21st 2019, 23:22 |
asdfgh |
why? |
# |
Mar 21st 2019, 23:22 |
asdfgh |
but when i do foreach ($users as $user) i cannot read highlight in $user |
# |
Mar 21st 2019, 23:22 |
asdfgh |
i mena running it via curl it works |
# |
Mar 21st 2019, 23:21 |
asdfgh |
i can get it in query |
# |
Mar 21st 2019, 23:21 |
asdfgh |
guys i am using cakephp-elasticsearch with elasticsearch "highlight" |
# |
Mar 21st 2019, 21:04 |
devito |
gotcha |
# |
Mar 21st 2019, 21:03 |
challgren |
@devito not virtual fields but you can use SQL in your where() to reproduce your generated column |