Heavymind
Gdyby ludzie rozmawiali tylko o tym, co rozumieją, zapadłaby nad światem wielka cisza.

26/07/2007

Smarty, layouts and Zend_View confusion

Opublikowane jako: Zend — Tags: , , , — Kubek Bartosz @ 23:30

It’s a hot topic recently. How to integrate layouts views into Zend Framework structure? You can read about solutions on many places, but actually nobody settled one common standard, not even Zend. This issue becomes more complicated after providing Zend_Controller_Action_Hepler’s with Zend Framework v.1.0, especially Zend_Controller_Action_Helper_ViewRenderer - a helper, that take care of initializing and displaying content from our view object automatically. Many options of implementing layouts, that users receive from Zend Framework makes them confusing.

Also there is an interface for implementing other template engines, like most used Smarty, or PEAR Sigma. You can find out a proposal class in Zend Framework manual (here), how to run Smarty as Zend_View template engine.

Regarding this, I’ll try to find out my own and best IMO way of merging Smarty into Zend Framework, as well as implementing basic layout construction at once.

So this is only an announcement of second tutorial I’m going to write down. Friend of mine advised me to create a video-tutorial, witch proposal I’m considerate. The decision haven’t been made, yet.

Greets



Brak komentarzy »

Nikt tego jeszcze nie skomentował.

Kanał RSS dla tego wpisu. TrackBack URL

Dodaj komentarz

Oparte na WordPress