# |
Jul 2nd 2017, 19:21 |
saeideng |
https://cakesf.slack.com/archives/C053DPNGT/p1498938279806396 |
# |
Jul 2nd 2017, 17:57 |
casmo |
setting the 'secure' => false on the input() did the trick |
# |
Jul 2nd 2017, 17:38 |
casmo |
Having $this->Form->input('images[].filename'); works fine for my hasMany('Images') but not with the security componentn |
# |
Jul 2nd 2017, 17:38 |
casmo |
Anyone used the Security Component with a hasMany form with multiple files (images)? |
# |
Jul 2nd 2017, 14:28 |
sirisaku007 |
how to logging on view cakephp2 |
# |
Jul 2nd 2017, 14:28 |
sirisaku007 |
I have a some problem with debug on view |
# |
Jul 2nd 2017, 14:27 |
sirisaku007 |
Hi |
# |
Jul 2nd 2017, 11:36 |
wouter0100 |
ng like Schema in the JsonApi plugin). Is there any other best-practice in Cake or someting like that? |
# |
Jul 2nd 2017, 11:36 |
wouter0100 |
Hmm, I'm developing a REST API in Cake (with stateless auth) but, what's the best way to implement authorization to cartian attributes from models? For example, I want to show more data to the authenitcated user's own objects, then others. Currently using JsonView, but I'm thinking of implementing my own view for each object to filter data (somethi |
# |
Jul 2nd 2017, 09:46 |
casmo |
It is as long as I remember it. Using the bake migration CreateTable field:text |
# |
Jul 2nd 2017, 09:44 |
savant |
does that break something? |
# |
Jul 2nd 2017, 09:44 |
savant |
is that how its currently documented? |
# |
Jul 2nd 2017, 09:44 |
savant |
not sure |
# |
Jul 2nd 2017, 09:44 |
casmo |
Phinx* btw |
# |
Jul 2nd 2017, 09:41 |
casmo |
Should it not be default=>null, null => true? |
# |
Jul 2nd 2017, 09:41 |
casmo |
Is there a reason why Sphinx sets the default properties of a 'text' column to ['default' => null, 'null' => false]? |
# |
Jul 2nd 2017, 05:53 |
royalty |
that makes sense |
# |
Jul 2nd 2017, 05:52 |
royalty |
i seee |
# |
Jul 2nd 2017, 05:52 |
savant |
then the layout template |
# |
Jul 2nd 2017, 05:52 |
savant |
first the inner template |
# |
Jul 2nd 2017, 05:52 |
savant |
two step rendering |
# |
Jul 2nd 2017, 05:52 |
savant |
you were basically resetting it |
# |
Jul 2nd 2017, 05:52 |
savant |
no problem |
# |
Jul 2nd 2017, 05:51 |
royalty |
thanks |
# |
Jul 2nd 2017, 05:49 |
royalty |
yeah that worked |
# |
Jul 2nd 2017, 05:48 |
royalty |
ahh interesting |
# |
Jul 2nd 2017, 05:48 |
savant |
use append() |
# |
Jul 2nd 2017, 05:48 |
savant |
instead of start() |
# |
Jul 2nd 2017, 05:48 |
savant |
i think in your layout |
# |
Jul 2nd 2017, 05:48 |
royalty |
you have to assume that the actual.ctp is using layout.ctp as it's layout obviously |
# |
Jul 2nd 2017, 05:47 |
royalty |
updated |
# |
Jul 2nd 2017, 05:47 |
royalty |
https://gist.github.com/Modicrumb/3194d89c4d3fca329ae77bbf2973f17a |
# |
Jul 2nd 2017, 05:46 |
royalty |
I'll show both examples |
# |
Jul 2nd 2017, 05:46 |
royalty |
i'm saying i tried both |
# |
Jul 2nd 2017, 05:46 |
royalty |
even with an append though it doesn't work |
# |
Jul 2nd 2017, 05:45 |
royalty |
but defining the block in the options |
# |
Jul 2nd 2017, 05:45 |
royalty |
not appending |
# |
Jul 2nd 2017, 05:45 |
savant |
i dont see where you are appending? |
# |
Jul 2nd 2017, 05:44 |
royalty |
if i just don't start and end the block though it does append and problem solved lol |
# |
Jul 2nd 2017, 05:44 |
royalty |
https://gist.github.com/Modicrumb/3194d89c4d3fca329ae77bbf2973f17a |
# |
Jul 2nd 2017, 05:41 |
royalty |
yeah let me make a quick gist |