speich.net logo

How to create PHP documentation in PhpStorm

July 27th, 2010 Simon No comments

PhpStorm displays your own code documentation in the code assist. But what if you wanted to create a separate documentation you can hand out or integrate into your website? Then you should use phpDocumentor. You can configure and run phpDocumentor directly from PhpStorm as an external tool. Here is what you have to do:

Read more…

Categories: PHP Tags: , ,

JavaScript and dojo with PhpStorm

July 16th, 2010 Simon No comments

Just a quick post about the new PHP IDE  by JetBRAINS. So far I’ve been working with Aptana Studio. I also tried NetBeans and Comodo Edit, but none was really satisfying, because either dojo or ftp support was missing (if I find time, I’ll write a post in more detail about the differences between those IDEs).

But now there is PhpStorm. I’m really impressed and enthused by its features, especially code completion for JavaScript. Since JavaScript is a loosely typed language, it’s difficult to write a good code assist. But PhpStorm just picks up everything.  For example, if I use dojo.hitch to set the scope of a function, it catches what ‘this’ refers to within the anonymous function !

Code Assist in action

PHPStorm's amazing code assist in action. Notice that setting the scope with dojo.hitch is reflected in code assist!

Categories: JavaScript, PHP Tags: ,

Integration of phpDocumentor into Eclipse or Aptana

May 8th, 2010 Simon No comments

You can execute phpDocumentor directly from Aptana or Eclipse. The PHP-project you would like to document with phpDocumentor needs to be open and selected in eclipse before you start the following steps:

Read more…

Categories: PHP Tags: ,

Tutorial Part 1: REST with Dojo and PHP

February 13th, 2010 Simon No comments

I only started recently to dig into REST, so I’m in no way an expert in this field. There are not that many tutorials on the internet, and the ones I found were only of limited help. They all seemed to miss something or, rather, I missed something. So I decided to write my own tutorial about my findings to help others that might have the same problems. On the client side, I’ll use the Dojo Toolkit, on the server side, PHP.

I will focus mainly on providing and explaining some working code examples including server PHP code. At the end of this article you can find all code as a downloadable zip-file. As an introduction to REST, read some of the tutorials linked at the end of this article, because I’m not going to repeat some of the things you can read there.

Read more…

Categories: JavaScript, PHP Tags: ,

PHP, und SQLite mit kurzen oder langen Spaltennamen

September 6th, 2009 Simon No comments

Je nach Version von SQLite werden Tabellenspalten nach einer SELECT Abfrage mit oder ohne Tabellennamen zurückgegeben. Zum Beispiel liefert die Abfrage:

SELECT Spalte FROM Tabelle t

die Spalten als t.Spalte oder als Spalte. Dies kann mit der PRAGMA Abfrage

pragma short_column_names = 0

auf t.Spalte gesetzt

oder mit

pragma short_column_names = 1

auf nur Spalte gesetzt werden (Stand PHP5.3).

Categories: PHP Tags:

Integration von phpDocumentor in Eclipse oder Aptana

July 25th, 2008 Simon No comments

phpDocumentor kann direkt aus Aptana oder Eclipse ausgeführt werden. Das zu dokumentierende Projekt muss dazu geöffnet sein.

1. ‘External Tools’ Dialog aufrufen über ‘Run -> External Tools -> External Tools…’

Read more…

Categories: PHP Tags: ,

© 2009 speich.net, Konzept und Programmierung Simon Speich.

Die Artikel auf dieser Seite laufen mit WordPress. Theme by NeoEase