# |
Jun 26th 2018, 06:25 |
LubosR |
the thing is that loadHelper method is not working there (is not with CellClass) |
# |
Jun 26th 2018, 06:25 |
LubosR |
i need to load the helper and the best would be in Cell's initialize method I guess |
# |
Jun 26th 2018, 06:23 |
LubosR |
so it can't be Cake's lazy loaded Html helper |
# |
Jun 26th 2018, 06:21 |
LubosR |
saeideng, just to be clear, I am loading my aliased Html helper, it is not Cake's lib helper |
# |
Jun 26th 2018, 06:20 |
saeideng |
you no need to $helpers property |
# |
Jun 26th 2018, 06:20 |
LubosR |
So I was thinking to check/load helper in cell::initialize method, but there is no such method as loadHelper |
# |
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... |