May 7, 201214 yr I know there has been a lot of threads on this, and I have planned on learning one, but I just find it so much easier writing pages as I already do without using a Framework and having to take the time to learn one, is this detrimental?
May 7, 201214 yr I am in a similar position. I taught myself PHP and I am now thinking I would like to learn to create PHP websites in a more structured way, but using a framework like Zend seems very daunting.
May 7, 201214 yr Author I am in a similar position. I taught myself PHP and I am now thinking I would like to learn to create PHP websites in a more structured way, but using a framework like Zend seems very daunting. Same, every situation I have encountered I have been able to just write the PHP myself, I haven't come across any situation yet where I've thought, I need a framework for this...
May 7, 201214 yr Zend is very daunting full stop. Start with something easier to get into, like CodeIgniter.
May 7, 201214 yr I'd second what Chris said. I had made my own 'framework' and was happy with it...then I tried CodeIgniter - oh my.
May 7, 201214 yr Author But what does it bring to the table, can you guys give any specific examples of where using a framework is advantageous? I know that it is, but I haven't ever been shown a specific example which compared writing the code from scratch and using a framework, and then showing why it was better. I'm not expecting anyone to write any full code lol, but I would be grateful of a simple example
May 7, 201214 yr You don't need a framework to 'write code', you should use one to build an application - or website - if you prefer that word. If you're writing individual scripts to do small bits of functionality, a whole framework would be overkill.
May 7, 201214 yr But what does it bring to the table, can you guys give any specific examples of where using a framework is advantageous? I know that it is, but I haven't ever been shown a specific example which compared writing the code from scratch and using a framework, and then showing why it was better. I'm not expecting anyone to write any full code lol, but I would be grateful of a simple example I used to do what you did, but then took a codeigniter to the knee. But seriously, before I even think of starting a new application, I always get codeigniter setup first. A simple example of how it makes my life easier could be with the form validation class. With a few lines, I can ensure all user input coming is what I want it to be. Have a read: http://codeigniter.com/user_guide/libraries/form_validation.html I could probably whip out a secure basic blogging system in about 10 minutes with CI. Edited May 7, 201214 yr by Samus
May 7, 201214 yr I could probably whip out a secure basic blogging system in about 10 minutes with CI. You're topping this guy! http://www.youtube.com/watch?v=ub4-sH39Zns
May 7, 201214 yr Author You don't need a framework to 'write code', you should use one to build an application - or website - if you prefer that word. If you're writing individual scripts to do small bits of functionality, a whole framework would be overkill. That's the thing, I'm in the middle of building a few sites from the ground up and just starting a new one, which is why this has come into my head. It's not a hugely complicated or big site which is why I think it could be good to use a framework on to learn it. Then maybe start converting the other sites to it.
May 7, 201214 yr Author I used to do what you did, but then took a codeigniter to the knee. But seriously, before I even think of starting a new application, I always get codeigniter setup first. A simple example of how it makes my life easier could be with the form validation class. With a few lines, I can ensure all user input coming is what I want it to be. Have a read: http://codeigniter.com/user_guide/libraries/form_validation.html I could probably whip out a secure basic blogging system in about 10 minutes with CI. That looks good, think I am going to start using it, seems like the easiest, securest way and will save me a lot of time thinking about how I need to code things to get what I want done
May 8, 201214 yr On day I will learn Zend, but the few times I've looked at it in the past have scared me It's a scary, scary beast. Edited May 8, 201214 yr by Renaissance-Design Added link
May 8, 201214 yr I suppose another advantage is that you are using code that has been tested many times by many people.
May 8, 201214 yr Another option is to learn Drupal. To me it's a perfect cross between a CMS and framework. Out of the box it functions just like a CMS, but once you start getting into writing custom modules you find out that you can use the Drupal framework to do anything you want. Drupal is awesome. The end.
May 8, 201214 yr A framework is only a set of libraries to make development faster, so you're not having to rewrite form sanitation or a front controller or whatever every time you start a new project. A CMS is a finished software product for the purpose of running sites. ExpressionEngine is a CMS written on top of a framework (CodeIgniter). Edited to add: Any CMS that has an extension architecture will have elements of framework available for the purpose of writing those extensions/plugins/whatever. Edited May 8, 201214 yr by Renaissance-Design
May 11, 201214 yr PHP is a server side scripting language,PHP Framework is very important to develop an application.PHP Framework provides a platform to develop the application and make easy connectivity of database from an application.
May 13, 201214 yr Author PHP is a server side scripting language,PHP Framework is very important to develop an application.PHP Framework provides a platform to develop the application and make easy connectivity of database from an application. ... I'm sorry lol
Create an account or sign in to comment