Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts

    what is framework . why is it useful

    Very basic question , googled for it , but could not get the information i wanted.


    There are so many frameworks like cakePHP , codeigniter , Zend.

    What is the use of these frameworks . what things can be done with them which otherwise are difficult to do with simple php.

    i want to know the examples like

    if i do AJAX then by DOM methods i require 30 lines of code but if i use Jquery or prototype it will take 3-4 lines . So there i can feel the difference.
    can anyone give me the examples with respect to PHP so that framework makes work easier . and which framework should be used . Difficult to choose
    Please de-reputate me
    © 0o0o0o0

    Its better to rule in Hell then to serve in Heaven

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Frameworks save development time. They can abstract out functionality which means you can re-use code a lot more.

    For example if there is a PHP based framework that handles user authentication on a website it can simplify things. I wouldn't need to handle talking to the database and doing the authentication myself. And then if I wanted to check the authentication status of a user or their access level for a particular resource, I can just call functions that are already in place that handle all that. Additional when you abstract functionality like that it can be easier on running down programming errors, more so when you aren't on the web platform, if the code behind the framework is battle tested and known to be extremely reliable.
    OracleGuy

  • #3
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Think of it like this, lets say you build cars. You could build every piece like the casing, engine, axes, etc from scratch. OR you could buy the pieces already put together so you only need to fit together a few pieces to make it work.

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    using a framework is like buying a fastfood to eat a sendwich, but I agree is faster and easy then cooking.

    regards

  • #5
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts
    which framework should i use . As i haven't studied any , so i want to have your opinion.
    Please de-reputate me
    © 0o0o0o0

    Its better to rule in Hell then to serve in Heaven

  • #6
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Quote Originally Posted by o0O0o.o0O0o View Post
    which framework should i use . As i haven't studied any , so i want to have your opinion.
    Depends what you want to do.
    OracleGuy

  • #7
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts
    Quote Originally Posted by oracleguy View Post
    Depends what you want to do.
    It means for every requirement there is different Framework?

    I want the simple PHP Framework to build mysql based websites. Is there any thing more specific requirements for frameworks.
    I searched internet and found Codeigniter. Is the good . My friend has book on it so will be easy to start with. But someone knows that some other framework is better than i will go for it
    Last edited by o0O0o.o0O0o; 05-02-2008 at 01:29 AM.
    Please de-reputate me
    © 0o0o0o0

    Its better to rule in Hell then to serve in Heaven

  • #8
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Depends what the website is going to need to do.

    There probably aren't many PHP frameworks just for mysql support since you can just use the mysql functions in PHP directly if thats all you want. But if you want to build websites with a CMS (as an example) that uses a mysql database, then you'll find stuff.
    OracleGuy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •