Log message #4153551

# At Username Text
# 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 ?
# Jun 23rd 2018, 13:56 saeideng I am using helper into the Elements without any problem
# Jun 23rd 2018, 13:55 akkaweb I thought so, but that is the weird issue I am facing. It throws an error if called from within an element file. It only works from within a template file
# Jun 23rd 2018, 13:54 saeideng it is same with normal template
# Jun 23rd 2018, 13:53 josbeir Idd..
# Jun 23rd 2018, 13:53 saeideng `$this->HelperName->`
# Jun 23rd 2018, 13:53 josbeir Why would that work differently from a normal template?
# Jun 23rd 2018, 13:53 akkaweb @saeideng Yes. I would like to call a helper into an element
# Jun 23rd 2018, 13:51 josbeir :flag-be: :flag-be: :flag-be: :flag-be: :flag-be:
# Jun 23rd 2018, 13:41 josbeir Yeah press can't stop talking about that over here :p
# Jun 23rd 2018, 13:32 admad any for anyone else who wants a good read :slightly_smiling_face:
# Jun 23rd 2018, 13:31 admad @josbeir in case you haven't already read https://www.theplayerstribune.com/en-us/articles/romelu-lukaku-ive-got-some-things-to-say
# Jun 23rd 2018, 13:27 saeideng :soccer:
# Jun 23rd 2018, 13:26 saeideng 6->90'
# Jun 23rd 2018, 13:26 saeideng Bel 5 ->75'
# Jun 23rd 2018, 13:21 saeideng do you want to call a helper into an Element?
# Jun 23rd 2018, 13:15 akkaweb Actually the best question would be "Why can't I call a helper from within an Element file"
# Jun 23rd 2018, 13:13 akkaweb Can helpers be called from within an Element?
# Jun 23rd 2018, 12:51 josbeir Not anymore!:)
# Jun 23rd 2018, 12:29 admad you have one more than the goals :slightly_smiling_face:
# Jun 23rd 2018, 12:07 josbeir :flag-be: :flag-be: :flag-be:
# Jun 23rd 2018, 08:23 birdy247 Its a bit of a beast
# Jun 23rd 2018, 08:22 birdy247 File uploaded https://cakesf.slack.com/files/U0T295QA3/FBCQYBYCS/-.php / https://slack-files.com/T053DPNCM-FBCQYBYCS-cb0fdf75c1
# Jun 23rd 2018, 08:22 birdy247 Here is the method
# Jun 23rd 2018, 08:21 birdy247 Presumably I need to stub these?