# |
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? |
# |
Jun 23rd 2018, 08:21 |
birdy247 |
One of my methods inside this class does a couple of lookups to cake models |
# |
Jun 23rd 2018, 08:20 |
birdy247 |
I am trying to unit test it |
# |
Jun 23rd 2018, 08:20 |
birdy247 |
I have made a custom class to handle "Invoices" |
# |
Jun 23rd 2018, 08:04 |
birdy247 |
Morning |
# |
Jun 23rd 2018, 03:58 |
admad |
Welcome :slightly_smiling_face: |
# |
Jun 23rd 2018, 03:54 |
c |
Also @admad now that I’m here thank you for that plugin I use it a lot! |
# |
Jun 23rd 2018, 03:51 |
c |
Wow! Thanks :-) |
# |
Jun 23rd 2018, 03:49 |
admad |
Don't sell yourself short. Your English is good enough :slightly_smiling_face: |
# |
Jun 23rd 2018, 03:47 |
c |
And sorry for my english, it’s not my first language ,:) |
# |
Jun 23rd 2018, 03:47 |
c |
NIce!! Thank you very much @admad |
# |
Jun 23rd 2018, 03:45 |
admad |
@c https://github.com/cakephp/cakephp/pull/12242 |