# |
Dec 15th 2017, 12:46 |
inoas |
whoever did the new CsrfMiddleware... |
# |
Dec 15th 2017, 12:41 |
hmic |
if not, i'd rather resort to the _SERVER global to get the info, instead of using this combersome thing :( |
# |
Dec 15th 2017, 12:41 |
hmic |
is there a note on the removed here() to what to use instead?! |
# |
Dec 15th 2017, 12:40 |
hmic |
that lookf fucking ugly! |
# |
Dec 15th 2017, 12:39 |
neon1024 |
Dirtbag, but it’ll work `'dl' => $request->getUri()->getScheme() . '://' . $request->getUri()->getHost() . $request->getUri()->getPath() . '?' . $request->getUri()->getQuery()` |
# |
Dec 15th 2017, 12:29 |
neon1024 |
As I need the DL, https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#dl |
# |
Dec 15th 2017, 12:20 |
neon1024 |
As I need the domain as well, the old `Router::url($urlArray, true)` |
# |
Dec 15th 2017, 12:20 |
neon1024 |
So if here() has been deprecated in favour of $request->getRequestTarget() how do we get the complete url for the current request? Have to build it using the `$request->getUri()` parts? |
# |
Dec 15th 2017, 12:12 |
neon1024 |
Oh, it’s only implemented in the class instance and not in the interface, hmm, might need to refactor my typehint |
# |
Dec 15th 2017, 12:11 |
neon1024 |
Ah it does :slightly_smiling_face: `$request->clientIp()` :) |
# |
Dec 15th 2017, 12:11 |
neon1024 |
Does the Cake request object store the remote ip? |
# |
Dec 15th 2017, 11:22 |
ono-t |
weekend is just around the corner! |
# |
Dec 15th 2017, 11:11 |
meowcate |
yay |
# |
Dec 15th 2017, 11:06 |
neon1024 |
Happy friday! |
# |
Dec 15th 2017, 11:06 |
neon1024 |
Morning everyone |
# |
Dec 15th 2017, 10:38 |
meowcate |
@Ayushi Can you be more specific ? |
# |
Dec 15th 2017, 10:36 |
Ayushi |
i want to save record in a table update another table at once |
# |
Dec 15th 2017, 10:35 |
Ayushi |
i need help |
# |
Dec 15th 2017, 10:35 |
meowcate |
Happy to help :slightly_smiling_face: |
# |
Dec 15th 2017, 10:35 |
Ayushi |
hello |
# |
Dec 15th 2017, 10:29 |
justcharlz |
@meowcate, thank you very much for the observation. Corrected and working like ...(lost word to use here)... thank you |
# |
Dec 15th 2017, 10:26 |
meowcate |
Therefore, problem is for each article, I record new tags that already exist with the same name. Is there an option with save for a belongsToMany so the `name` is keeped unique (if exists, link, if not, create and link), or do I need to check if the tag exist, and then use its id, for every record I have to do ? |
# |
Dec 15th 2017, 10:24 |
meowcate |
--- Meanwhile, I got _Articles_ to import, with _Tags_, which have only `id` and `name`. It's mostly the same as in this example : https://book.cakephp.org/3.0/en/orm/saving-data.html#saving-belongstomany-associations . But as all datas are imported, Tags don't have id yet, just name. |
# |
Dec 15th 2017, 10:19 |
meowcate |
I guess that's the problem : when you add a new item to an existing session, you don't put the new item count in the session |
# |
Dec 15th 2017, 10:16 |
meowcate |
Maybe I'm missing something, but I don't get how you keep the changes when you add something to an existing cart |
# |
Dec 15th 2017, 10:14 |
quantum-x |
Actually worked out my own problem - gotta love that. Thanks all :) |
# |
Dec 15th 2017, 10:14 |
meowcate |
@justcharlz Hm... in your `addProduct()` method, why do you call `$this->saveProduct($allProducts);` when your `$allProducts` was empty, but you don't when you're just adding one product ? |
# |
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 |