# |
Jan 27th 2020, 11:51 |
saidfuad91 |
Thanks for the information |
# |
Jan 27th 2020, 11:51 |
neon1024 |
I would suggest getting in touch with the team at CakeDC https://www.cakedc.com/ |
# |
Jan 27th 2020, 11:50 |
neon1024 |
But a Cake 3 one never got released before Cake 4 was out |
# |
Jan 27th 2020, 11:50 |
saidfuad91 |
So how do i go about this @neon1024 |
# |
Jan 27th 2020, 11:50 |
neon1024 |
Used to be on https://training.cakephp.org/ |
# |
Jan 27th 2020, 11:50 |
neon1024 |
Not sure there is a certification any more |
# |
Jan 27th 2020, 11:49 |
saidfuad91 |
Hi Guys, i would like to become an officially certified CakePHP developer through the developer certification program. I cant find the certification on the site. Kindly assist. |
# |
Jan 27th 2020, 11:48 |
neon1024 |
Knew if I asked I’d find it, https://book.cakephp.org/3/en/orm/database-basics.html#using-transactions |
# |
Jan 27th 2020, 11:47 |
neon1024 |
I can’t find it in Database Basics or Saving Data |
# |
Jan 27th 2020, 11:47 |
neon1024 |
Where is the bit in the book about building transactional code? I need to wrap three database operations in a transaction |
# |
Jan 27th 2020, 11:14 |
conehead |
@lpj145 But you added the pluginname to the route, right? http://yourpage/yourplugin/controller/action |
# |
Jan 27th 2020, 11:04 |
neon1024 |
Although if you’re going to package it for Composer, you might not want to have it in `src/plugins` |
# |
Jan 27th 2020, 11:03 |
neon1024 |
I would guess it’s similar to Cake 3 though, in that you bake a plugin into `src/plugins` then load it in `src/Application.php` |
# |
Jan 27th 2020, 11:03 |
neon1024 |
Sorry, I haven’t used Cake 4 yet to make plugins |
# |
Jan 27th 2020, 11:03 |
lpj145 |
the things about core code to wampv2 gone ok. |
# |
Jan 27th 2020, 11:02 |
lpj145 |
i'm trying create a simple good wampv2 plugin for cakephp. |
# |
Jan 27th 2020, 11:02 |
lpj145 |
yes |
# |
Jan 27th 2020, 11:01 |
neon1024 |
Are you using Cake 4? |
# |
Jan 27th 2020, 11:01 |
neon1024 |
It would need to be loaded |
# |
Jan 27th 2020, 11:01 |
lpj145 |
have a method to test injected plugins ? |
# |
Jan 27th 2020, 11:01 |
lpj145 |
ok, can't work = work nothing, not pause execution, not add routes or commands... |
# |
Jan 27th 2020, 11:01 |
neon1024 |
Can you explain your issue in more detail |
# |
Jan 27th 2020, 11:00 |
neon1024 |
“Can’t work” is confusing and not very descriptive |
# |
Jan 27th 2020, 11:00 |
lpj145 |
have a magic method ? or follow the docs is sufficient ? |
# |
Jan 27th 2020, 11:00 |
lpj145 |
Guy's, i tried create a plugin with bake command, but when addPlugin on application, plugin cant work routes, commands, anything, simple dd on bootstrap method can't work... |
# |
Jan 27th 2020, 09:39 |
slackebot |
Time::setToStringFormat($dateTimeFormat); Type::build('date')->useLocaleParser(); Type::build('datetime')->useLocaleParser();``` |
# |
Jan 27th 2020, 09:39 |
conehead |
I added this to the bottom of my bootstrap file: ` ```$dateFormat = 'dd.MM.yyyy'; $dateTimeFormat = 'dd.MM.yyyy HH:mm'; FrozenDate::setJsonEncodeFormat($dateFormat); Date::setJsonEncodeFormat($dateFormat); FrozenTime::setJsonEncodeFormat($dateTimeFormat); Time::setJsonEncodeFormat($dateTimeFormat); FrozenDate::setToStringFormat($dateFormat); Date::setToStringFormat($dateFormat); FrozenTime::setToStringFormat($dateTimeFormat); |
# |
Jan 27th 2020, 09:38 |
conehead |
usually you do not need to convert it |
# |
Jan 27th 2020, 09:38 |
conehead |
hm |
# |
Jan 27th 2020, 09:30 |
andre.karner |
```->date('invoice_date', ['dmy'])``` ['dmy'] did the trick - at first dmY threw an exception, debugging lead me to the solution :) |
# |
Jan 27th 2020, 09:25 |
andre.karner |
might be in the validator? ```public function date(string $field, array $formats = ['ymd'], ?string $message = null, $when = null)``` |
# |
Jan 27th 2020, 09:23 |
andre.karner |
does not change things :( |
# |
Jan 27th 2020, 09:23 |
andre.karner |
already done |
# |
Jan 27th 2020, 09:19 |
javier.villanueva |
In your app.php you must configure: ```'defaultLocale' => env('APP_DEFAULT_LOCALE', 'de-DE'),``` |
# |
Jan 27th 2020, 09:11 |
andre.karner |
hey guys! someone know how to force specific datetime format? I've set the locale of Date / Time to "de-DE" but validation always says that the provided value is invalid. MySQL needs YYYY-MM-dd but I let my users provide the value in following format: dd.MM.yyyy - do I have to cast this manually? |
# |
Jan 27th 2020, 07:30 |
alexdd55976 |
morning |
# |
Jan 27th 2020, 06:46 |
javier.villanueva |
morning al |
# |
Jan 27th 2020, 00:03 |
slackebot |
] ], ]);``` If I don’t pass company variables, it passes. Although I have `requirePresence` in the `CompaniesTable`. |
# |
Jan 27th 2020, 00:03 |
latenal |
Hi there! How to require associated tables validation? I have the following code: ``` $entity = $this->Users->newEmptyEntity(); $entity->setAccess('username', true); $entity->setAccess('password', true); $entity = $this->Users->patchEntity($entity, $data, [ 'validate' => 'register', 'associated' => [ 'Companies' => [ 'validate' => 'register' |
# |
Jan 26th 2020, 22:36 |
challgren |
Here @luizcmarin https://github.com/challgren/luiz-martin-example |
# |
Jan 26th 2020, 22:33 |
Jaime |
hi guys |