# |
Mar 12th 2018, 00:55 |
slackebot |
'Auth', 'action' => 'login', '_ext' => NULL, )" could not be found.` |
# |
Mar 12th 2018, 00:55 |
angelxmoreno |
fml, now the Auth component is crying ``` Router::scope('/', function (RouteBuilder $routes) { $routes->prefix('api', function (RouteBuilder $routes) { $routes->connect('/finances/events', [ 'plugin' => 'Finances', 'controller' => 'Dashboard', 'action' => 'events', ]); }); ... ``` `Error: A route matching "array ( 'prefix' => 'api', 'plugin' => NULL, 'controller' => |
# |
Mar 12th 2018, 00:54 |
angelxmoreno |
it should have made sense to me |
# |
Mar 12th 2018, 00:54 |
savant |
amirite |
# |
Mar 12th 2018, 00:54 |
savant |
statics |
# |
Mar 12th 2018, 00:53 |
angelxmoreno |
smh |
# |
Mar 12th 2018, 00:53 |
savant |
otherwise I think it uses the global scope. |
# |
Mar 12th 2018, 00:53 |
savant |
you need to do it off the route builder |
# |
Mar 12th 2018, 00:53 |
savant |
$routes->prefix |
# |
Mar 12th 2018, 00:53 |
savant |
$routes->connect |
# |
Mar 12th 2018, 00:52 |
angelxmoreno |
ok, i lied, i can not make it what i want :( ``` Router::scope('/', function (RouteBuilder $routes) { Router::prefix('api', function (RouteBuilder $routes) { Router::connect('/finances/events', [ 'plugin' => 'Finances', 'controller' => 'Dashboard', 'action' => 'events', ]); }); ``` |
# |
Mar 12th 2018, 00:50 |
dereuromark |
see my sandbox for prefix before plugin. thats my default. |
# |
Mar 12th 2018, 00:50 |
savant |
not really at a computer atm, but I’d try that before trying `/finances/api/dashboard` |
# |
Mar 12th 2018, 00:49 |
savant |
`/api/finances/dashboard` |
# |
Mar 12th 2018, 00:49 |
savant |
so it might be something like |
# |
Mar 12th 2018, 00:49 |
savant |
I think the prefix for plugins applies beforehand |
# |
Mar 12th 2018, 00:48 |
angelxmoreno |
I am currently trying to migrate from Router::connect to Router::scope. just learning something new in Cake3 |
# |
Mar 12th 2018, 00:48 |
angelxmoreno |
the question is what is the 'default'routing. i know i can make it anything i want but was curious to know the default behavior or if the default is even compatible with that contoller namespace |
# |
Mar 12th 2018, 00:28 |
savant |
whatever you want ti to be according to your routing |
# |
Mar 12th 2018, 00:28 |
dereuromark |
Why do you need to ask? Just generate the URL via helper or Router::url() and see for yourself. It depends on your routing |
# |
Mar 12th 2018, 00:19 |
angelxmoreno |
greetings bakers! I have a controller in a namespace like so `Finances\Controller\Api\Dashboard`, what is the default url given that plugin name and controller namespace ? |
# |
Mar 11th 2018, 23:19 |
dereuromark |
cant be acl, it can be the cache of db, did you clear it after creating the tables? |
# |
Mar 11th 2018, 23:19 |
bakro.istvan |
Could you please help me? Do you have any history the these two could work alongside? |
# |
Mar 11th 2018, 23:18 |
bakro.istvan |
the this is just a wild guess. |
# |
Mar 11th 2018, 23:18 |
bakro.istvan |
I was thinking about a possibility of conflict with the ACL plugin. |
# |
Mar 11th 2018, 23:17 |
bakro.istvan |
Getting the entity I get the tags alongside, |
# |
Mar 11th 2018, 23:17 |
bakro.istvan |
I tried to test the other way of retrieving tags. It work by manually creating two entries in the database (tags_tagged, tags_tags) |
# |
Mar 11th 2018, 23:15 |
bakro.istvan |
When I posting a new people with the provided helper. The baked form posts the tags as string. I see that it gets processed. The original entity gets patched and in the TagsTable beforeSave event is firing. Whoever the tags does not gets created. |
# |
Mar 11th 2018, 23:12 |
bakro.istvan |
I want to tag this. So i required your plugin through composer. Loaded in bootstrap. Added the behavior and the config not to use the `taggedCounter` |
# |
Mar 11th 2018, 23:11 |
bakro.istvan |
Ive got a Person entity |
# |
Mar 11th 2018, 23:10 |
bakro.istvan |
My app looks like the following |
# |
Mar 11th 2018, 23:09 |
bakro.istvan |
@dereuromark What do you mean? I dont understand your question. |
# |
Mar 11th 2018, 21:49 |
dereuromark |
istvan: how come? its Posting to the same action? |
# |
Mar 11th 2018, 19:49 |
edgaras.jan |
use some library like https://github.com/spatie/analytics-statistics to get data |
# |
Mar 11th 2018, 19:43 |
rafael.junqueira.sant |
I did it with plain php last year, but I would like to know how are you doing with cakephp |
# |
Mar 11th 2018, 19:42 |
rafael.junqueira.sant |
What I mean is displaying google analytics data in a dashboard |
# |
Mar 11th 2018, 19:42 |
rafael.junqueira.sant |
what about the server side code? |
# |
Mar 11th 2018, 19:41 |
edgaras.jan |
just insert google analytics snippet to template |
# |
Mar 11th 2018, 19:40 |
rafael.junqueira.sant |
the latest plugin I found was updated 6 years ago, and google analytics api seems to have changed since then |
# |
Mar 11th 2018, 19:38 |
rafael.junqueira.sant |
What is everybody using for google analytics in CakePHP nowadays? |
# |
Mar 11th 2018, 19:28 |
bakro.istvan |
I think it it conflicting with the cakephp/acl plugin |