Zend PDT-Eclipse | *.tpl file type, *.html preview, ...
Posted: Fri Jul 06, 2007 11:11 am
Hi!
I have downloaded "Eclipse PHP Development Tools" from Zend (http://www.zend.com/pdt).
I have used PHPEclipse (http://www.phpeclipse.de) a few weeks agp, and now I'm trying to learn to how to use PDT. I have some questions. Please help me. Thank you in advance.
1. I often use an extension like *.xhtml.tpl to store Smarty Templates. But it seems that *.tpl extension is hard-locked to PHP-Editor! (@see: Window | Preferences | Content Types | PHP Content Type).
After saving a tpl, I encounter with syntax errors in "Problems View". They indicate that this HTML-code is not a valid PHP-Code. How can change this? I mean how can I use WDT HTML Editor when I want to create/edit *.tpl files? (By the way, I have download All-in-one package which already contains WDT.)
2. I decided to create an html file. I did and after I wrote the code I was unable to see the preview. I don't know how to see the preview.
3. PHPEclipse has a great feature: It automatically makes a preview after you save each file. But in PDT, I always need to right-click over the editor and choose "Run as... -> PHP Script" to see the results. Is there a better way to achieve the same result? As you know, sometimes we need to pass parameters to our scripts (e.g. ?id=21321). How can I pass parameters? PHPEclipse, once again, has a great advantage which displays the browser's address bar, so you can easily enter your desired parameters.
4. I use UTF-8 Encoding for most of my files. How can I change this at the begining of a Project/Workspace, so the other files (including: php, tpl, html, etc.) will inheritance this configuration?
5. Can I link CHM version of PHP Manual with PDT? It seems that I need to download the HTML version of the Manual, since PDT in unable to format the right command to launch to CHM version.
Thank you in advance
I have downloaded "Eclipse PHP Development Tools" from Zend (http://www.zend.com/pdt).
I have used PHPEclipse (http://www.phpeclipse.de) a few weeks agp, and now I'm trying to learn to how to use PDT. I have some questions. Please help me. Thank you in advance.
1. I often use an extension like *.xhtml.tpl to store Smarty Templates. But it seems that *.tpl extension is hard-locked to PHP-Editor! (@see: Window | Preferences | Content Types | PHP Content Type).
After saving a tpl, I encounter with syntax errors in "Problems View". They indicate that this HTML-code is not a valid PHP-Code. How can change this? I mean how can I use WDT HTML Editor when I want to create/edit *.tpl files? (By the way, I have download All-in-one package which already contains WDT.)
2. I decided to create an html file. I did and after I wrote the code I was unable to see the preview. I don't know how to see the preview.
3. PHPEclipse has a great feature: It automatically makes a preview after you save each file. But in PDT, I always need to right-click over the editor and choose "Run as... -> PHP Script" to see the results. Is there a better way to achieve the same result? As you know, sometimes we need to pass parameters to our scripts (e.g. ?id=21321). How can I pass parameters? PHPEclipse, once again, has a great advantage which displays the browser's address bar, so you can easily enter your desired parameters.
4. I use UTF-8 Encoding for most of my files. How can I change this at the begining of a Project/Workspace, so the other files (including: php, tpl, html, etc.) will inheritance this configuration?
5. Can I link CHM version of PHP Manual with PDT? It seems that I need to download the HTML version of the Manual, since PDT in unable to format the right command to launch to CHM version.
Thank you in advance