Log message #4098575

# At Username Text
# Nov 24th 2017, 09:47 neon1024 Components are tied to controllers
# Nov 24th 2017, 09:47 rudy1976s yes it ws my thought too
# Nov 24th 2017, 09:47 rudy1976s I know the cell scope is quite isolated , but since it is a mini controller, I would expect to be able to have access to the component registry as table registry, but there should be surely a reason
# Nov 24th 2017, 09:46 neon1024 I think it would be better to refactor the shared code into a separate library class, and then implement that into both the component and the cell personally
# Nov 24th 2017, 09:46 neon1024 `$componentRegistry->load('\App\Controller\Component\Rudy`);`
# Nov 24th 2017, 09:45 neon1024 I wonder if, in your cell, you could kinda hack it with `new ComponentRegistry(new Controller)` then just add a component to that
# Nov 24th 2017, 09:45 rudy1976s Tables can be instantiated without any problems using TableRegistry
# Nov 24th 2017, 09:45 neon1024 Hm, it takes a controller instance
# Nov 24th 2017, 09:44 neon1024 Ah, ComponentRegistry
# Nov 24th 2017, 09:44 rudy1976s yes you are right
# Nov 24th 2017, 09:44 neon1024 ..and I think the ComponentCollection class is only in the Controller
# Nov 24th 2017, 09:43 rudy1976s I need to use cells to load data coming from a webservice based on Microsoft NAV, but the connector to the webservice and its api is in a component: I have copied the same code to a model and works because usign Table registry I can create an instance of the model table, but I am not happy with this “cheat”
# Nov 24th 2017, 09:43 neon1024 Doesn’t seem to be from looking at the Cell class
# Nov 24th 2017, 09:42 rudy1976s btw is there a way in a cell to use a component ?
# Nov 24th 2017, 09:41 rudy1976s thank you
# Nov 24th 2017, 09:39 neon1024 The only way it wouldn’t work is if you overloaded it with your own code somewhere in the chain
# Nov 24th 2017, 09:39 neon1024 As you’re just extending the class and `loadHelper()` is a method in the View class
# Nov 24th 2017, 09:39 neon1024 I don’t see why you wouldn’t be able to
# Nov 24th 2017, 09:38 rudy1976s @neon1024 yesterday I followed your hints but extending the view class i was not able to load an helpers in the new view
# Nov 24th 2017, 09:37 neon1024 No branch for it yet in the repo, or will it come out of `3.next`
# Nov 24th 2017, 09:37 neon1024 When is 4.0 coming?
# Nov 24th 2017, 09:37 neon1024 <3
# Nov 24th 2017, 09:37 neon1024 Suppose not as it’s immutable
# Nov 24th 2017, 09:36 neon1024 Wonder if there any side effects of modifying the request in a template
# Nov 24th 2017, 09:36 neon1024 Yes, it is :slightly_smiling_face:
# Nov 24th 2017, 09:26 neon1024 In a template `$this` is an instance of View class right?
# Nov 24th 2017, 09:21 rudy1976s good morning , since cells are “mini controllers” is there a way to load from the registrya a component ?
# Nov 24th 2017, 09:13 cholthipaul can I use cakephp DBAL standalone? does it have dependencies on the main framework
# Nov 24th 2017, 08:30 birdy247 I am looking at the crud plugin :)
# Nov 24th 2017, 08:28 birdy247 easy solution, just tire yourself out more by solving even more problems :slightly_smiling_face:
# Nov 24th 2017, 08:28 birdy247 @neon1024 brain whizzing no doubt
# Nov 24th 2017, 08:26 kants_ Is anyone familiar with this ?
# Nov 24th 2017, 08:26 kants_ or should i need to use simple $this->request->session()->write() to add custom variable in session
# Nov 24th 2017, 08:25 kants_ I want to add a custom variable in default auth array i.e $this->request->session()->read('Auth.User') is ther any way to do it ?
# Nov 24th 2017, 08:24 kants_ hi #slackebot2
# Nov 24th 2017, 08:19 neon1024 Kinda sucks
# Nov 24th 2017, 08:19 neon1024 Had trouble sleep the last week or so, I keep waking up in the night so I get up tired
# Nov 24th 2017, 08:19 neon1024 Well if you mean I’m on time, yes :P
# Nov 24th 2017, 08:17 birdy247 @neon1024 early bird :muscle:
# Nov 24th 2017, 08:17 birdy247 Morning
# Nov 24th 2017, 08:08 kants_ can we add a custom fields to user.auth array in cakephp 3.0 ?