Opened 10 years ago

Closed 7 years ago

Last modified 43 years ago

#15 closed Feature Requests (None)

Smarty templating engine inclusion

Reported by: dgdaniels Owned by: nobody
Priority: 5 Milestone:
Component: None Version: None
Keywords: Cc:

Description

Has anyone been watching Tiki?
http://sourceforge.net/projects/tikiwiki/

The speed of growth with functions and features is
amazing. The developers are using Smarty as their
templating engine and I wonder if Smarty could be
included as the templating engine or turned into a
module that could be plugged into the PhpEclipse plugin?

thanks
Dennis

Change History (9)

comment:1 Changed 10 years ago by kpouer

Logged In: YES 
user_id=285591

hi, since I think that including a template engine in
phpeclipse would not be a good idea.
I use another template engine (modeliXe), and I think that
people should have the choice of which template engine they
will use.
So I think a plugin for phpeclipse would be a better way

comment:2 Changed 10 years ago by gtonic

Logged In: YES 
user_id=299484

hi,

AFAIK smart is the official standard template for PHP - so i
also think that it should be supported.

regards,
tom

comment:3 Changed 10 years ago by kpouer

Logged In: YES 
user_id=285591

Official ? since when ?
I saw nothing on php.net, I think if a template system
should be official, it would be the one included un PEAR
isn't it ?
I think smarty should be supported, but as an option among
other templates engine

comment:4 Changed 10 years ago by gtonic

Logged In: YES 
user_id=299484

just take a look at this:
http://smarty.php.net/

;) 
tom

comment:5 Changed 10 years ago by kpouer

Logged In: YES 
user_id=285591

Yes I missed it.
But there is an explanation for this : Andrei Zmievski
author of smarty is also a member of php group, so it was
probably easy for him to add smarty in the php website.
But it's not the question. I think we should not impose a
system. We should stay open for alternative solutions, so it
should be a plugin or an option I think.

comment:6 Changed 10 years ago by spasmoid

Logged In: YES 
user_id=681346

Hate to be a wet blanket - but... I fail to see how any
template system should be a concern of an ide. I think
phpeclipse is a fairly young project and those who
generously donate their time may well have more basic
features they wish to see in an IDE. Maybe there will be a
useful way to integrate it later on when the cream and
cherries are being added. Anyway, just my opinion should
anyone care.

On the topic of templates, there is a W3C compliant
templating system already, it's called XSLT. If you're
interested, I've created a light-weight PHP framework (in
one file) which makes implementing XSLT a heck of a lot
easier - "instant" in fact. It uses a "model view
controller" approach. The framework-in-a-file is the
controller, you create the XML (from your model) and your
XSLT templates create the view. Anyway, I would be
interested in people's feedback/bug-reports. I have not yet
created a web page for it (need to make some tutorials). I'm
testing it on another open source project I'm working on -
YAPPA (Yet Another Php Photo Album) - "skins"-a-plenty.

comment:7 Changed 10 years ago by virtualmice

Logged In: YES 
user_id=631514

I belive that, for the present, core PHPEclipse features are
what we must concentrate on.
Code editing and debugging are priorities. And we should
also get ready for the upcoming PHP 5.
On the other hand, providing a framework/API for people to
graft specific fuctionnality (like Smarty or NukeXXX
support) to the IDE (maybe through the use of wizards) might
be a core feature.
Does anyone want to explore this ?

comment:8 Changed 10 years ago by jsurfer

Logged In: YES 
user_id=810238

Smarty syntax highlighting (i.e. for *.tpl files) is on the
plan for release 1.0.9. 
This doesn't mean that smarty will be integrated as a
template engine into phpeclipse! 

BTW: I'm using tikiwiki at:
http://www.phpeclipse.de

comment:9 Changed 7 years ago by bananeweizen

  • Status changed from assigned to closed
Logged In: YES 
user_id=440739

Smarty editing is possible in current versions. Closing.
Note: See TracTickets for help on using tickets.