# |
Jun 26th 2018, 07:36 |
egalles |
Hi, I'm trying to install cakephp3 in plesk and all it works when i'm trying to visit the frontend part of cakephp3 (demo index page working ok, database working ok etc...) but I cannot make any bake ? This is my error, but I think that i've got all extensions dependencies ok, Can anyone help me please ? |
# |
Jun 26th 2018, 06:51 |
LubosR |
$this->layout in error400 works, but still better to solve my helper load problem though |
# |
Jun 26th 2018, 06:37 |
LubosR |
Still no luck with html helper error when ExceptionRenderer is used. How do I set layout for error (exception renderer)? |
# |
Jun 26th 2018, 06:31 |
LubosR |
OK, thanks, giving it a try :) |
# |
Jun 26th 2018, 06:29 |
saeideng |
$this->viewBuilder()->helpers(['MyHelper']); |
# |
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? |