# |
Jul 22nd 2018, 18:33 |
lorenzo |
there is no way around that. DateTime is a PHP class, we cannot modified |
# |
Jul 22nd 2018, 18:33 |
lorenzo |
druffin, that is true |
# |
Jul 22nd 2018, 17:15 |
druffin |
I require DateTime to return as the same format string as FrozenTime |
# |
Jul 22nd 2018, 17:15 |
druffin |
json_encode stringifies DateTime as array, FrozenTime as the format string I set. |
# |
Jul 22nd 2018, 17:14 |
druffin |
There does not seem to be an equivalent for FrozenTime::setToStringFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); when it comes to DateTime. |
# |
Jul 22nd 2018, 17:11 |
lorenzo |
what do you mean? |
# |
Jul 22nd 2018, 17:11 |
lorenzo |
arrays? |
# |
Jul 22nd 2018, 15:37 |
druffin |
I added FrozenTime::setToStringFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); in my bootstrap which successfully converts my FrozenTime objects to a string, but when I add Time::setToStringFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");, my DateTime objects still return as arrays and not strings. Does someone know how I can accomplish this? |
# |
Jul 22nd 2018, 14:39 |
druffin |
How do I configure Cake to return DateTime objects as DATE_W3C strings instead of an array? |
# |
Jul 22nd 2018, 08:19 |
birdy247 |
making sure it uses the correct priorities i,e plugin, app etc.. |
# |
Jul 22nd 2018, 08:19 |
birdy247 |
Is it possible to use the View class to see if a template exits? |
# |
Jul 22nd 2018, 01:03 |
etipaced |
@shiblydu60 Welcome! |
# |
Jul 22nd 2018, 00:31 |
shiblydu60 |
Hi all |
# |
Jul 22nd 2018, 00:14 |
etipaced |
https://cakesf.herokuapp.com Should get you the invite. |
# |
Jul 21st 2018, 23:44 |
saltlake |
How can I join cakephp.slack.com? |
# |
Jul 21st 2018, 23:44 |
saltlake |
Hi, anyone there? |
# |
Jul 21st 2018, 18:11 |
ra7bi |
what is your question |
# |
Jul 21st 2018, 16:55 |
rudy1976s |
I am building my first rest controller using cakephp 3.x and need some help regarding pagination |
# |
Jul 21st 2018, 16:55 |
rudy1976s |
good afternoon to everyone |
# |
Jul 21st 2018, 16:04 |
ra7bi |
i've two forms after inserting into first form i will take the id and use it in second form , how i can guarantee that id is the correct one , maybe other user saved another id at same time |
# |
Jul 21st 2018, 13:36 |
sekai.dev |
seems so :( |
# |
Jul 21st 2018, 13:28 |
turkles |
Not many here who can answer stuff, sleepy time for most! |
# |
Jul 21st 2018, 13:14 |
sekai.dev |
Ah don't worry, could solve it. Thank you! |
# |
Jul 21st 2018, 12:57 |
sekai.dev |
Hey guys. Is there anyone that knows translateBehavior well? |
# |
Jul 21st 2018, 11:38 |
turkles |
hrm. I think it's because my Entity class is named wrong, what is the Entity naming convention for a 'through' class |
# |
Jul 21st 2018, 11:17 |
turkles |
How can I set default properties for a newEntity(), is there some magic needed, or is __contruct enough? |
# |
Jul 21st 2018, 11:01 |
Lachie |
Ello |
# |
Jul 21st 2018, 10:54 |
ra7bi |
Sure , |
# |
Jul 21st 2018, 10:53 |
admad |
Read up out entity getters on manual |
# |
Jul 21st 2018, 10:52 |
ra7bi |
@admad oh , sounds great thanks i will do that . |
# |
Jul 21st 2018, 10:52 |
admad |
Sorry "valueField" option not displayField |
# |
Jul 21st 2018, 10:51 |
admad |
@ra7bi set up a virtual field in entity. Then specify that field name in "displayField" option of find(list) |
# |
Jul 21st 2018, 10:51 |
ra7bi |
Thanks |
# |
Jul 21st 2018, 10:51 |
ra7bi |
i thought there is a way to do it directly in view ! |
# |
Jul 21st 2018, 10:50 |
birdy247 |
@ra7bi yes, alaways do the grunt work away from view |
# |
Jul 21st 2018, 10:50 |
ra7bi |
@birdy247 can you explain more , do you mean i've to change the list in the controller ? |
# |
Jul 21st 2018, 10:49 |
admad |
hmic: taxing based on company's value sounds ridiculous |
# |
Jul 21st 2018, 10:49 |
birdy247 |
just look at the options the list finder accepts |
# |
Jul 21st 2018, 10:49 |
ra7bi |
i've first name and last name i want to show them as option value |
# |
Jul 21st 2018, 10:49 |
ra7bi |
i've ``` $this->Form->control('fisher_id', ['options' => $fishers]); ``` i want to replace DisplayField with value of two fields is that possible here ? |
# |
Jul 21st 2018, 09:51 |
birdy247 |
How big is your company now? |