Log message #4153575

# At Username Text
# 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
# Jun 23rd 2018, 14:02 saeideng plugin's helper ?
# Jun 23rd 2018, 14:02 saeideng infact you want to access the helper from a Plugin ?
# Jun 23rd 2018, 14:00 akkaweb for example the footer.ctp element works fine when I access the site at domain.com, but it fails if I access the login page at domain.com/login
# Jun 23rd 2018, 14:00 akkaweb if it is called thru a 3rd Party plugin, CakeDC/Users template
# Jun 23rd 2018, 13:59 akkaweb This is even more confused. So it only fails if I ca
# Jun 23rd 2018, 13:57 saeideng what is your error you are seeing ?