Log message #4153581

# At Username Text
# Jun 23rd 2018, 14:39 akkaweb Ok.. thanks for your input. I will continue researching
# Jun 23rd 2018, 14:39 saeideng you must load all helpers under `CMS.` for all pages
# Jun 23rd 2018, 14:38 akkaweb if I go to a page mydomain.net/pages/about-us than all is good
# Jun 23rd 2018, 14:38 akkaweb I will continue researching anyway
# Jun 23rd 2018, 14:38 akkaweb the moment I go mydomain.net/login which uses a 3rd Party plugin, then my help is no longer found.
# Jun 23rd 2018, 14:37 akkaweb It is. But I really think it is an issue because if I go to mydomain.net than everything is good
# Jun 23rd 2018, 14:25 saeideng and no needed to issue on github :)
# Jun 23rd 2018, 14:25 saeideng it is not bug then :slightly_smiling_face:
# Jun 23rd 2018, 14:25 saeideng so you need to load it before using it
# Jun 23rd 2018, 14:24 saeideng it is from other plugin ?
# Jun 23rd 2018, 14:24 saeideng why `CMS.`?
# Jun 23rd 2018, 14:24 saeideng :+1:
# Jun 23rd 2018, 14:24 akkaweb Thank you! That will solve the problem for now
# Jun 23rd 2018, 14:23 akkaweb Your suggestion works though. So I added '$this->viewBuilder()->helpers(['CMS.CmsBlocks']);` to my Application beforeRender() function.
# Jun 23rd 2018, 14:23 saeideng or waiting for other members to tell you it is possible to use helper in an overridden element or not
# Jun 23rd 2018, 14:23 akkaweb I will open a bug issue
# Jun 23rd 2018, 14:23 akkaweb I really think that is a bug because it only fails when using a 3rd party plugin
# Jun 23rd 2018, 14:22 saeideng if you are sure for your problem , you can Open an Issue on github
# Jun 23rd 2018, 14:21 saeideng do you read the book about this
# Jun 23rd 2018, 14:18 saeideng I prefer to load helper in` beforeRender` Callback
# Jun 23rd 2018, 14:18 akkaweb Ok.. .I can try that
# Jun 23rd 2018, 14:18 saeideng yes , you can
# Jun 23rd 2018, 14:17 akkaweb in my AppController?
# Jun 23rd 2018, 14:17 saeideng and see result
# Jun 23rd 2018, 14:17 saeideng load your helper in controller before using
# Jun 23rd 2018, 14:17 saeideng so ' i'm not sure
# Jun 23rd 2018, 14:16 saeideng I never used helper in these cases
# Jun 23rd 2018, 14:16 akkaweb I know... I am pulling my hair. Is it my mistake somewhere or a bug?
# Jun 23rd 2018, 14:16 saeideng `load('CakeDC/Users.Cm...')`
# Jun 23rd 2018, 14:15 saeideng now it trying to load from Plugin( cakedc/users
# Jun 23rd 2018, 14:15 akkaweb from a 3rd party plugin
# Jun 23rd 2018, 14:15 akkaweb But the issue is: why does it not work if I am using overrwitten template
# Jun 23rd 2018, 14:15 akkaweb Yes it is.
# Jun 23rd 2018, 14:14 saeideng aha its your custom helper
# Jun 23rd 2018, 14:13 saeideng https://github.com/CakeDC/users/search?q=CmsBlocksandunscoped_q=CmsBlocks
# Jun 23rd 2018, 14:13 saeideng I not found `CmsBlocksHelper` class on the github
# Jun 23rd 2018, 14:10 akkaweb File uploaded https://cakesf.slack.com/files/U0V85N6NP/FBCPN0G1H/-.php / https://slack-files.com/T053DPNCM-FBCPN0G1H-364e93a102 - <@U51A5M2DS> here is error I am getting.
# Jun 23rd 2018, 14:05 akkaweb *Custom Helper
# Jun 23rd 2018, 14:05 akkaweb So when that is called somehow if causes the footer.ctp to no longer see my Customer Helper
# Jun 23rd 2018, 14:04 akkaweb I created an override file in a theme plugin at plugins/MyPluginTheme/src/Template/Plugin/CakeDC/Users/Users/login.ctp
# Jun 23rd 2018, 14:03 saeideng if yes you need to load the helper before using it