# |
Dec 20th 2019, 15:42 |
slackebot |
Painful. |
# |
Dec 20th 2019, 15:42 |
noel |
Yeah.. I think I found it – it's something weird... basically you know you get the circle icon when you're in device mode for simulating touch and drag etc... well that wasn't appearing.. just the usual arrow instead. I have to switch out of device mode and then back in again before the circle icon will appear. Once the circle icon is there then the event will trigger when I click.. if instead it's just the normal pointer then it won't. |
# |
Dec 20th 2019, 15:41 |
jimbo2150 |
Mobile devices use touch events, `$this->Html->link('<q-icon name="visibility" />', '#', ['escape' => false, 'onclick' => 'edit(event)', 'ontouchend' => 'edit(event)'])` should work. |
# |
Dec 20th 2019, 15:37 |
jotpe |
And the script is rendered properly in the Html Output? |
# |
Dec 20th 2019, 15:24 |
slackebot |
?>"; } <?php $this->Html->scriptEnd(); ``` |
# |
Dec 20th 2019, 15:24 |
noel |
Here's the link: ```$this->Html->link('<q-icon name="visibility" />', '#', ['escape' => false, 'onclick' => 'edit(event)'])``` Here's the script, which is rendered at the bottom of the template: ```<?php $this->Html->scriptStart(['block' => 'vue-component', 'type' => 'text/javascript']); ?> function edit(event) { event.stopPropagation(); window.top.location.href = "<?= Configure::read('deviceUrl').'/enquiry/'.$enquiry->id |
# |
Dec 20th 2019, 15:23 |
noel |
Something weird happening for me. I have a link rendered by the HTML helper with an onclick event. The onclick triggers fine on desktop but not on a device nor device emulator (not even the Chrome standard emulator). Any ideas? |
# |
Dec 20th 2019, 14:34 |
dsar |
A resolver is enough, the authentication plugin has already all the middlewares you need for the authentication management |
# |
Dec 20th 2019, 14:34 |
Naino |
Hi, I would like to sort a query with a belongsToMany association by join table column, is it possible to achieve that with query builder? |
# |
Dec 20th 2019, 14:30 |
luke |
I want to use fusionauth to provide login functionality. I think I need to start with middleware, but will need a resolver |
# |
Dec 20th 2019, 14:30 |
luke |
hmm, thanks, good point |
# |
Dec 20th 2019, 14:21 |
dsar |
The main logic is in the find() method |
# |
Dec 20th 2019, 14:20 |
dsar |
It is a very straightforward class |
# |
Dec 20th 2019, 14:19 |
dsar |
Just look at how OrmResolver is implemented: https://github.com/cakephp/authentication/tree/master/src/Identifier/Resolver |
# |
Dec 20th 2019, 14:14 |
luke |
All I found is the following, which tells you nothing: https://book.cakephp.org/authentication/1/en/identifiers.html#writing-your-own-resolver |
# |
Dec 20th 2019, 14:13 |
luke |
Hey, does anyone know if there is any documentation on creating a custom identity resolver for the new authentication plugin? |
# |
Dec 20th 2019, 14:09 |
tibor.hajos |
@dsar Thanks, I'll go check out the issues. |
# |
Dec 20th 2019, 14:09 |
val |
Hmmm... it is `array` but not `ArrayObject` there |
# |
Dec 20th 2019, 14:03 |
noel |
Oh.. I guess I'm not loading a config for CLI mode anymore since I configured for deployment :( |
# |
Dec 20th 2019, 14:01 |
noel |
bake has suddenly stopped working for me with this error: `Exception: If config is null, key must be an array.` Any clues? I tried rolling back my code to a version where I know bake was working – still borked. |
# |
Dec 20th 2019, 14:00 |
noel |
@val https://api.cakephp.org/3.8/class-Cake.ORM.Table.html#_save |
# |
Dec 20th 2019, 13:56 |
gianmarxgagliardi |
it was a typo |
# |
Dec 20th 2019, 13:55 |
dsar |
I know @noel ;) |
# |
Dec 20th 2019, 13:54 |
dsar |
@gianmarxgagliardi I didn't expect that would fix the problem, it is just better to use correct plurals in CakePHP |
# |
Dec 20th 2019, 13:53 |
noel |
@dsar Matchs is not a correct plural |
# |
Dec 20th 2019, 13:48 |
gianmarxgagliardi |
:( |
# |
Dec 20th 2019, 13:48 |
gianmarxgagliardi |
@dsar the substance does not change |
# |
Dec 20th 2019, 13:47 |
admad |
there will be other things you can help with |
# |
Dec 20th 2019, 13:47 |
admad |
:) |
# |
Dec 20th 2019, 13:45 |
tibor.hajos |
@admad aww, I was just about to submit a merge request. But your implementation looks more thorough than mine. |
# |
Dec 20th 2019, 13:44 |
val |
Hi, where can I find documentation for `$options` used in `public function afterSave(Event $event, EntityInterface $entity, ArrayObject $options)`? |
# |
Dec 20th 2019, 13:39 |
gianmarxgagliardi |
I try to put matches? and put it all back into cooking? |
# |
Dec 20th 2019, 13:33 |
dsar |
Is Matchs a correct plural? It is better to use the same plurals as the Inflector class to avoid problems in CakePHP |
# |
Dec 20th 2019, 13:30 |
gianmarxgagliardi |
```$match->club->nome_societa``` in the variables I can access the name of only one of the two clubs there is no way to be able to take both of them thus obtaining two array clubs in the variables |
# |
Dec 20th 2019, 13:30 |
admad |
@tibor.hajos https://github.com/cakephp/cakephp/pull/14056 |
# |
Dec 20th 2019, 13:25 |
noel |
Does anyone know of any sublime packages that will tidy a .ctp file? |
# |
Dec 20th 2019, 13:24 |
admad |
@tibor.hajos I actually already have an almost finished implementation for it locally :) |
# |
Dec 20th 2019, 13:18 |
dsar |
@tibor.hajos Documentation also needs contributions, e.g. more tutorials about common use cases |
# |
Dec 20th 2019, 13:18 |
gianmarxgagliardi |
```public function index() { $this->paginate = [ 'contain' => ['SeasonReferees', 'Clubs'], ]; $matchs = $this->paginate($this->Matchs); $this->set(compact('matchs')); }``` |
# |
Dec 20th 2019, 12:38 |
ceeram |
you'd better @tibor.hajos |
# |
Dec 20th 2019, 10:35 |
tibor.hajos |
Awesome :) I'll do my best |