Develop PHP Applications Faster

In a classic app you mostly have a .php file for every page, and you have some sort of global.php that holds the header and footer of your site. with MVC (Model, View, Controller) you have 1 index.php that is talking to the outside (the controller) that uses a 'router' that determines what you are trying to view (l ooks at the requested url), a bit like mod_rewrite but easier and better, then you have the View that uses a template to build the webpages you want to 'view'. The Model is a representation from the DB in php and is build in doctrine or propel, which make using the DB very easy. You don't really need to know SQL anymore (but it always is nice if you do :))

This is how I build websites actually. Was absolutely sure that I was the first to invent such a scheme, lol. :-) How old is the MVC concept?
 
TextEdit and Dreamweaver depending what kind of mood i'm in or if its a quick edit.

Or nano directly on the server :P

I love that nano on debian 6 has syntax highlighting !
 
That is one of the most concise explanations of MVC that I have ever read.

In a classic app you mostly have a .php file for every page, and you have some sort of global.php that holds the header and footer of your site. with MVC (Model, View, Controller) you have 1 index.php that is talking to the outside (the controller) that uses a 'router' that determines what you are trying to view (l ooks at the requested url), a bit like mod_rewrite but easier and better, then you have the View that uses a template to build the webpages you want to 'view'. The Model is a representation from the DB in php and is build in doctrine or propel, which make using the DB very easy.
 
@saxgod Man, I'd never go for Symfony. That framework is slower than a dead turtle. And no, their arguments about caching and all that don't stand when it comes to a real world app that has to be responsive. I played with it long time ago. Like the concept, like that it basically builds itself and all that and that you code very little but the speed was horrible. So I went with CodeIgniter, then Kohana, then Yii. So far Yii is by far the best. Reminds me of the time when I discovered Java and fell in love with it for it's awesome architecture and beautiful OOP language.
 
I use Netbeans for my PHP applications.

Implementing PHP + Ajax faster? Easy. jQuery. :)

Yii is pretty good.
 
Last edited:
Here's What I use.

Dreamweaver CS5 (has a few issues but overall performs much better then earlier versions of DW), Intellisense is pretty good, even picks up on custom functions from your code and any requires/includes you have linked to that document. One of the nice things I like about it (other software may have it, not sure) but once you include/require/require_once additional pages to your document it has a quick selector to easily switch back and forth. This also works for css, js files you have linked in your html (also shows a ReadOnly version of remote includes as well) I've not tried many alternatives for lack of time and learning a new IDE.

JQuery for JS Framework (easiest of the frameworks to implement, debug, and get up and running in a short period of time.)

For now I've written my own MVC framework, but have been closely eyeing CodeIgniter and may take the dive in and give it a shot, it looks like it has some great features. Once again if time is available to try it out.
 
I use notepad++ with FTP plugin - great performance plus nice coloring for any programming language. A few FF extensions like firebug and ColorZilla. for mysql - phpmyadmin
 
why-you-code-c-you-should-code-a-thumb.jpg
 
How is Dreamweaver? I tried it once and didnt like it much, but I suppose since then the things has changed.

p.s. Navicat rules :-)

Well listen, Dreamweaver is crappy and simple, but like any IDE it's not really the IDE itself, but rather the following factors:
1. How fast can you read The Help, in order to learn that IDE?
2. What's you're coding style? Do you use shorter wrapper function names, and shorter approaches that you use throughout all your projects?
3. Can you read and understand code? As in understand what it does, and why who wrote it chose to write it that way?

When it comes to features, I go well with whatever I can find. Windows GREP for example, I use it to find shit inside projects with 100s of files. Wouldn't hurt if the find&replace in dreamweaver would've worked faster. Same with its FTP functionality. For minor adj. it does the trick, but for uploading MBs of files I would rather use CuteFTP or FileZilla.
 
i use netbeans

and for quick ajax jquery is the right one to go with
 
Just use whatever you're most familiar with. It really works faster. Well unless of course, you want to change or improve. Aptana is good enough imo tho netbeans is more complete.
 
PhpStorm
PhpDesigner

I 've tried everything and these are my most favorite in terms of coding ease and efficiency.
 
@saxgod Man, I'd never go for Symfony. That framework is slower than a dead turtle. And no, their arguments about caching and all that don't stand when it comes to a real world app that has to be responsive. I played with it long time ago. Like the concept, like that it basically builds itself and all that and that you code very little but the speed was horrible. So I went with CodeIgniter, then Kohana, then Yii. So far Yii is by far the best. Reminds me of the time when I discovered Java and fell in love with it for it's awesome architecture and beautiful OOP language.

Thx i'll certainly check out Yii. Haven't heard from it. I was just starting in MVC so Symfony was the first one I saw. Didn't know speed would be an issue.
Was going to look at CodeIgniter next.
 
+100 for phpStorm. It isn't free but just try it (you may use it fully-functional trial version for 45 days) and I bet you'd love to write lots of PHP code using that IDE.
 
I feel like an idiot for visiting this thread. :( So many great programmers out there, and I am just a nick fail with my nick Extremephp :D I dont know coding yet, But I am always keen. But with no teacher, I dont like studying it myself. :(
 
Back
Top