|
|
InstallSmartyPDT
#installing smartypdt.
Installation
This page describes the installation steps for smartypdt
Requirements
Download PDT all-in-one from Zend's site:
OR, download all dependencies (by yourself):
- Java 5 JRE version - here
- Eclipse SDK v3.3.1.1 version - here
- EMF SDO XSD 2.3.1 SDK version - here
- GEF 3.3.1 SDK version - here
- DTP 1.5.1 SDK version - here
- WTP 2.0.1 SDK version - here
- PDT 1.0.2 I20071209 - here
Install
(thanks to bdgeorge for his comment)
- Unzip the smartypdt_X.zip (from http://code.google.com/p/smartypdt) file into the eclipse folder
- Go to Help->Software Updates->Manage Configuration
- Tick the icon to 'Show disabled Features'
- Find the "Smarty Feature nnnnn" entry and select it
- Click the "Enable" option from the Available tasks
- Restart Eclipse when prompted
Sign in to add a comment

Thank you so much for this plugin! keep up the good work!
Max
Thank you, it is very useful.
You are cool.
the links for all-in-one are broken ;(
brrrrr not working for me...
if u want to give it a try... for all in one pack go to http://downloads.zend.com/pdt/all-in-one/ plug still not working for me... if You know how to install this plugin correcly i wound be thankfull for some info.. mmazur.mm@gmail.com
It doesnt work for templates with .html, looks like only for .tpl. I had try to enable it for .html files, but unsuccessfully.
This is excellent work, and has helped me significantly. Thank you.
You have to unzip the file in the parent folder of eclipse, the ZIP file has the eclipse folder inside as include path.
ROLA. (from Chile.. so sorry my english :S)
Has anyone got this to work with anything more than code colouring? Has anyone got it to actually work as it's described? By which i mean, open and closed tags, code completion, without html syntax warnings for every line of smarty code in the .tpl, etc.
Couldn't get it working, in the problems tab it keeps giving me the strangest error message - "2". Tried different combinations: PDT 1.0.1 20071209, PDT 1.0.1 20071210k, PDT 1.0.2 20080102 Smarty Feature 0.5.2 20071109, Smarty Feature 0.5.2 20080205 I suppose the code breaks due to conflicts with another Eclipse plugin from the ones which this one depends on.
However, the idea is great, I hope I will soon be able to run the PHP debugger at least ;).
Can somebody please post working configuration versions set.
I couldnt even get it to install in:
Eclipse Version: 3.3.1.1
ensure you have jre5 not jre6, it will not work with jre6
Ensure .tpl is not registered with any other edit content type => window->preferences->general->content types->text check: "html" and "php content type" remove tpl from both of these.
Thanks, the feature is very useful for me
Eclipse PDT 1.0.2 (last stable) JRE 1.6 update 5 (last stable) SmartyPDT 1.0.4 (last)
Not work. I open .tpl file in "Smarty Editor". If I type text "{" fnd press Alt+Space that dropdown html tags (no Smarty syntax)!
On startup Eclipse IDE I see the error message, and string "Building worckspase" always show on screen.
Please - release First stable release this Plugin.
THis message show on startup Eclipse: "Unknown(): (null): Unable to initialize module Module compiled with API=20060613, debug=0, thread-safety=1 PHP compiled with module API=10020429, debug=0, thread-safety=1 These options need to match"
If file opened on preview session, I see next message: "Severity and Description Path Resource Location Creation Time Id A JSONObject text must begin with '{' at character 1 of Status: 404 dev.cms.com/application/cms.com/www/templates/page three_columns.html.tpl line 1 1211374078076 2022"
Let me explain how it did work for me in Zend Studio for Eclipse 6 in Windows XP.
All were installed on instructions... And - open .tpl file in "Smarty Editor" - ERROR:
java.lang.IllegalAccessError?: tried to access field org.eclipse.php.internal.ui.editor.PHPStructuredEditor.isExternal from class org.eclipse.php.smarty.ui.editor.SmartyStructuredEditor?
that to do?
I have the same problem. I have Smarty Feature 0.5.4 installed and enabled in Eclipse 3.3.2, but when I tried to open a .tpl file, an error message shown up; "Error opening the editor. Reason: tried to access field org.eclipse.php.internal.ui.editor.PHPStructuredEditor.isExternal from class org.eclipse.php.smarty.ui.editor.SmartyStructuredEditor?"
If you have the problem that azov and btnguyen2k have (the two posts just above this one), simply associate .tpl with the PHP editor instead of the Smarty template editor. For some reason this works.
Credit for this one goes to a friend of mine, Dirk.
Thanks dosperios for the tip. It seems to work. However, I uninstall SmartyPDT and associate .tpl files with PHP editor and it still works the same. It looks like we are in fact using PHP editor not SmartyPDT (which is still not really working for me).
Here's newer version which works with jre 1.6
http://code.google.com/p/smartypdt/issues/detail?colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&q=31&can=1&id=31#c11
(It's not in download section, dunno why)
then i got this "Error: A JSONObject text must begin with '{' at character 1 of Status: 404 "
solution posted here:
http://groups.google.com/group/smarty-pdt/browse_thread/thread/aa38531c2ecefd3e
finally i got it to "work" by which i mean opening tpl files in smarty editor and syntax highlight, thou every phrase is marked as warning and got no code completition
I'll be happy to see it working, but assuming from lack of activity in this project i think creators just got tired from constant complaints and let go ;]
Do not highlight such code <option value="box" {if 'box' == $des->event_module}selected{/if}>Box Border</option>
just get an error
Comment by azov...@ukr.net, Jul 06, 2008
have the same problem.. :(
Comment by ben.kelada, May 07, 2008
10x, works now =)
No possibility to change the delimiters and the file extensions to use .htm and .html?
My problem is the following:
Error opening the editor. tried to access field org.eclipse.php.internal.ui.editor.PHPStructuredEditor.isExternal from class org.eclipse.php.smarty.ui.editor.SmartyStructuredEditor?
Even when opening the tpl with the PHP Editor I can't get the template within the Smarty editor, it just shows up the template within the PHP Editor.
Any solutions for this issue? I also tried the 0.5.5 version but still no change in that.
Thanks for your help!
Please renew this plugin to Eclipse Genymede 3.4 and PDT 2.0 and JRE 1.6u7. I have use this plugin! Thanks!
How can we install this in Eclipse Ganymede 3.4? Worked great for me in Europa and would like to use it again!
Was able to get it to work in 3.4 with some help from #eclipse. Just paste the unzipped "eclipse" folder into $ECLIPSEPATH/dropins/ Restart Eclipse
Great stuff man :) Keep up good work :) Thx for this :)