Is It necessary to add PHP-Framework to PHP ?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
nileshpatel
Forum Newbie
Posts: 2
Joined: Thu Jun 04, 2009 1:57 am

Is It necessary to add PHP-Framework to PHP ?

Post by nileshpatel »

FrameWork ?
Is It necessary to add PHP-Framework to PHP ?

I’ve seen PHPINFO it’ll not show any information related to php-framework.

It’ll show Zend Engine is it FrameWork?

Which one is Best ZEnd Or CakePHP..

Please guide me :banghead:

Thank in Advance :drunk:
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Is It necessary to add PHP-Framework to PHP ?

Post by alex.barylski »

Neither, hand code eveything, you actually become more efficient, because there is no learning curve. :|
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Is It necessary to add PHP-Framework to PHP ?

Post by Christopher »

PCSpectra wrote:Neither, hand code eveything, you actually become more efficient, because there is no learning curve. :|
In reality there is a HUGE learning curve to code everything that you would use in a framework. And unless you are the best programmer in the universe, the code in a framework will be better than your own -- much better during your "learning curve." :|
(#10850)
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Is It necessary to add PHP-Framework to PHP ?

Post by Benjamin »

arborint wrote:And unless you are the best programmer in the universe
I am soooo the best programmer in the universe.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Is It necessary to add PHP-Framework to PHP ?

Post by alex.barylski »

In reality there is a HUGE learning curve to code everything that you would use in a framework. And unless you are the best programmer in the universe, the code in a framework will be better than your own -- much better during your "learning curve."
I was being sarcastic... :)
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Is It necessary to add PHP-Framework to PHP ?

Post by Christopher »

astions wrote:I am soooo the best programmer in the universe.
OOOOOOOOOOOK .... everybody except astions!
(#10850)
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Is It necessary to add PHP-Framework to PHP ?

Post by Christopher »

PCSpectra wrote:I was being sarcastic... :)
To a possible newbie who may not speak English as a first language...
(#10850)
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Is It necessary to add PHP-Framework to PHP ?

Post by alex.barylski »

To a possible newbie who may not speak English as a first language...
Yup...I'm that cruel... :P
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Is It necessary to add PHP-Framework to PHP ?

Post by Christopher »

nileshpatel wrote:FrameWork ?
Is It necessary to add PHP-Framework to PHP ?

I’ve seen PHPINFO it’ll not show any information related to php-framework.
The framework used will not show in PHPINFO. It is not necessary to use a framework to build a website using PHP.
nileshpatel wrote:It’ll show Zend Engine is it FrameWork?

Which one is Best ZEnd Or CakePHP..
They are different. They are also free. You can download and try them to see which you like best.
(#10850)
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Is It necessary to add PHP-Framework to PHP ?

Post by alex.barylski »

They are different. They are also free. You can download and try them to see which you like best.
To a potential newbie who may not even speak English your going to recommend downloading those complicated frameworks without first learning the basics?

Someone is shooting for the 'most helpful award' albeit for the third or forth time, but still. :P :lol:

Just teasing of course, nothing wrong with being helpful. However I don't see being sarcastic as being a 'bad thing' either. :P
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Is It necessary to add PHP-Framework to PHP ?

Post by Christopher »

PCSpectra wrote:To a potential newbie who may not even speak English your going to recommend downloading those complicated frameworks without first learning the basics?
It depends on what "the basics" are? I certainly don't consider building your own framework to be "the basics." I don't even consider building site the wrong way several times "the basics." I don't subscribe to the idea that you need to be able to build a thing to use it. I think a beginner might be better served learning PHP from inside a framework than starting with "<?php".
(#10850)
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Is It necessary to add PHP-Framework to PHP ?

Post by califdon »

arborint wrote:It depends on what "the basics" are? I certainly don't consider building your own framework to be "the basics." I don't even consider building site the wrong way several times "the basics." I don't subscribe to the idea that you need to be able to build a thing to use it. I think a beginner might be better served learning PHP from inside a framework than starting with "<?php".
It depends on what the objective is. If it is to start producing advanced scripts with minimum training investment, no doubt there is a big advantage to frameworks. If it is to gain pleasure from understanding the way PHP works, and for hobby purposes, I think you get a different answer. My own situation is somewhere between those extremities. I don't use a framework, but would probably be a lot more productive if I did.
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: Is It necessary to add PHP-Framework to PHP ?

Post by JAB Creations »

Frameworks?! IT BURNS! IT BURNS!

*runs screaming off a cliff completely engulfed in flames*

Joking aside I have to choose all of the above. Sometimes you have to do something that simply can't be done without an existing complex module that you simply can't humanly write yourself within X amount of given time (such as jQuery's animations). However it is insanely common for people to ask how to use a complex framework to do something simple (such as changing a CSS class with JavaScript) that screams massive overhead.

So learning both is certainly the way to go and learning to balance them (when to do it straight or when to use a framework) is critical if you want to execute your approach soundly. As far as serverside frameworks are concerned it's best to ask others as I'm talking entirely from clientside experience though can see a lot of parallel problems between client and server approaches.
Post Reply