Log message #4105406

# At Username Text
# Dec 21st 2017, 16:20 justcharlz Hello house, I think I have seen @admad here before. Developer of the UseMuffin/Tokenize plugin https://github.com/UseMuffin/Tokenize Need to know what is meant to be in the foreign_data[] of the tokenize table.
# Dec 21st 2017, 16:06 slackebot3 $this->Crud->listener(‘view’)->beforeRender($event); parent::beforeRender($event); // TODO: Change the autogenerated stub }
# Dec 21st 2017, 16:06 torvault I answered my own question: public function beforeRender(Event $event) { //Tell the view Builder that you want to render using the CrudView View class //This ensures that the correct layouts are applied to the view $this->viewBuilder()->setClassName(‘CrudView.Crud’); //This ensures that all of the menu and navigations variables are passed to the view
# Dec 21st 2017, 15:44 cgtag How do you guys get the country flag added to your names?
# Dec 21st 2017, 15:39 neon1024 Yep
# Dec 21st 2017, 15:39 ceeram hi @neon1024 you doing php mentorship :slightly_smiling_face:
# Dec 21st 2017, 15:14 neon1024 Yups
# Dec 21st 2017, 15:14 neon1024 https://github.com/cakephp/cakephp/blob/master/src/Http/ServerRequest.php#L1467
# Dec 21st 2017, 15:13 neon1024 I’ll stop being lazy and go check
# Dec 21st 2017, 15:12 neon1024 Well you can see that it isn’t from my given code I would hope.
# Dec 21st 2017, 15:08 torvault ->getData(‘foo’); if it’s the primary model/table.
# Dec 21st 2017, 15:07 Meowritzo 228
# Dec 21st 2017, 15:06 neon1024 Just a quick sanity check. `$this->Form->control('Examples.foo');` `$this->request->getData('Examples.foo')` right?
# Dec 21st 2017, 15:04 torvault Question about CrudView. Is it possible to force it to render a custom non-crud action in the layout with all the other crud views?
# Dec 21st 2017, 14:54 neon1024 I suppose it means the association class doesn’t have the method
# Dec 21st 2017, 14:54 neon1024 I don’t understand that one ` 132 Call to an undefined method App\Model\Table\AcquiresTable|Cake\ORM\Association\HasMany::newEntity().`
# Dec 21st 2017, 14:52 neon1024 Liberal use of ?string etc I bet ;)
# Dec 21st 2017, 14:51 neon1024 It’ll be pretty interesting to see how all this shakes down in the 4.x release with all the return type and param scalar hints
# Dec 21st 2017, 14:51 neon1024 Similar stuff like `$this->Flash->success(__('Hello'));` gives an error because the localisation function can return `string|null` but the success method doesn’t take null
# Dec 21st 2017, 14:49 neon1024 Its’ quite interesting how much stuff php stan finds
# Dec 21st 2017, 14:47 neon1024 Hm, might have to just ignore those then
# Dec 21st 2017, 14:47 neon1024 Oh yes, I suppose it can
# Dec 21st 2017, 14:47 neon1024 `44 Cannot call method where() on array|Cake\ORM\Query.`
# Dec 21st 2017, 14:46 dereuromark find() can return array with hydrate false
# Dec 21st 2017, 14:44 neon1024 Unless perhaps the core framework return types don’t match
# Dec 21st 2017, 14:44 neon1024 I’m curious why it thinks it can be an array when it’s a $query = $this->Examples->find()
# Dec 21st 2017, 14:43 neon1024 ` 59 Parameter #1 $object of method Cake\Controller\Controller::paginate() expects Cake\ORM\Query|Cake\ORM\Table|string|null, array|Cake\ORM\Query given.`
# Dec 21st 2017, 14:43 neon1024 This is an odd one from phpstan
# Dec 21st 2017, 14:40 neon1024 So I need to loop my query and assign each one?!
# Dec 21st 2017, 14:39 neon1024 As `withData($name, $value)`
# Dec 21st 2017, 14:39 neon1024 How do I update this to match 3.4+? `$this->request->data = $this->request->query;`
# Dec 21st 2017, 14:39 dosjota someone has used environment variables ??
# Dec 21st 2017, 14:25 dosjota someone has used environment variables
# Dec 21st 2017, 14:24 dosjota Hi!!
# Dec 21st 2017, 13:16 Leonardo_0112 products -> returns 'Product 02' products?page=2 -> returns 'Product 02' products?page=3 -> returns 'Product 03'
# Dec 21st 2017, 13:16 Leonardo_0112 $this->Paginator->settings['limit'] = 1; $this->Paginator->settings['offset'] = 1;
# Dec 21st 2017, 13:12 Leonardo_0112 Hi! In my CakePHP 2 project I'm paginating my products. In the Controller I've set $this->Paginator->settings['offset'] = 1. In the first page, the 'offset' works (skipping the first product), but in second page the 'offset' seems not working, resulting in a repeated product. Any ideia how can I make it work?
# Dec 21st 2017, 12:59 jkpatel291289 how should is dispalt statename in inddex.ctp view?
# Dec 21st 2017, 12:59 jkpatel291289 $this->paginate['contain'] = ['States'];
# Dec 21st 2017, 12:58 jkpatel291289 $this->paginate['fields'] = [ 'Customers.id', 'Customers.name', 'States.name', 'Customers.contact_number', ];
# Dec 21st 2017, 12:46 obinoob johan me too but it might be on this specific version not sure lol