PHP concept question

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
riversr54
Forum Newbie
Posts: 9
Joined: Wed Feb 24, 2010 9:02 am

PHP concept question

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: PHP concept question

Post 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.
(#10850)
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: PHP concept question

Post 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
Post Reply