# |
Sep 18th 2019, 14:10 |
ricksaccous |
good luck |
# |
Sep 18th 2019, 14:10 |
ron.rattie |
Well progress has been made.. on to other errors. |
# |
Sep 18th 2019, 14:01 |
ricksaccous |
otherwise i'd reconsider this approach, you can also load a theme in the AppView class along with the layout, however if you do set certain things in the AppView class then you'll find you're messing with cake defaults in some places, ie displaying json, etc |
# |
Sep 18th 2019, 14:00 |
ron.rattie |
I see the truth in of it |
# |
Sep 18th 2019, 13:59 |
ricksaccous |
as in, in multiple projects |
# |
Sep 18th 2019, 13:59 |
ricksaccous |
meh, if you plan on using this theme elsewhere it might be useful |
# |
Sep 18th 2019, 13:59 |
neon1024 |
Fixed this for you |
# |
Sep 18th 2019, 13:59 |
neon1024 |
> I want to make it harder to maintain |
# |
Sep 18th 2019, 13:59 |
ricksaccous |
lolll |
# |
Sep 18th 2019, 13:58 |
neon1024 |
Perhaps it has a nice bake theme with it? |
# |
Sep 18th 2019, 13:58 |
ron.rattie |
@ricksaccous I want to keep it modular |
# |
Sep 18th 2019, 13:56 |
ricksaccous |
@ron.rattie out of curiosity why are you putting this in a plugin, couldn't you simply edit the default.ctp? |
# |
Sep 18th 2019, 13:45 |
jotpe |
For your assets, try to symlink the plugins' assets: https://book.cakephp.org/3.0/en/deployment.html#symlink-assets |
# |
Sep 18th 2019, 13:44 |
jotpe |
Hm looks good to me, I have the same setup and my plugins' layout is used. Maybe try to delete the content of app/tmp |
# |
Sep 18th 2019, 13:42 |
ron.rattie |
Theme>src>Template>Layout>default.ctp |
# |
Sep 18th 2019, 13:42 |
alexdd55976 |
just replace default.php in Layouts |
# |
Sep 18th 2019, 13:42 |
jotpe |
Where's the Layout located? |
# |
Sep 18th 2019, 13:40 |
ron.rattie |
Okay, I have a default Layout for the Theme created and yet I'm still seeing the standard CakePHP page. Am I missing something else? |
# |
Sep 18th 2019, 13:38 |
jotpe |
Yes |
# |
Sep 18th 2019, 13:37 |
ron.rattie |
If I'm creating a Theme plugin that should be the default for the whole site, do I add $this->viewBuilder()-setTheme('Modern') to the beforeRender in the main AppController.php AND add $this->addPlugin('Modern') to the main Application.php bootstrap function? |
# |
Sep 18th 2019, 13:33 |
jotpe |
yes |
# |
Sep 18th 2019, 13:31 |
neon1024 |
Just curious |
# |
Sep 18th 2019, 13:31 |
neon1024 |
Are you using the Authorization one also? |
# |
Sep 18th 2019, 13:29 |
jotpe |
:slightly_smiling_face: |
# |
Sep 18th 2019, 13:29 |
jotpe |
The new Authentication Plugin |
# |
Sep 18th 2019, 13:28 |
alexdd55976 |
oh, you are not using Auth... |
# |
Sep 18th 2019, 13:27 |
alexdd55976 |
working now for more then 2 weeks on it |
# |
Sep 18th 2019, 13:27 |
jotpe |
@alexdd55976 I had to set `'queryParam' => 'redirect'` in the AuthenticationMiddleware |
# |
Sep 18th 2019, 13:27 |
alexdd55976 |
i expected something like that... this a lot of weird stuff going on with those tests |
# |
Sep 18th 2019, 13:26 |
neon1024 |
Not too sure then, sorry |
# |
Sep 18th 2019, 13:26 |
alexdd55976 |
all tests look like that. All unit tests are fine, no errors |
# |
Sep 18th 2019, 13:26 |
alexdd55976 |
```2) LoginCest: Login with invalid user Test tests\acceptance\LoginCest.php:loginWithInvalidUser [Error] Class 'AcceptanceTester' not found``` |
# |
Sep 18th 2019, 13:26 |
alexdd55976 |
yes |
# |
Sep 18th 2019, 13:25 |
neon1024 |
..and you run with `vendor/bin/codecept run` |
# |
Sep 18th 2019, 13:24 |
alexdd55976 |
```actor: AcceptanceTester paths: tests: / output: _output data: _data support: _support envs: _envs modules: enabled: - PhpBrowser - \Helper\Acceptance``` |
# |
Sep 18th 2019, 13:24 |
neon1024 |
I’m using `"codeception/codeception": "^2.5"` |
# |
Sep 18th 2019, 13:23 |
neon1024 |
Also check the paths in your codeception.yml |
# |
Sep 18th 2019, 13:23 |
neon1024 |
Well AcceptanceTester is declared in acceptance.suite.yml |
# |
Sep 18th 2019, 13:22 |
alexdd55976 |
seems to be fine. unit tests are running fine. acceptance tests keep missing the class |
# |
Sep 18th 2019, 13:21 |
neon1024 |
I would check your Codeception bootstrap file, and that your composer is loading the correct things |
# |
Sep 18th 2019, 13:17 |
alexdd55976 |
there is no hint |