|
|||
|
Hi all,
Today I decide to learn ZF because it meets most of my needs. But still, I can't leave my previous coding behavior using Smarty. I plan to use Smarty as the View component. I also want to make my application themable, easy to redesign. In this case, where should I put my .tpl files? Do I have to put it in View directory (replace the .phtml files)? Thanks b4, Ricky |
|
|||
|
Yes rick, You can put tpl files in view folder.
I also want to know that while constructing form element in default template we can assign function for server validation. e.g. PHP Code:
How could we handle server validation using smarty? Shall we put any custom isValid function or we can handle by using helper class. {$this->formSelect("gender",$this->album.gender,null,$this->gender)} This is the smarty code to put select option on form. Could we include any JS function with this function? Thanks in advance.
__________________
Amit Shah |
![]() |
| Thread Tools | |
| Display Modes | |
|
|