PSTUBb
May 25 2007, 01:08 PM
PHP Frameworks What do you guys think of coding websites using framworks like Zend or CakePHP? I used to code my applications from scratch but it does get tedious and because PHP is not as structured as other languages it's very easy to create redundant, unmaintainable code. I think a framework should be more than just a bunch of libraries. It's true that having libraries for functions specific to what you are trying to do might help alot but it takes more than that to create some maintainable code. What I' m talking about is MVC and Front Controllers. The Model, View, Controller (MVC) way of coding seperates the data from the functions and the functions from the display. It is much easier at this point to implement site-wide modifications and fixes. Frameworks allow you to do this easily by already having an engine to do the communication between these 3 layers. Read more on the MVC method by googling it  Here are some available Frameworks. Read up on them and their documentation and find out which one is right for you're website. Frameworks, by the way, can be difficult to learn at first, but once you get down, will greatly improve your efficiency, speed and maintainability. http://www.codeigniter.com (Very fast and light weight) http://www.cakephp.orghttp://framework.zend.com (Only runs on PHP5 but is apparently very extensive) http://www.xisc.com (Prado: Not MVC oriented) http://www.symfony-project.comhttp://seagull.phpkitchen.comhttp://www.phpwact.orgThere are plenty more out there that you can find, list your favorite, post questions etc. I'm currently learning how to use CodeIgniter, my new record label website will be built on it. (Hoping to turn this into a portable CMS which I can use in developpement of other websites, as clients don't like mucking around in HTML source and I'm tired of using other people's bloated CMS software when all I need is something simple.) Hope this helps all you programmers out there! Sean
Reply
masugidsk8r
Jul 8 2007, 04:58 PM
I'm using CakePHP which seems to be pretty good. It acts like Ruby on Rails. The thing I don't like about PHP in general is how it handles HTML formatting. The tags are out of place when PHP parses the views. I have to use a lot of CODE echo "\n"; to clean it up a bit. Right now I'm new to it so I can't say that it is efficient as of now. However, with the ORM implemented into this framework I don't have to worry much about SQL writing and using the (mysql) functions at all, which is a lighter load for me. I haven't checked out the others that are on your list but I'm moving to Ruby on Rails as soon as I finish this project that I'm working on right now.
Reply
Similar Topics
Keywords : php, frameworks, leaner, efficient, coding, quick, overview,
- Coding Help!
Need Tutorial?! (3)
What Coding Languages Are Required?
(5) I want to add a feature in my website so that users can make a professional -looking resume-like web
page. It will be like a form based series of questions that visitor ll need to answer.Based on this
a webpage as prescribed in pre-defined template ll be created .I want to know to do this what
languages are used? I want some suggestion regarding this.My site is currently on Joomla platform.
thanks in advance....
Help With Coding!
please anybody help me! (2) Hi all..(if this is in bad section then sorry) I have one big problem with my site and I don't
know how I can repair it. I have auto refreshed Shout box at site but there is little problem!
When this shout box is accessed for guest there are coming spam bots and just spamming it. I know
how to do it but I don't know about php. I have code for make this shout box Spam protected, but
I dont know how to do it. All time when I add this code to php file, there is all things okey but
auto refresh is not working /sad.gif" style="vertical-align:middle" emoid=":(" bo....
New Found Php Coding Errors
I always thought these worked, but suddenly they no longer do?! (5) Hi i'm dan from new zealand, right next to my home land australia. I have been writing php
scripts for two years now and just recently none of them have been working. Please help me out as
best as you can, i'm sure it is only something simple. CODE ----------------Form
1-------------------------- <?php // ---- Customized form script for the HBRC---------------
// Receiving variables ----------------------------------- @$fn =
addslashes($_POST['fn']); @$ln =
addslashes($_POST['ln']); @....
Help With Some Website Coding
Databases and saving form results (4) Hey all, I was looking for some help with creating my new website. I have a form already created,
with some text areas, checkboxes, drop down menu's, ect. I need some help setting up the code to
save the form data once the user clicks "Submit" after filling in their information in the form. I
was hoping to do this 2 ways - 1. Saving the information into some type of database (MySQL I'm
guessing?) and 2. Have the form results emailed to me. I am familiar with the old way of emailing
the results by putting "mailto:email@domain.com" into the form, but new browse....
Sorting By The Day Of The Week
An overview of a discussion. (4) Yesterday BuffaloHelp asked if I knew of a function or script that could sort filenames by the day
of the week. He has files with names like so: Thursday567.htm Wednesday345.htm Monday123.htm
Friday789.htm Sunday234.htm If he reads the filenames from a directory and sorts the only by name
then the will end up in this order: Friday789.htm Monday123.htm Sunday234.htm Thursday567.htm
Wednesday345.htm The required result should be like so: Sunday234.htm Monday123.htm
Wednesday345.htm Thursday567.htm Friday789.htm There isn't just some nice simple function or
me....
Requesting Auto Generating Id Tag In Php Code
Php Coding (2) Hello...I'm designing a website in PHP where ppl can submit their links for "cool sites".
Anyway, when somebody submit's a link to a website for example "http://www.google.com" it
creates an id such as "index.php?id=1134411593". I dont want the links to be converted into
id's. I want it to remain as "http://www.google.com". I have the following coding on
( echo " ). I'm a novice. Please Help!!!!
Thanks... Plus I also want to add the date on when the link was submitted. Please follow our foru....
Html Within Php Coding
Is there a way to read HTML Code? (11) Is there a way to have PHP read a text file, which contains HTML Code, not text to display. This
way i have a simple code in every page, linking to this text file, and then if i'm wanting to
change the code, i only need to change the code in the text file. If that all makes sense?
/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /> I get the feeling it
can be done, but the only code i have seen is one that displays the contents of the text files.....
Coding Your Sites ?
Coding your sites (20) What kind of coding do you use on your sites? I have so far learnt using a little tables and
div/css. /biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /> ....
Different Styles Of Mysql Coding.
(2) I look around the place, and at my own MYSQl scripts, and most look the same except with a few
differing factors. Now Im relativly new to MYSQL, and not so new to PHP. The problem is though, I
havent been able to test my scripts/site out so Im not sure if my scripts are right. For example,
heres a script to create my user table. CODE <?php $DBhost = "localhost";
$DBuser = "********"; $DBpass = "*********"; $DBName =
"*********"; $connection = @mysql_connect($DBhost,$DBuser,$DBp....
Php Form -fantastico Form Generator
Need overview re: How To use & setup (0) Hey Guys, Can anyone give me a quick overview on how to use the Fantastico FORM generator script in
CPanel. Need to set up several forms for website user input. Specifically, HowTo: 1) compose the
form ; 2)Where to put the form (ie. in which folder etc.); 3) how to link the form to buttons on my
other webpages; 4) output the form contents to e-mail boxes. Looked/searched for info &/or a
tutorial but can't find one. Anybody. Thanks RGPHNX....
Looking for php, frameworks, leaner, efficient, coding, quick, overview,
|
|
Searching Video's for php, frameworks, leaner, efficient, coding, quick, overview,
|
advertisement
|
|