Page 1 of 1

PHP concept question

Posted: Mon Mar 08, 2010 7:58 am
by riversr54
First of all, I'm new to PHP web programming. I have a lot of experience in the Microsoft asp.net/vb.net/c# world but very little in the PHP world. I'm trying to understand what appears to be a totally different approach for PHP. In the MS world of web programming, you design the GUI for your app and then write code mostly as events for the components. From what I've seen in PHP, that is not the method. It seems to me that most web programming in PHP is done by using basic HTML components, input boxes, etc., then using PHP to manipulate the actions of those components.

Am I close to being correct? Or totall of course?

If anyone knows of a good resouce for a MS programmer making the switch to PHP, I would appreciate a pointer.

Thanks,

riversr

Re: PHP concept question

Posted: Mon Mar 08, 2010 12:53 pm
by Christopher
Your observation is correct. You can either embrace one of the several PHP styles (the current being MVC with View Helpers) or try a .NET style PHP framework like Prado.

Re: PHP concept question

Posted: Mon Mar 08, 2010 12:57 pm
by josh
Instead of events we have http events (requests).

Its called passive MVC.

I'd just read up on Zend Framework and follow their quick start guide. You'd still be totally abstracted from URLs. You use route names in your views to generate links. Then you can control how routes are mapped to URLs