سؤال

In Smarty template when I write {call "foo"} I have to include template with "foo" implementation before calling function foo. Is it exists known way for autoloading such user-defined functions to prevent manual including templates with functions implementation in each file contains custom built-in function call?

هل كانت مفيدة؟

المحلول

No, there is not. From my point of view, the most practical approach would be to move the definition of foo to higher level template.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top