# |
Apr 30th 2017, 01:11 |
flashios09 |
`DateType::$dateTimeClass = ‘App\I18n\Time’;` |
# |
Apr 30th 2017, 01:11 |
flashios09 |
i just add this line to bootstrap.php and it works now |
# |
Apr 30th 2017, 01:11 |
flashios09 |
@pc-world thanks, i didn’t notice that cake has a new DateType class |
# |
Apr 30th 2017, 01:03 |
flashios09 |
and `Cake\I18n\Time` not `Cake\I18n\Date` |
# |
Apr 30th 2017, 01:03 |
flashios09 |
before i have `App\I18n\Time` not `App\I18n\Date` |
# |
Apr 30th 2017, 00:58 |
pc-world |
flashios09: according to https://book.cakephp.org/3.0/en/core-libraries/time.html, cake switched the date/time library in 3.2 |
# |
Apr 30th 2017, 00:56 |
flashios09 |
now it’s always `Cake\I18n\Date` not `App\I18n\Date` :( |
# |
Apr 30th 2017, 00:55 |
flashios09 |
``` ``` |
# |
Apr 30th 2017, 00:55 |
flashios09 |
when i get a datetime field from database, i have something like this |
# |
Apr 30th 2017, 00:54 |
flashios09 |
before it works |
# |
Apr 30th 2017, 00:53 |
flashios09 |
i add also this line `DateTimeType::$dateTimeClass = 'App\I18n\Time';` to `config/bootstrap.php` |
# |
Apr 30th 2017, 00:52 |
flashios09 |
i extended the default Cake\I18n\Date class and add some custom methods |
# |
Apr 30th 2017, 00:52 |
flashios09 |
hi @markstory, i have a problem with Cake\I18n\Date after updating the framework from 3.1 to 3.2 |
# |
Apr 29th 2017, 21:28 |
pedroseco |
Can we manipulate data from one plugin from another using Events? |
# |
Apr 29th 2017, 21:28 |
pedroseco |
Hi. |
# |
Apr 29th 2017, 19:44 |
temp1029 |
@admad thanks for the advice, I created the custom authentication object then found the docs for custom finder method, lol, so I redid it using that instead |
# |
Apr 29th 2017, 19:38 |
admad |
@temp1029 A custom authenticate object sounds good. Depending on what extra checks you need, you could just use FormAuthenticate with custom finder method. |
# |
Apr 29th 2017, 17:18 |
temp1029 |
If I want to make domain name based login (meaning multiple domains pointing to the same install of cake, but someone can only login using credentials associated with the domain they are accessing it from), should I put that code in a custom authenticate object? I think so but just want to make sure I'm thinking of it right... |
# |
Apr 29th 2017, 17:18 |
temp1029 |
Hey all |
# |
Apr 29th 2017, 17:11 |
loginews |
and param.id is equal to 1 for the one and only record which the param table contains. |
# |
Apr 29th 2017, 17:10 |
loginews |
users.param_id is equal to 1 for all records |
# |
Apr 29th 2017, 17:10 |
loginews |
there I have one field param.ADDRESS1 which has to be simultaneously updated. |
# |
Apr 29th 2017, 17:09 |
loginews |
If you get in, click on the toolbox icon... it will edit the Users table. |
# |
Apr 29th 2017, 17:07 |
loginews |
the codes are here: https://gist.github.com/loginews/78dbc099fe1689332c299002d361f472 |
# |
Apr 29th 2017, 17:07 |
loginews |
correct: http://erp.loginonline.net/execlub/businessaccounting |
# |
Apr 29th 2017, 17:06 |
chris-andre |
Right. So when you update a record, a record in an associated table is created. |
# |
Apr 29th 2017, 17:01 |
loginews |
otherwise my cakephp app is working. |
# |
Apr 29th 2017, 17:01 |
loginews |
either there is no effect, or a record is added in the associated table. |
# |
Apr 29th 2017, 17:00 |
loginews |
I have spent the day understanding this hasOne ... could not make it work. |
# |
Apr 29th 2017, 16:59 |
loginews |
a record in a table |
# |
Apr 29th 2017, 16:57 |
chris-andre |
Editing a table or editing record in a table? |
# |
Apr 29th 2017, 16:49 |
loginews |
why would editing a table insert a record in an associated table ? |
# |
Apr 29th 2017, 16:41 |
chris-andre |
:$ |
# |
Apr 29th 2017, 16:41 |
loginews |
@chris-andre Bravo. |
# |
Apr 29th 2017, 16:40 |
chris-andre |
Haha, feels so stupid. Added `use DatePeriod; ` before the class, now DatePeriod works. Didn't realize before now that ArrayObject is an php class. |
# |
Apr 29th 2017, 16:35 |
chris-andre |
Is it a Chronos function to create an array of dates between two dates? I didn't find it in the api. I have looked at the php DatePeriod class, but I don't get it to work. |
# |
Apr 29th 2017, 16:00 |
loginews |
Who can help me with the issue I had raised earlier today ? |
# |
Apr 29th 2017, 15:58 |
joop |
okey thank you slackebot1 |
# |
Apr 29th 2017, 15:58 |
loginews |
@joop I saw your question. I don't know the answer. I have questions too! |
# |
Apr 29th 2017, 15:58 |
dereuromark |
be more specific |
# |
Apr 29th 2017, 15:57 |
joop |
how can i acces variable which decalreted in BeforeRender in controller? |