How do I call a function from a component from a view? (ctp file)
Is that even a good practice to do that?
Thanks,
Tee
i suggest wrapping the component methods in a helper, and then using the usual route to access the helper.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With