Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty in Symfony Framework: sfSmartyView ?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Frameworks
View previous topic :: View next topic  
Author Message
OpenMacNews
Smarty Rookie


Joined: 03 Aug 2004
Posts: 34
Location: Floating on Io's Methane Seas ...

PostPosted: Fri May 05, 2006 1:01 am    Post subject: Smarty in Symfony Framework: sfSmartyView ? Reply with quote

hi all.

i've narrowed down php-friendly, frameworks-of-interest to two:

(1) ZendFramework
because it IS the ZnedFramework, and will become (eventually) defacto standard ...

(2) Symfony
because its an excellent framework, with phenomenal documentation ...

'tho i've read the recent posts on ZendFramework + Smarty, apart from the fact that i can't seem to get it to work/behave anyway, ZF is *way* too 'alpha' to spend much energy on @ this time.

symfony, on the other hand, has only recently started (afaict) acknowledging interest in smarty ... lot of zealots "over there" knee-jerk respond with the usual "Why would you want to use Smarty, or *any* templating system" B.S.

there was SOME work there on a plugin/swappable view class name sfSmartyView ... but discussion seemingly died off in ~ Feb of this year.

has anyone HERE used the sfSmartyView class, or rolled-your-own integration with symfony?

thx!

richard
Back to top
View user's profile Send private message
OpenMacNews
Smarty Rookie


Joined: 03 Aug 2004
Posts: 34
Location: Floating on Io's Methane Seas ...

PostPosted: Fri May 05, 2006 10:22 pm    Post subject: Reply with quote

after realizing that symfony proj *really* is not "hot-to-trot" for Smarty, *and* it uses (?) yaml (what, another format?) configs, i'm gonna take the plunge and focus on ZF -->

http://www.phpinsider.com/smarty-forum/viewtopic.php?t=7865

... at least until it irretrievably self-destructs Smile
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Fri May 05, 2006 10:51 pm    Post subject: Reply with quote

But YAML rocks!! I use it too Smile
Back to top
View user's profile Send private message
OpenMacNews
Smarty Rookie


Joined: 03 Aug 2004
Posts: 34
Location: Floating on Io's Methane Seas ...

PostPosted: Fri May 05, 2006 10:59 pm    Post subject: Reply with quote

boots wrote:
But YAML rocks!! I use it too Smile


heh.

well, if *you* can successfully "thump" the symfony crowd to be less smarty-hostile and officially release/support an sfSmartyView class, i'd be willing to "suffer" with yaml ... Wink

symfony *is* an excellent framework.

that said, i think the ascendance of ZendFramework is inevitable.

given your "yaml-headedness", perhaps:

(1) some clarification as to *why* you think it's a good-thing wrt smarty
(2) integrate its support into the (slowly) evolving ZendFramework + Smarty example

cheers,

richard
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Fri May 05, 2006 11:33 pm    Post subject: Reply with quote

I've tried many times to promote YAML here Smile The basics for me are:

1) easy to read and write;
2) excellent for serializations and over-the-wire transfer;
3) turns out to be a superset of JSON;
4) better than the alternatives for many types of uses, especially configuration files

WRT, it is better than Smarty's config files for these reasons:
- supports arbitrary depth of arrays
- supports keys and/or indexed arrays at any depth

I even think it makes a nice intermediate format to replace assign(), thereby enabling a transaction level contract enforcement.

I don't use Symfony, however, and I have don't NEED to push YAML on anyone who doesn't want it. I think things like this ought be optional all-together.

So as it is not really a Smarty topic, I let it go Smile
Back to top
View user's profile Send private message
OpenMacNews
Smarty Rookie


Joined: 03 Aug 2004
Posts: 34
Location: Floating on Io's Methane Seas ...

PostPosted: Fri May 05, 2006 11:53 pm    Post subject: Reply with quote

thx! food for thought ...

boots wrote:
So as it is not really a Smarty topic, I let it go Smile


well, inasmuch as it might well add value, and in the same vein that ZendFramework is becoming a smarty topic ... or ... er ... vice versa ... i'd love to see some config options fleshed out.

prefereably, in context of ZF!

just *my* $0.02 ... Smile

richard
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Frameworks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP