Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PHP framework

Featured Replies

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?

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.

  • 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...

I'd second what Chris said. I had made my own 'framework' and was happy with it...then I tried CodeIgniter - oh my.

  • 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

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.

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. :p

 

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. :D

Edited by Samus

  • 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.

  • Author

I used to do what you did, but then took a codeigniter to the knee. :p

 

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. :D

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

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.

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 by Renaissance-Design

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.

  • 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.

:clapping: ... I'm sorry lol

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.