Author Topic: integrate smarty templating engine  (Read 9778 times)

0 Members and 1 Guest are viewing this topic.

Offline troubadix

  • Pre-Newbie
  • Posts: 8
    • View Profile
    • OASIS-SVN
integrate smarty templating engine
« on: December 02, 2008, 08:46:03 AM »
Why not using the smarty templating engine in the next main-release of 4Images?

That's real templating - no html is needed in the php-sourcecode - never!!!

Have a look - it's very simple to integrate, it's stable and you will no longer have to maintain a templating engine by yourself.
http://smarty.net

Maybe some of the available 4Images-mods could be realized with smarty-plugins, so hacking the 4Images-code will not be needed any longer.

Think about it

---
best regards
Bernd
adopt, adapt, improve!
Bernd
---
Access goes Subversion: OASIS-SVN
Access-Projekte mit SVN verwalten ... und mehr ...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: integrate smarty templating engine
« Reply #1 on: December 02, 2008, 02:46:54 PM »
Hello and welcome to 4images forum.

Yes, smarty is a very advanced template engine, and very complex. And because of it's complexity it's not even near close to 4images's template engine performance.
In my opinion smarty is just a waste of time (learning it) and server's resources. It's templates are very close to PHP syntax, so why waste time learning it when you could benefit more by learning PHP syntax itself and use PHP code instead?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline troubadix

  • Pre-Newbie
  • Posts: 8
    • View Profile
    • OASIS-SVN
Re: integrate smarty templating engine
« Reply #2 on: December 03, 2008, 04:37:43 PM »
... so why waste time learning it when you could benefit more by learning PHP syntax itself and use PHP code instead?
Because i can strictly divide code from presentation.

Nobody forces you to learn the complete syntax of smarty, but you can ... if you like  :mrgreen:
adopt, adapt, improve!
Bernd
---
Access goes Subversion: OASIS-SVN
Access-Projekte mit SVN verwalten ... und mehr ...