smarty
smarty copied to clipboard
Object properties cannot be called directly after a method
<p>{{ hello()->total() }}</p>
hello()The method returns an object
While this is a valid PHP construct, you have to keep in mind that Smarty is not a general purpose programming language. There's still ways to amend your issue, but I suggest you reconsider your practices in the first place.
While this is a valid PHP construct, you have to keep in mind that Smarty is not a general purpose programming language. There's still ways to amend your issue, but I suggest you reconsider your practices in the first place.
I think you're right, but I also have the idea that such a structure can be developed more conveniently. The conclusion is that laravel's balde engine does have such a syntax. I like Smarty very much. If possible, I sincerely hope to add such a feature and expect your reply. Is it possible to realize it in the future?