# |
Jan 22nd 2019, 14:36 |
ricksaccous |
@jhall yeah you pretty much have to specify allowEmpty() |
# |
Jan 22nd 2019, 14:36 |
neon1024 |
Yep |
# |
Jan 22nd 2019, 14:36 |
jhall |
oh so adding a rule as isInteger also assumes you want it to be required? |
# |
Jan 22nd 2019, 13:25 |
madbbb |
Hello! What is the best way to use language param in router? I would like to accept /de/posts/1 urls with en language by default |
# |
Jan 22nd 2019, 10:27 |
neon1024 |
Perhaps someone in the future can change it :slightly_smiling_face: |
# |
Jan 22nd 2019, 10:27 |
neon1024 |
That’ll be @markstory who’ll wake up in about 2h 30m |
# |
Jan 22nd 2019, 10:22 |
thomas.meier |
I just put it here in hope it will hit the person in charge: The lastest release notification has a typo in the title. Probably copy-paste from the old version, maybe someone up to fix it? https://bakery.cakephp.org/2019/01/21/cakephp_373_released.html |
# |
Jan 22nd 2019, 10:02 |
neon1024 |
Personally I would not recommend using Fallback routing in your project |
# |
Jan 22nd 2019, 10:02 |
neon1024 |
Automatic routing will only exist if you include the FallbackRoutes |
# |
Jan 22nd 2019, 10:02 |
neon1024 |
fingoweb, That’s exactly how routing works |
# |
Jan 22nd 2019, 10:01 |
neon1024 |
@spriz I think it’s still `CHAR(32)` |
# |
Jan 22nd 2019, 10:01 |
neon1024 |
Morning all |
# |
Jan 22nd 2019, 09:59 |
fingoweb |
hey, I have a question, I need some redirect module. Is it possible in Cake to auto redirect from auto routes (/controller/action) to predefined routes (defined by $routes->connect) if exists? |
# |
Jan 22nd 2019, 09:57 |
spriz |
Or `VARBINARY` :P |
# |
Jan 22nd 2019, 09:55 |
spriz |
Does Cake support using `BINARY(16)` for UUIDs? |
# |
Jan 22nd 2019, 09:55 |
spriz |
I think you should extend the existing twig template if possible if it’s in vendor/ , and add it there :slightly_smiling_face: |
# |
Jan 22nd 2019, 08:45 |
marwan.salim |
@spriz do you mean just add the method to existing `*.twig` file ? i.e `add.twig` . Is it the right way ? :slightly_smiling_face: |
# |
Jan 22nd 2019, 08:42 |
spriz |
@marwan.salim I’d guess you need to extend the existing controllers if you want to add stuff to them :slightly_smiling_face: |
# |
Jan 22nd 2019, 08:23 |
slackebot1 |
null) { ${{ singularName }} = $this->{{ currentModelName }}->find()->where(['id' => $id])->firstOrFail(); $this->set(compact({{ compact|join(', ')|raw }})); } When I bake this method not exist in my controller. How to resolve this? Thanks. |
# |
Jan 22nd 2019, 08:23 |
marwan.salim |
Hi. I'm doing extended bake. How to add new method in existing bake controller ? In my case, I want to create a `history` method. I already added following file src/Template/Bake/Element/Controller/history.twig //below is the code inside history.twig {% set compact = ["'#{singularName}'"] %} /** * Change History method * * @param int|null $id User id. * @return void */ public function history($id = |
# |
Jan 22nd 2019, 05:33 |
admad |
@akkaweb session exists only when using a webserver, not CLI |
# |
Jan 22nd 2019, 03:09 |
challgren |
https://book.cakephp.org/3.0/en/development/sessions.html#accessing-the-session-object |
# |
Jan 22nd 2019, 03:08 |
challgren |
No and if you are doing so your business logic is in the wrong places |
# |
Jan 22nd 2019, 03:07 |
akkaweb |
Is it possible to use Session in a CakePHP Shell? |
# |
Jan 22nd 2019, 02:53 |
marwan.salim |
@ricksaccous welcome friend |
# |
Jan 22nd 2019, 02:52 |
ricksaccous |
@marwan.salim thanks, you too |
# |
Jan 22nd 2019, 02:51 |
marwan.salim |
Hi Everyone, I'm Marwan from Malaysia . Have a great day ahead, everyone!:) |
# |
Jan 22nd 2019, 02:05 |
waspinator |
right now I have ```$time = Time::parseDateTime($time_string, 'YYYY-MM-DD-H-mm-ss'); $time->subHours(5); $time->setTimezone('America/New_York') ``` |
# |
Jan 22nd 2019, 02:00 |
waspinator |
how would you specify the timezone of a string when using `Time::parseDateTime` |
# |
Jan 21st 2019, 22:12 |
challgren |
Thanks @dereuromark |
# |
Jan 21st 2019, 21:54 |
challgren |
@neon1024 check out https://github.com/bcrowe/cakephp-encrypted-type |
# |
Jan 21st 2019, 19:01 |
ricksaccous |
@graziel looks pretty nice |
# |
Jan 21st 2019, 19:00 |
graziel |
i like these kind of errors in steppers, clear where they are https://vuetifyjs.com/en/components/steppers#multi-line-error-state |
# |
Jan 21st 2019, 18:55 |
jhall |
yep its going pretty good thanks |
# |
Jan 21st 2019, 18:52 |
ricksaccous |
I'm sure you're doing alright :slightly_smiling_face: |
# |
Jan 21st 2019, 18:52 |
ricksaccous |
lolll |
# |
Jan 21st 2019, 18:52 |
jhall |
haha |
# |
Jan 21st 2019, 18:52 |
jhall |
and I suck at it |
# |
Jan 21st 2019, 18:52 |
ricksaccous |
lol oh |
# |
Jan 21st 2019, 18:52 |
jhall |
I am the UX person haha |
# |
Jan 21st 2019, 18:47 |
ricksaccous |
tabbed/stepped forms are a pain |