# |
Apr 28th 2017, 10:44 |
inoas |
How can I add multiple WHEN statements inside of case? |
# |
Apr 28th 2017, 10:44 |
burzum |
They don't want to pass around a hashed string in every single URL because it doesn't look good. Neither do I by the way. And I'm aware of the issues the implementation has but it's acceptable in our case. |
# |
Apr 28th 2017, 10:42 |
dereuromark |
;) nah, one day I will provide a plugin for this - belieeeeve meeeee - china |
# |
Apr 28th 2017, 10:41 |
burzum |
This crap is pain in the ass to deal with |
# |
Apr 28th 2017, 10:41 |
Neon1024 |
I’ll keep on it and see how I get on |
# |
Apr 28th 2017, 10:40 |
burzum |
I did a clear-all button |
# |
Apr 28th 2017, 10:40 |
Neon1024 |
Well I’ve also hit a snag where I can’t update the filter |
# |
Apr 28th 2017, 10:40 |
burzum |
Neon, you can have a clear button, don't ask me how I did it but we have one. We'll go live on monday evening if nothing bad happens. |
# |
Apr 28th 2017, 10:40 |
Neon1024 |
As if I clear the session, the component reapplies it afterwards |
# |
Apr 28th 2017, 10:39 |
Neon1024 |
Not sure they want it quite this ‘sticky’ though |
# |
Apr 28th 2017, 10:39 |
Neon1024 |
Hah |
# |
Apr 28th 2017, 10:39 |
burzum |
I'll forward you the Skype contacts, have fun discussing that issue with them |
# |
Apr 28th 2017, 10:39 |
Neon1024 |
Ironically, it’s also exactly what my account managers want |
# |
Apr 28th 2017, 10:38 |
burzum |
@dereuromark this is exactly what marketing wanted |
# |
Apr 28th 2017, 10:30 |
Neon1024 |
*you could |
# |
Apr 28th 2017, 10:29 |
Neon1024 |
Perhaps you contribute some ideas to the repository |
# |
Apr 28th 2017, 10:29 |
dereuromark |
q=abc123 => actuall [x=>y, ...] |
# |
Apr 28th 2017, 10:29 |
dereuromark |
you can even shorten them and internally normalize that into the actual query strings |
# |
Apr 28th 2017, 10:28 |
dereuromark |
persist it with URL query strings being passed between URLs |
# |
Apr 28th 2017, 10:28 |
Neon1024 |
I’d read that dereuromark! |
# |
Apr 28th 2017, 10:28 |
inoas |
haha ;) |
# |
Apr 28th 2017, 10:28 |
dereuromark |
the whole idea :slightly_smiling_face: I could probably rent on for 10 min about how bad it is to do it via session - but maybe I should just write a blog post on how this would be done in a more sane way. |
# |
Apr 28th 2017, 10:28 |
inoas |
gaga |
# |
Apr 28th 2017, 10:28 |
Neon1024 |
inoas: You’re saying burzum is an anti-pattern?! ;) |
# |
Apr 28th 2017, 10:27 |
inoas |
I think its burzums plugin |
# |
Apr 28th 2017, 10:27 |
inoas |
optin-in-all then removing maybe ^^ |
# |
Apr 28th 2017, 10:26 |
Neon1024 |
dereuromark, Which aspects of this design would you consider to be bad programming practise? |
# |
Apr 28th 2017, 10:25 |
dereuromark |
anti |
# |
Apr 28th 2017, 10:25 |
dereuromark |
autsch, isnt that the biggest anypattern ever? :slightly_smiling_face: |
# |
Apr 28th 2017, 10:23 |
Neon1024 |
I am working with this plugin, https://github.com/World-Architects/cakephp-query-param-preserver and I’d like to have a reset button to clear the saved params. Yet the hasKey method is protected. How can I clear the session? Do I need to copy and paste the method? |
# |
Apr 28th 2017, 09:47 |
Sava |
wow |
# |
Apr 28th 2017, 09:47 |
Sava |
and was wondering why I never get the correct language |
# |
Apr 28th 2017, 09:47 |
Sava |
I added admad's middleware before I add the routing middleware |
# |
Apr 28th 2017, 09:47 |
Sava |
fuck me I'm so retarded lol |
# |
Apr 28th 2017, 09:40 |
hmic |
at least the solution is quite simple... and non-braking |
# |
Apr 28th 2017, 09:39 |
hmic |
admad: there is serious security shit coming your way :p |
# |
Apr 28th 2017, 09:30 |
Sava |
Maybe I dont understand exactly how routing and request objects work but having this code https://pastebin.com/TS52yhYi in mind, shouldnt request object contain a variable named "a" with the value of "foo"? |
# |
Apr 28th 2017, 09:10 |
user83324 |
Hello. I am using CakePDF to generate PDF's in Cake 2.9. In View/pdf/mypdf.ctp I want to set the language to English (Configure::write('Config.language', 'en')) but the language does not change. I also tried Configure::write('Config.language', 'eng') without success. |
# |
Apr 28th 2017, 08:43 |
Sava |
if I debug $requestParams['lang'], in the plugin middleware, its always null no matter what |
# |
Apr 28th 2017, 08:41 |
Sava |
anyone got some experience with it? |
# |
Apr 28th 2017, 08:41 |
Sava |
hello. I need some help with ADmad's i18n plugin. Routing seems to be working, I get redirected to /lang/controller/action if I call /, but language is always set to the default language (not picked up from param in URL) |