# |
Jun 26th 2018, 08:40 |
saeideng |
hi |
# |
Jun 26th 2018, 08:40 |
neon1024 |
Morning all |
# |
Jun 26th 2018, 08:39 |
saeideng |
SecurityException |
# |
Jun 26th 2018, 08:39 |
saeideng |
‍‍``` } catch (SecurityException $se) { $this->blackHole($controller, $se->getType(), $se); } ``` |
# |
Jun 26th 2018, 08:38 |
LubosR |
This is fine https://book.cakephp.org/3.0/en/controllers/components/security.html#handling-blackhole-callbacks but can I say in blackhole method what exception has been raised? |
# |
Jun 26th 2018, 08:24 |
LubosR |
Where to catch exceptions raised by SecurityComponent |
# |
Jun 26th 2018, 08:22 |
LubosR |
Might be stupid question, but what is the best way to catch AuthSecurityException? I mean in what part of app code |
# |
Jun 26th 2018, 07:38 |
egalles |
I come from cakephp2 |
# |
Jun 26th 2018, 07:38 |
egalles |
Also, I installed DebugKit pluggin and the toolbar does not show ? (No error reported in logs) Any idea about that? |
# |
Jun 26th 2018, 07:37 |
egalles |
File uploaded https://cakesf.slack.com/files/UBF2Q239V/FBDAAUB6C/-.txt / https://slack-files.com/T053DPNCM-FBDAAUB6C-61e1c1211b |
# |
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 |