TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 07-10-2009, 10:25 AM   #1 (permalink)
The Wanderer
 
Join Date: Jun 2009
Posts: 11
Thanks: 4
dodgeqwe is on a distinguished road
Default what is a framework??

please explain me what is a frame work in simple words.
dodgeqwe is offline  
Reply With Quote
Old 07-10-2009, 11:29 AM   #2 (permalink)
The Acquainted
 
captainmerton's Avatar
 
Join Date: May 2009
Posts: 178
Thanks: 9
captainmerton is on a distinguished road
Default

Broadly speaking its a model for doing something if you find yourself developing websites that always do the same things like manage user access, display data, facilitate upload of photos, manage access to a back end database eventually you are going to start designing these websites in a similar way to make it quicker to do and easier to change going forward. What you are creating is a framework. I think at a more detailed level a php framework might be a way to create and manage objects, classes, database interaction. Thats just some thoughts from a fellow beginner.
captainmerton is offline  
Reply With Quote
The Following User Says Thank You to captainmerton For This Useful Post:
dodgeqwe (07-13-2009)
Old 07-10-2009, 03:51 PM   #3 (permalink)
The Addict
 
Join Date: May 2009
Posts: 287
Thanks: 5
adamdecaf is on a distinguished road
Default

I swear there was a thread like this, but I can't find it.

anyway...

A framework (one word) is a collection of code designed to made coding easier. Frameworks can simplify multi-step processes. They can also make sense of mundane or difficult tasks. The downside is you may have to "learn" a new "language" to use them.

For example jQuery has a very different syntax then regular JavaScript.

javascript Code:
$(document).ready(function() {
     $("a").onclick(function() {
         $(this).css({ color: "red", background: "black"});
     });
});

The same can be done with regular JavaScript.
javascript Code:
function color() {
    var n = document.getElementsById("a");
    var size = n.length - 1, x;
   
    for (x = 0; x < size; x++) {
        n[x].style.color = "#990000";
        n[x].style.backGroundColor = "#000000";
    }

return;
}

    n.addEventListener("click", "color", false);

It's just your preference, companies will often use a framework because it can be more reliable and easier to use.
__________________
My Site
adamdecaf is offline  
Reply With Quote
The Following User Says Thank You to adamdecaf For This Useful Post:
dodgeqwe (07-13-2009)
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Framework: Do's and Don'ts Jim Advanced PHP Programming 7 04-14-2009 03:00 PM
Critique the framework I use Enfernikus Advanced PHP Programming 4 04-02-2009 12:18 AM
Zoop Framework 1.5 released bobthecow Libraries & Extensions 3 11-02-2008 06:54 PM
Tutorial to create own framework Tanax Advanced PHP Programming 11 10-20-2008 06:02 PM
Framework Rendair Javascript, AJAX, E4X 1 03-09-2008 10:28 PM


All times are GMT. The time now is 10:18 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design