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 09-27-2008, 03:51 PM   #1 (permalink)
The Contributor
 
tego10122's Avatar
 
Join Date: Sep 2008
Location: Miami
Posts: 39
Thanks: 7
tego10122 is on a distinguished road
Default FrameWorks

I've seen many sites take a turn onto the framework road and I was just wondering (because iv'e downloaded zenframework). How do I use frameworks? whats the purpose?, besides security and stability. If I coded a php application how do I introduce the framework to the application?

please excuse my newbness.
Send a message via MSN to tego10122
tego10122 is offline  
Reply With Quote
Old 09-27-2008, 07:35 PM   #2 (permalink)
The Contributor
 
Izym's Avatar
 
Join Date: Sep 2007
Posts: 32
Thanks: 0
Izym is on a distinguished road
Default

With most frameworks you can't just apply it to your current application. They're made for making it easier to code an application and usually has a way that you have to code your application in. To learn how to use a framework, please check the website of the framework you want to use, there should be a tutorial or something similar.
Izym is offline  
Reply With Quote
Old 09-28-2008, 02:11 PM   #3 (permalink)
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default

Quote:
With most frameworks you can't just apply it to your current application.
This can be true with some frameworks but there are some really good ones out there that truly speed up application development. I find CodeIgniter to be the best framework because it is small and lightweight, easy to use, very flexible, and has great documentation.
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
Old 09-28-2008, 06:37 PM   #4 (permalink)
The Contributor
 
Izym's Avatar
 
Join Date: Sep 2007
Posts: 32
Thanks: 0
Izym is on a distinguished road
Default

Quote:
Originally Posted by ETbyrne View Post
This can be true with some frameworks but there are some really good ones out there that truly speed up application development. I find CodeIgniter to be the best framework because it is small and lightweight, easy to use, very flexible, and has great documentation.
Still requires a fairly big amount of work to apply CodeIgniter to an application that has already been made.
Izym is offline  
Reply With Quote
Old 09-28-2008, 08:43 PM   #5 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

A framework can be used to help speed up development. It does this because all the generic coding (DB, Authentication etc) has already been done, so you don't have to use up valuable time recoding unnecessarily and also you don't really need to fully test each bit as you know it should work, saving time (time=money these days).

However, most frameworks implement some fairly advanced programming concepts like MVC, Active record etc, so using these frameworks as a new php'er (or even a veteran coder) can seem daunting at first if you dont understand them.

Its true that most frameworks have manuals but until you have come to grips with the basic ideas of these advanced concepts it will most likely leave you baffled.

Anyway for Zend, there are a few video tutorials that you may find useful.

Zend Framework

I belive there are similar for CodeIgniter too, but I haven't checked

I personally don't really use frameworks, I usually find they are too big and cumbersome for what I need and I find it quicker just to fudge something together from my own code base rather than studying a vast and complex framework to get simple things done.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Old 09-29-2008, 01:27 AM   #6 (permalink)
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default

Quote:
Originally Posted by Izym View Post
Still requires a fairly big amount of work to apply CodeIgniter to an application that has already been made.
That is very true and I wouldn't suggest taking an existing application and remaking it with a framework unless you where planning on remaking it anyways.
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
Old 09-29-2008, 07:46 AM   #7 (permalink)
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

Frameworks are made for easing the application development and deployment. What you need to focus on when working with a framework is your logic, instead of the "behind code" programming. Plus, you don't have to repair the core code, you only need to repair YOUR code if something goes wrong (perhaps ZF has some inner bugs, but they can be easily fixed if you know how it works). Of course, learning a framework can be a little tricky, but one you get the basics, it all becomes very easy. However, I would only recommend Zend Framework for developing large scale applications. It works extremely well and is fully compatible with PHP5. Besides that, it has a large amount of already made classes and a built-in helpers system. I don't see CodeIgniter (not even CakePHP) as a true framework, because the pattern they follow involve too much learning and sometimes it can be really hard to accomplish what you want to achieve. Even ZF has its flaws and sometimes needs some hacking, but atm it's the best PHP framework to use.
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote
Old 09-29-2008, 04:59 PM   #8 (permalink)
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default

Quote:
I don't see CodeIgniter (not even CakePHP) as a true framework, because the pattern they follow involve too much learning and sometimes it can be really hard to accomplish what you want to achieve.
What?! I've tried all three so I know what I'm talking about when I say that CodeIgniter and CakePHP are very easy to learn. Zend Framework is hard to learn in my opinion.
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
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


All times are GMT. The time now is 05:06 AM.

 
     

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