# |
Feb 17th 2020, 15:47 |
dan874 |
has anyone ever come across an issue where a simple redirect would cause a session to stop working? for some reason im not getting `Error: [RuntimeException] Could not start the session` when hitting the new page after the redirect and im then logged out. |
# |
Feb 17th 2020, 15:43 |
willem |
with a table setup like so. how would i get the full history in a cake query? |
# |
Feb 17th 2020, 15:42 |
slackebot |
who fill give me ready solution and do whole work for me. Looking for advices/hints. Thank you! |
# |
Feb 17th 2020, 15:42 |
k4t |
can you recommend some kind of tutorial/articles/examples in which I can read about good practices for implementing data filtering? You know, in my project I have 3 dropdowns: dates, products, products type. Date and Product Type filters should add/remove query string parameter from url. Products filter contains normal links to each product but it should keep query string filters from Dates and Products Type filters. I am not looking for someone |
# |
Feb 17th 2020, 15:38 |
k4t |
Hello |
# |
Feb 17th 2020, 13:52 |
dereuromark |
Also the respective docs then per use case. |
# |
Feb 17th 2020, 13:52 |
dereuromark |
Did you read the above articles in detail? That should answer this very question. |
# |
Feb 17th 2020, 13:50 |
md.islam11 |
can i call a function of table in select() ? |
# |
Feb 17th 2020, 13:49 |
md.islam11 |
Any way to get in select-() |
# |
Feb 17th 2020, 13:49 |
dereuromark |
It works if you call this on the entity, has nothing to do with queries and select() though |
# |
Feb 17th 2020, 13:48 |
md.islam11 |
```protected $_virtual = [ 'type_string' ];``` ```public function _getTypeString() { return "test"; }``` I did this in my entity and its not working |
# |
Feb 17th 2020, 13:43 |
dereuromark |
funny enough exactly a year distance between em^^ |
# |
Feb 17th 2020, 13:42 |
dereuromark |
read the docs, or https://www.dereuromark.de/2019/02/05/virtual-entity-fields-in-cakephp/ + https://www.dereuromark.de/2020/02/06/virtual-query-fields-in-cakephp/ |
# |
Feb 17th 2020, 13:42 |
md.islam11 |
how to achieve this? |
# |
Feb 17th 2020, 13:42 |
md.islam11 |
can you please help me with an example. |
# |
Feb 17th 2020, 13:41 |
dereuromark |
thats not an entity virtual field |
# |
Feb 17th 2020, 13:41 |
md.islam11 |
```->select(['id','tp','type'])``` |
# |
Feb 17th 2020, 13:40 |
md.islam11 |
when i try to select 'tp' in Cakephp orm. it shows column not in field list. |
# |
Feb 17th 2020, 13:40 |
dereuromark |
How are you accessing it? |
# |
Feb 17th 2020, 13:40 |
md.islam11 |
```protected function _getTp() { return 'TP'; }``` |
# |
Feb 17th 2020, 13:39 |
md.islam11 |
mutator is not working |
# |
Feb 17th 2020, 13:39 |
md.islam11 |
Hello |
# |
Feb 17th 2020, 12:26 |
spriz |
will bookmark that article and read it later |
# |
Feb 17th 2020, 12:26 |
spriz |
it was such simple |
# |
Feb 17th 2020, 12:26 |
spriz |
so TLDR - we should not be using JWT anymore? :( |
# |
Feb 17th 2020, 11:28 |
neon1024 |
Anyway, they’ve had their time, the fad is over now |
# |
Feb 17th 2020, 11:27 |
dereuromark |
apart from that it sure has its use cases indeed. |
# |
Feb 17th 2020, 11:26 |
dereuromark |
"JWT isn’t supposed to be secure" That is true, thus it probably shouldnt be used in Auth context in the first place :) |
# |
Feb 17th 2020, 11:26 |
neon1024 |
I’m not throwing shade at JWT |
# |
Feb 17th 2020, 11:26 |
neon1024 |
It’s their use which is the issue. People misunderstand, that’s all |
# |
Feb 17th 2020, 11:26 |
neon1024 |
I was replying to dereuromark |
# |
Feb 17th 2020, 11:26 |
neon1024 |
It has context. |
# |
Feb 17th 2020, 11:25 |
neon1024 |
Wow, chill. |
# |
Feb 17th 2020, 11:25 |
admad |
Exactly, so you statement about JWT holds no value |
# |
Feb 17th 2020, 11:24 |
neon1024 |
You might claim the same for anything |
# |
Feb 17th 2020, 11:24 |
admad |
@neon1024 PHP too isn't too secure if used incorrectly :) |
# |
Feb 17th 2020, 10:46 |
Martin` |
hi :D |
# |
Feb 17th 2020, 10:46 |
conehead |
yes |
# |
Feb 17th 2020, 10:37 |
cakephp183 |
? |
# |
Feb 17th 2020, 10:37 |
cakephp183 |
there/ |
# |
Feb 17th 2020, 10:36 |
cakephp183 |
hello |