# |
Dec 15th 2017, 10:13 |
justcharlz |
any idea how to get the old session and add to it without doing new session(). Cos I have been searching since last night and no progress |
# |
Dec 15th 2017, 10:12 |
justcharlz |
I think the new session() init I do clears out the old session so I continue to have just one value in the cart. |
# |
Dec 15th 2017, 10:04 |
justcharlz |
Hello house. Trying to create a cart system. So far things working but only one item can be picked. When another icon is picked, it does not reflect on the shopping cart ticker. I think the issue is from my session setting on model. Can anybody help me review my table model to see if I am leaving anything out. Thanks https://gist.github.com/anonymous/f8a7517ab6eef10efc0c556479d01615 |
# |
Dec 15th 2017, 10:00 |
quantum-x |
https://gist.github.com/anonymous/3fba2d0eeb53eca63224ed197b1fb1d5 |
# |
Dec 15th 2017, 10:00 |
quantum-x |
Hi all.. Working on a 2.6.x framework, hitting an error when trying to use "ComponentCollection" in my tests. I've been looking through the test examples in the cake repo, can't wrap my head around what I'm doing incorrectly. Any insight would be greatly appreciated :) |
# |
Dec 15th 2017, 09:00 |
ono-t |
hello |
# |
Dec 15th 2017, 08:40 |
birdy247 |
morning |
# |
Dec 15th 2017, 05:50 |
braeden |
Is anyone here using Cassandra? |
# |
Dec 15th 2017, 05:49 |
braeden |
When you spend all day on something and get nowhere :,( |
# |
Dec 15th 2017, 04:29 |
iamacreep |
Hello |
# |
Dec 15th 2017, 03:18 |
voycey |
yeah ive done it all client side with jquery as I know the requirements wont be fixed for this, to create an iterator now would be messy so ill just loop it and build the entities :slightly_smiling_face: |
# |
Dec 15th 2017, 03:17 |
admad |
It's a toss up between putting in the extra effort on the client side or server side |
# |
Dec 15th 2017, 03:16 |
voycey |
nvm - ill work something |
# |
Dec 15th 2017, 03:16 |
voycey |
right, yeah its the coding of that iterator that I wanted to avoid |
# |
Dec 15th 2017, 03:16 |
admad |
Where x is the iterator |
# |
Dec 15th 2017, 03:16 |
voycey |
but I seem to remember cake could do something similar? |
# |
Dec 15th 2017, 03:16 |
admad |
x.field_name |
# |
Dec 15th 2017, 03:15 |
voycey |
I have been using fieldname[] |
# |
Dec 15th 2017, 03:15 |
voycey |
Whats a good way of managing cloned forms on a page? |
# |
Dec 15th 2017, 03:14 |
admad |
You should have chosen a better array format then :) |
# |
Dec 15th 2017, 03:13 |
voycey |
it feels like there should be a nice way to do this but not sure haha |
# |
Dec 15th 2017, 03:13 |
voycey |
i mean id need to create an entity from all element 0, then another from all element 1 |
# |
Dec 15th 2017, 03:13 |
admad |
patchEntities() |
# |
Dec 15th 2017, 03:12 |
voycey |
I think Hash::map but it doesnt make sense |
# |
Dec 15th 2017, 03:11 |
admad |
@rafael.junqueira.sant you are supposed to use the flash helper to render the flash messages, not use the flash elements directly. |
# |
Dec 15th 2017, 03:10 |
voycey |
File uploaded https://cakesf.slack.com/files/U1F0J3623/F8F8JHL9K/pasted_image_at_2017_12_15_02_10_pm.png / https://slack-files.com/T053DPNCM-F8F8JHL9K-75400dec9a |
# |
Dec 15th 2017, 00:19 |
braeden |
although probably not very nice... |
# |
Dec 15th 2017, 00:18 |
braeden |
It should be possible by accessing the session |
# |
Dec 14th 2017, 22:30 |
obinoob |
how can I set a flash message from model beforeDelete method? |
# |
Dec 14th 2017, 21:47 |
obinoob |
anyone? |
# |
Dec 14th 2017, 21:45 |
obinoob |
is this the answer to my question? https://book.cakephp.org/3.0/en/controllers/middleware.html |
# |
Dec 14th 2017, 21:43 |
obinoob |
hi, I need separate application logic way from controller ex: before delete user verify if it is "locked" or before give access verify if it has the proper rights etc is there any smart way to do this in cake? |
# |
Dec 14th 2017, 21:37 |
rafael.junqueira.sant |
It might be something I'm missing, but it looks like an issue or an incomplete feature indeed. |
# |
Dec 14th 2017, 21:36 |
rafael.junqueira.sant |
in core flash, is there a way to render only the success or error messages? |
# |
Dec 14th 2017, 21:35 |
rafael.junqueira.sant |
oh, I see |
# |
Dec 14th 2017, 21:34 |
dereuromark |
wait.. that is if you use the flash plugin, it will not work with the core stuff |
# |
Dec 14th 2017, 21:34 |
rafael.junqueira.sant |
That was helpful, let me try. |
# |
Dec 14th 2017, 21:32 |
dereuromark |
Might be. This is how I do it to render in a certain order: https://github.com/dereuromark/cakephp-flash/blob/master/src/View/Helper/FlashHelper.php#L24 but you can also just fetch them separately: https://github.com/dereuromark/cakephp-flash/blob/master/tests/TestCase/View/Helper/FlashHelperTest.php#L89 |
# |
Dec 14th 2017, 21:32 |
rafael.junqueira.sant |
oh, alright. so it may be an issue, right? |
# |
Dec 14th 2017, 21:32 |
dereuromark |
pull request |
# |
Dec 14th 2017, 21:31 |
rafael.junqueira.sant |
what's a core PR? Tried google, no success |