# |
Feb 12th 2020, 19:09 |
sebastian.krzewinski. |
hm ok but if i want to create admin folder next to default css folder? |
# |
Feb 12th 2020, 19:09 |
phantomwatson |
If I remember right. |
# |
Feb 12th 2020, 19:09 |
phantomwatson |
So `<?= $this->Html->css('/admin/css/style') ?>` seems to be what you need. |
# |
Feb 12th 2020, 19:08 |
phantomwatson |
If you have a leading slash, you could point to a file in `/admin/css/` |
# |
Feb 12th 2020, 19:08 |
phantomwatson |
You'd need your file in /webroot/css/admin/style.css for that to be the case. |
# |
Feb 12th 2020, 19:08 |
phantomwatson |
Oh, hang on... |
# |
Feb 12th 2020, 19:07 |
phantomwatson |
I think that the correct way to do that is `<?= $this->Html->css('admin/style') ?>` |
# |
Feb 12th 2020, 19:07 |
sebastian.krzewinski. |
? |
# |
Feb 12th 2020, 19:07 |
sebastian.krzewinski. |
but i think its not curretcly |
# |
Feb 12th 2020, 19:07 |
sebastian.krzewinski. |
if i create new folder in webroot (webroot/admin/css). i want to use something like that <?= $this->Html->admin->css('style.css') ?> |
# |
Feb 12th 2020, 19:06 |
sebastian.krzewinski. |
sory for my enlish |
# |
Feb 12th 2020, 19:05 |
ricksaccous |
WHAT DO YOU MEAN |
# |
Feb 12th 2020, 19:05 |
ricksaccous |
what are you even talking about |
# |
Feb 12th 2020, 19:05 |
ricksaccous |
the helpers are already there |
# |
Feb 12th 2020, 19:05 |
sebastian.krzewinski. |
to use it in default |
# |
Feb 12th 2020, 19:05 |
sebastian.krzewinski. |
but now i have problem to create helpers like meta/css |
# |
Feb 12th 2020, 19:04 |
sebastian.krzewinski. |
yea i do it |
# |
Feb 12th 2020, 19:03 |
phantomwatson |
If it's a 301 redirect, then the browser has cached it, and you'll need to clear that cache to proceed. |
# |
Feb 12th 2020, 19:02 |
phantomwatson |
@sebastian.krzewinski., can you check to see if the response is a redirect with the code 301 or 302? |
# |
Feb 12th 2020, 19:01 |
sebastian.krzewinski. |
but i dont know how to do this |
# |
Feb 12th 2020, 19:01 |
sebastian.krzewinski. |
and use for this htmlhelper |
# |
Feb 12th 2020, 19:00 |
sebastian.krzewinski. |
i want to create new folder for my css/js files |
# |
Feb 12th 2020, 18:59 |
sebastian.krzewinski. |
again not work |
# |
Feb 12th 2020, 18:56 |
ricksaccous |
might be browser caching the redirects |
# |
Feb 12th 2020, 18:55 |
sebastian.krzewinski. |
o.o |
# |
Feb 12th 2020, 18:55 |
sebastian.krzewinski. |
ok its work on another browser |
# |
Feb 12th 2020, 18:47 |
ndm |
Stuff like that is often caused by rewrite issue |
# |
Feb 12th 2020, 18:43 |
sebastian.krzewinski. |
why.. :( |
# |
Feb 12th 2020, 18:43 |
sebastian.krzewinski. |
now its redirects to webroot |
# |
Feb 12th 2020, 18:43 |
sebastian.krzewinski. |
5 min ago its was working.. /admin |
# |
Feb 12th 2020, 18:41 |
sebastian.krzewinski. |
;/ |
# |
Feb 12th 2020, 18:41 |
sebastian.krzewinski. |
https://i.imgur.com/HjlBkbk.gifv |
# |
Feb 12th 2020, 18:09 |
sebastian.krzewinski. |
Hello, if i want to create link to np localhost/admin to create there admin panel i need to do prefix in routes and folder admin with funcions in controler/template ? |
# |
Feb 12th 2020, 17:04 |
ndm |
The ones listed above, `app_uses`, `rename_classes`, etc., they're shown when you run `bin/cake upgrade --help` |
# |
Feb 12th 2020, 17:00 |
siiva108 |
hello bakers. I'm upgrading an old 2.x to 3.x. Going through this guide: https://book.cakephp.org/3/en/upgrade-tool.html. At the very end it says "After these two commands, you can run the remaining subcommands in any order.". What subcommands would that be referring to? |
# |
Feb 12th 2020, 16:34 |
ndm |
Then you probably want to look into the request authorization middleware. If you don't really need all that versatility, look into plugins like TinyAuth. |
# |
Feb 12th 2020, 16:32 |
kaliel |
@ndm thank you, it works fine, i'd like to manage authorizations based on prefix (like in 3.x) :) |
# |
Feb 12th 2020, 16:31 |
ndm |
@kaliel The authentication middleware by default only identifies you, it won't restrict access. The authentication component however does by default require an identity to grant access to any resource at all, that's kinda like authorization, but also a little but in the splitting hairs territory. You can disable that behavior by setting the components `requireIdentity` option to `false`. |
# |
Feb 12th 2020, 16:22 |
kaliel |
hey, in cake 4.0.3, since i enabled Authentication plugin, i can't access anything. Isn't that supposed to be the job for Authorization plugin ? How to tell everything is accessible when unauthenticated ? |
# |
Feb 12th 2020, 16:20 |
ndm |
No problem. Generally mocking a model via `getMockForModel` will populate the global table registry with the mock accordingly, so it should work pretty much anywhere where CakePHP's table loading mechanisms are being used. |
# |
Feb 12th 2020, 16:14 |
dan874 |
@ndm thanks for explaining it though as it does mean i can do what i was thinking i could do |