# |
Sep 5th 2019, 15:24 |
neon1024 |
Which I think is 24 mins |
# |
Sep 5th 2019, 15:43 |
this.impetus |
Hi guys... very strange behavior I need help troubleshooting. This works fine ```$routes->connect('/people', ['controller' => 'Pages', 'action' => 'display', 'public.people.landing']); $routes->connect('/people/*', ['controller' => 'Members', 'action' => 'display']);``` but this throws a MissingController error ``` $routes->connect('/press', ['controller' => 'Pages', 'action' => 'display', 'public.press.landing']); |
# |
Sep 5th 2019, 15:23 |
neon1024 |
My php maxlifetime is set to 1440 |
# |
Sep 5th 2019, 15:23 |
neon1024 |
How can I extend my session login time? It seems adding `timeout => 15` to my `app.php` `Session` key doesn’t seem to work |
# |
Sep 5th 2019, 15:22 |
ricksaccous |
@david098 https://book.cakephp.org/3.0/en/orm/query-builder.html#filtering-by-associated-data |
# |
Sep 5th 2019, 14:47 |
itmpls |
gotcha |
# |
Sep 5th 2019, 14:46 |
dereuromark |
overdoing sth too early |
# |
Sep 5th 2019, 14:46 |
dereuromark |
too much pre-opt |
# |
Sep 5th 2019, 14:46 |
itmpls |
what's overkill? |
# |
Sep 5th 2019, 14:44 |
dereuromark |
you can do it, but it seems a bit overkill |
# |
Sep 5th 2019, 14:44 |
itmpls |
not in vendor |
# |
Sep 5th 2019, 14:43 |
itmpls |
i mean versus in App itself |
# |
Sep 5th 2019, 14:43 |
dereuromark |
if it is inside the same projects /plugins folder there are no additional costs usually, so thats pretty cheap compared to the vendor overhead. |
# |
Sep 5th 2019, 14:41 |
itmpls |
organization wise is it ideal to put your own custom library (only to be used by this current app) as its own . plugin? |
# |
Sep 5th 2019, 14:42 |
dereuromark |
why do you want to do it in the first place? |
# |
Sep 5th 2019, 14:40 |
ndm |
@alexdd55976 https://github.com/cakephp/bake/issues?q=is%3Aissue+as_array+is%3Aclosed |
# |
Sep 5th 2019, 14:41 |
ondrej.nedvidek |
definitively Nedvajz on fire today ! |
# |
Sep 5th 2019, 14:41 |
ondrej.nedvidek |
:partyparrot: |
# |
Sep 5th 2019, 14:40 |
ondrej.nedvidek |
user error .. sorry for wasting your time :) |
# |
Sep 5th 2019, 14:40 |
ndm |
Probably... maybe if you show how exactly you try to use the data in your extended template |
# |
Sep 5th 2019, 14:36 |
alexdd55976 |
is that a known error |
# |
Sep 5th 2019, 14:37 |
ondrej.nedvidek |
@ndm thanks for reply .. well, then it is 'user' error .. shize .. where it could be .. but thank you for confirming ! |
# |
Sep 5th 2019, 14:36 |
alexdd55976 |
cake 4 / bake `Unknown "as_array" filter. in [C:\webroot\cakeeib\vendor\cakephp\bake\templates\bake\Model\table.twig, line 51]` |
# |
Sep 5th 2019, 14:36 |
ndm |
@ondrej.nedvidek Both should work, `set()` as well as `assign()/fetch()` |
# |
Sep 5th 2019, 14:35 |
ondrej.nedvidek |
so there is no option or you are not aware about ? :O |
# |
Sep 5th 2019, 14:30 |
david098 |
No luck... |
# |
Sep 5th 2019, 14:26 |
slackebot |
part of controller action. Any help? |
# |
Sep 5th 2019, 14:26 |
ondrej.nedvidek |
Hi there, I am inheriting view and want to pass variable from current view to the parent ``` $this->set('foo', 'bar'); $this->extend('/Common/Posts/view'); ``` I have tried to use `$this->assign('foo', 'bar');` and fetch in Common/Posts/view `$this->fetch('foo')` Also tried `$this->set('foo', 'bar');` and then access in Common/Posts/view `$foo` But no luck either way. It is related to view appearance so I don't think it should be |
# |
Sep 5th 2019, 14:25 |
ricksaccous |
@david098 replace the contain by matching, if you need the contain then use both the contain and a matching i suppose |
# |
Sep 5th 2019, 14:24 |
davorminchorov |
the form looks like the xeditable jquery plugin where the records for each row can be edited |
# |
Sep 5th 2019, 14:22 |
davorminchorov |
Hi, I have a list of records that I want to display on the page, and I am using the paginator but I noticed that the form is lazily loading the form fields as I scroll down. Is there any way to display all (or specific limit of those records) at once before it starts paginating the rest of the records? |
# |
Sep 5th 2019, 14:22 |
david098 |
do you mean replace the contain by matching? or add an extra matching ? |
# |
Sep 5th 2019, 14:17 |
ricksaccous |
try it... |
# |
Sep 5th 2019, 14:17 |
david098 |
Could be the solution, but my brain freezes at the moment, so any suggestion is welcome... |
# |
Sep 5th 2019, 14:14 |
ricksaccous |
@david098 wouldn't you just need a matching on statements as well? |
# |
Sep 5th 2019, 14:14 |
ricksaccous |
no problem |
# |
Sep 5th 2019, 14:12 |
g.catania |
thanks anyway |
# |
Sep 5th 2019, 14:12 |
g.catania |
ok solved. My bad! I was using the very same key "capabilities-".$this->request->getSession()->read('Auth.User.id') in two different queries holding different things. I messed up :) |
# |
Sep 5th 2019, 14:12 |
david098 |
I added my question to stack overflow, so any help is welcome : https://stackoverflow.com/questions/57807225 |
# |
Sep 5th 2019, 14:05 |
maymeow |
updated :) |
# |
Sep 5th 2019, 14:04 |
spriz |
I'd follow official docs ;P https://book.cakephp.org/3.0/en/orm/table-objects.html#customizing-the-entity-class-a-table-uses |