Log message #4226589

# At Username Text
# Feb 12th 2020, 19:25 slackebot under `/webroot`.
# Feb 12th 2020, 19:25 phantomwatson As long as your server has your domain's document root set to `/webroot` and as long as it loads `index.php` by default, all requests will go there, and the path in the URL (like `/admin`) will be passed along to `index.php` as part of the `$request` object. Loading a file other than `index.php` is kind of stepping outside of how the framework works. I recommend that you just use the Router and to put your pages under `/src` instead of
# Feb 12th 2020, 19:23 sebastian.krzewinski. https://i.imgur.com/ewxZNCS.png
# Feb 12th 2020, 19:23 sebastian.krzewinski. to use another folders
# Feb 12th 2020, 19:23 sebastian.krzewinski. in routes
# Feb 12th 2020, 19:22 sebastian.krzewinski. now i see i need to have asset urls
# Feb 12th 2020, 19:22 sebastian.krzewinski. exacly i have this
# Feb 12th 2020, 19:22 phantomwatson I think you'll need to add this to your `/config/routes.php` file like this: ```Router::prefix('admin', function (RouteBuilder $routes) { $routes->connect('/', ['controller' => 'Pages', 'action' => 'index']); }```
# Feb 12th 2020, 19:21 sebastian.krzewinski. i have route set to /admin but isnt work if i create something in webroot
# Feb 12th 2020, 19:20 phantomwatson It sounds like you want the URL `localhost/admin` to be routed to something. Check out the documentation about the Router class in https://book.cakephp.org/3/en/development/routing.html.
# Feb 12th 2020, 19:20 sebastian.krzewinski. i need to create routes?
# Feb 12th 2020, 19:18 sebastian.krzewinski. where i editi default index
# Feb 12th 2020, 19:17 sebastian.krzewinski. its should be working but again i have problem with redirection .. after creating folder in webroot and copy/past my files i cant join to localhost/admin
# Feb 12th 2020, 19:11 phantomwatson It's okay! It's difficult to learn a new framework. Just keep working, and you'll understand it better every day.
# Feb 12th 2020, 19:10 sebastian.krzewinski. sorry for my problems, i just want to learn cakephp :)
# Feb 12th 2020, 19:09 sebastian.krzewinski. i will try it
# Feb 12th 2020, 19:09 sebastian.krzewinski. ok thanks
# Feb 12th 2020, 19:09 sebastian.krzewinski. aaaaa
# 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