# |
Jul 3rd 2019, 13:21 |
birdy247 |
Hello bakers! |
# |
Jul 3rd 2019, 12:24 |
chrisshick |
@admad |
# |
Jul 3rd 2019, 12:24 |
chrisshick |
just thought i would see if it saved me time lol |
# |
Jul 3rd 2019, 12:23 |
chrisshick |
That is what i am doing right now lol |
# |
Jul 3rd 2019, 12:22 |
hari.om |
Thanks @admad |
# |
Jul 3rd 2019, 12:21 |
admad |
@chrisshick check the file's commit history on GH :slightly_smiling_face: |
# |
Jul 3rd 2019, 12:20 |
chrisshick |
I noticed that when updating to 3.7.9 it changes the date format |
# |
Jul 3rd 2019, 12:18 |
chrisshick |
Has there been an update in the DateTime default fomat? |
# |
Jul 3rd 2019, 12:11 |
admad |
@hari.om those methods required format using ICU placeholders https://ssl.icu-project.org/apiref/icu4c/classSimpleDateFormat.html#details |
# |
Jul 3rd 2019, 11:39 |
hari.om |
@channel |
# |
Jul 3rd 2019, 11:37 |
hari.om |
I am using cakephp 3.7 in bootstrap.php \Cake\I18n\FrozenTime::setJsonEncodeFormat('Y-m-d H:i:s'); \Cake\I18n\FrozenDate::setJsonEncodeFormat('Y-m-d H:i:s'); which return me date something like "open": "2019-07-03T11:00:00+00:00", but i need "open": "2019-07-03T11:00:00", can someone help me |
# |
Jul 3rd 2019, 09:38 |
neon1024 |
Hopefully the women win the Ashes :) |
# |
Jul 3rd 2019, 09:34 |
admad |
Though you will be losing 2 WCs this month. 1st being in Women's football :slightly_smiling_face: |
# |
Jul 3rd 2019, 09:33 |
admad |
@neon1024 England is batting first so the result is pretty much written in stone |
# |
Jul 3rd 2019, 09:32 |
neon1024 |
`$this->Auth->Flash->error($this->Auth->getConfig('authError'));` and a redirect I suppose |
# |
Jul 3rd 2019, 09:29 |
neon1024 |
Anyone know how I can throw a denied redirect using Auth? |
# |
Jul 3rd 2019, 09:24 |
neon1024 |
@admad Predictions for :flag-england: v :flag-nz: |
# |
Jul 3rd 2019, 09:24 |
neon1024 |
I guess if one already exists, but you could use `'when' => 'create'` I guess |
# |
Jul 3rd 2019, 09:23 |
neon1024 |
Perhaps both? |
# |
Jul 3rd 2019, 09:23 |
neon1024 |
Wouldn’t the request need to contain an uploaded image? |
# |
Jul 3rd 2019, 09:06 |
admad |
That would be an application rule, not validation rule |
# |
Jul 3rd 2019, 08:35 |
ra7bi |
Let me check , thanks |
# |
Jul 3rd 2019, 08:34 |
neon1024 |
Just validate the entity property is not empty |
# |
Jul 3rd 2019, 08:33 |
neon1024 |
That’s a validation rule |
# |
Jul 3rd 2019, 08:33 |
ra7bi |
@neon1024 how i can set a rule to check associated data if exist ? for example when adding User records , User must insert a photo or many photos , im talking about Users/add As i know i can set a rule to check if users table field are set or not , but not photos which is belong to users |
# |
Jul 3rd 2019, 08:18 |
neon1024 |
@ra7bi You’re looking for a hasMany association, with a rule and validation |
# |
Jul 3rd 2019, 08:17 |
neon1024 |
@ra7bi Yes it does |
# |
Jul 3rd 2019, 08:17 |
neon1024 |
How’d you update existing row data with a migration? Does that require sql? |
# |
Jul 3rd 2019, 08:14 |
scuadra |
Hello. In Cake 3.7 for some reason the TimestampBehavior is not working for me. I do not have modified field in my table but only created. Could this be the issue? |
# |
Jul 3rd 2019, 07:50 |
ra7bi |
im talking about Insert `User.photo` |
# |
Jul 3rd 2019, 07:48 |
ra7bi |
do cakephp support this type of relation `User at least have one Photo or more but not null ` FYI Photo is another table |
# |
Jul 3rd 2019, 07:47 |
ra7bi |
Hey |
# |
Jul 3rd 2019, 07:24 |
challgren |
@drailanjohn.gss DebugKit will help you with that |
# |
Jul 3rd 2019, 05:56 |
drailanjohn.gss |
hello guys, how can I measure the speed of a query in cake php ? |
# |
Jul 3rd 2019, 05:44 |
xuanvu442 |
Hello guys, I’ve a small question, please help me. Can I see the log request from the user? something like this |
# |
Jul 3rd 2019, 00:24 |
waspinator |
for example with the current authorized user `$this->Identity->get('id')` |
# |
Jul 3rd 2019, 00:23 |
waspinator |
is there a way to set the id crud view action if its not provided? https://crud.readthedocs.io/en/latest/actions/view.html |
# |
Jul 2nd 2019, 22:12 |
joey.mukherjee |
I don't have a method for profile in my UsersController. If I add one, it doesn't get called. However, I have `<?php echo $this->User->link ("My Profile", ['plugin' => 'CakeDC/Users', 'controller' => 'Users', 'action' => 'profile'], ['class' => 'dropdown-item']); ?>` as my link. If I change plugin to false, I get CakeDC/Users.ProfileController not found. Am I not extending correctly? |
# |
Jul 2nd 2019, 22:01 |
ricksaccous |
extend the controller... then expose the variables you want in your extended controller |
# |
Jul 2nd 2019, 21:58 |
slackebot |
wrong... |
# |
Jul 2nd 2019, 21:58 |
joey.mukherjee |
I've got another dumb question about the CakeDC Users plugin. I know how to customize the profile page as I copy it from the Template area under CakeDC to my own. However, I want to update the information that goes in there. In other words, I want to send my own related tables to the profile page. What is the best way to do that? Right now, I am editing vendor/cakedc/users/src/Controller/Traits/ProfileTrait.php. I know that is |