How can Smarty 3 be used with Zend Framework 2?

I used PHP5 a long time ago and am currently trying to update my knowledge and expand it with knowledge of Zend Framework 2 and Smarty 3 for a possible project.

I am currently trying to figure out how to use Smarty 3 as a replacement / addition to Zend Framework 2.

All I can find through Google on this topic:

  • Deprecated (e.g. Zend Framework 1)
  • It suggests that I have more intimate working knowledge of Zend and Smarty than I actually am.

Could someone ask me to explain as if I was 9 using the Zend skeleton app as a starting point:

  • In which directory / folder (using the full path) should I unzip the Smarty-3.1.12 package?

  • What classes need to be created, what exactly should they contain, and where should they be stored?

  • What files need to be changed and how to make Smarty available for viewing in my module?

  • Referring to the above classes, how can they / should be used from AZ (for example, within the respective classes, assigning values, creating outputs)?

+6
source share
1 answer

There is a good SmartyModule module .

Definitely use the composer to install it, it makes your life a lot easier :-)

And an example application

+7
source

All Articles