# |
Jun 26th 2018, 06:20 |
LubosR |
And I am loading helper in $helpers property at cell class |
# |
Jun 26th 2018, 06:19 |
saeideng |
'$->HelperName->*' |
# |
Jun 26th 2018, 06:19 |
LubosR |
Asking because I am getting this error when exception renderer is used, Warning: Warning (512): Could not render cell - The "Html" alias has already been loaded with the following config |
# |
Jun 26th 2018, 06:19 |
saeideng |
use normal way |
# |
Jun 26th 2018, 06:17 |
LubosR |
Morning Europe :) What is the best way to load helper in Cell? |
# |
Jun 26th 2018, 02:31 |
blance |
nice to be here |
# |
Jun 25th 2018, 23:07 |
rightscoreanalysis |
is it possible |
# |
Jun 25th 2018, 23:07 |
rightscoreanalysis |
trying to figure out how to allow empty on an edit method for form input |
# |
Jun 25th 2018, 23:07 |
rightscoreanalysis |
evening everyone |
# |
Jun 25th 2018, 21:55 |
a.francazi |
nevermind i forgot how join work :P |
# |
Jun 25th 2018, 21:40 |
a.francazi |
I'm using the FriendsOfCake/search plugin to search for articles with specifig article text, author name or tags title. When I try to search for the tags title, I have some articles showing up multiple times, which seems to be caused by my two inner joins (joining article table with article_tags and tags). Somebody knows how to solve this? |
# |
Jun 25th 2018, 20:48 |
itmpls |
nice! |
# |
Jun 25th 2018, 20:48 |
andre |
bye |
# |
Jun 25th 2018, 20:48 |
andre |
<3 |
# |
Jun 25th 2018, 20:48 |
andre |
thank you a lot |
# |
Jun 25th 2018, 20:47 |
andre |
and worked |
# |
Jun 25th 2018, 20:47 |
andre |
Chronos::createFromFormat('d/m/Y H:i', $ata, 'America/Sao_Paulo'); |
# |
Jun 25th 2018, 20:47 |
andre |
Thank u guys i did it |
# |
Jun 25th 2018, 20:47 |
andre |
no I dont need s |
# |
Jun 25th 2018, 20:47 |
andre |
d/m/Y H:i:s |
# |
Jun 25th 2018, 20:47 |
andre |
ops |
# |
Jun 25th 2018, 20:46 |
saeideng |
are you sure `'d/m/Y M:i:s` is tru ? |
# |
Jun 25th 2018, 20:43 |
itmpls |
should it be H:i:s ? and 19:50:00 ? |
# |
Jun 25th 2018, 20:43 |
itmpls |
M:i:s -> 19:50 , wheres the third segment? |
# |
Jun 25th 2018, 20:42 |
itmpls |
no? |
# |
Jun 25th 2018, 20:42 |
itmpls |
you need the seconds |
# |
Jun 25th 2018, 20:37 |
andre |
the separation symbol could not be found |
# |
Jun 25th 2018, 20:36 |
andre |
It returns |
# |
Jun 25th 2018, 20:36 |
andre |
Or tryng again changing a little my code |
# |
Jun 25th 2018, 20:34 |
andre |
I'm trying to get a specific date (string) and convert to Chronos object, I'm trying to do this way : $ata = Chronos::createFromFormat('d/m/Y M:i:s', $date, 'America/Sao_Paulo'); where $date is "10/05/2019 19:50" but cake gives me this error The separation symbol could not be found instead creating the object. Does anyone know what am I doing wrong? |
# |
Jun 25th 2018, 20:32 |
andre |
Hello guys I need help |
# |
Jun 25th 2018, 18:04 |
mikesmoniker |
File uploaded https://cakesf.slack.com/files/U67NZSL1G/FBD0J1CTS/dat_s_whack_tho.php / https://slack-files.com/T053DPNCM-FBD0J1CTS-6de640f764 - something to do with one method being from Zend\Diactoros\MessageTrait and the other being from Cake\Http\Response? |
# |
Jun 25th 2018, 17:42 |
mikesmoniker |
Other things stick (status code, different headers, etc.) but Content-Type doesn’t. |
# |
Jun 25th 2018, 17:41 |
mikesmoniker |
Any ideas why when I do something like `$this->response = $this->response->withHeader()` and _do not_ return anything from my action it works, but if I subsequently `return $this->response` or just `return $this->response->withHeader()` the header doesn’t take? |
# |
Jun 25th 2018, 16:52 |
hmic |
if you don't add ->select(...) to your query, it's even the default... |
# |
Jun 25th 2018, 16:48 |
camden |
ah ok. Thanks, I didn't know you could just do that. |
# |
Jun 25th 2018, 16:44 |
hmic |
:P |
# |
Jun 25th 2018, 16:44 |
hmic |
or even table.* |
# |
Jun 25th 2018, 16:43 |
hmic |
just select * |
# |
Jun 25th 2018, 16:41 |
camden |
Generally we would need to pull all the fields for the record, and there are several fields that have characters that aren't allowed in them. So it would make the code easier to read if I didn't have to include all the field names. If that's not easily done then manually quoting the field names might be my only option. |
# |
Jun 25th 2018, 16:38 |
hmic |
yes. that is what it does |