Hi,
I'm new to php - are there any listings of web server frameworks out
there? I'd like to know which ones have the most use and have proven
themselves at least somewhat.
I'm looking for something in php that'd give the business logic
modelling and templating that you'd get, say, from Java servlets +
Freemarker.
thanks,
Robb 6 1567
Robert wrote:
Hi,
I'm new to php - are there any listings of web server frameworks out
there? I'd like to know which ones have the most use and have proven
themselves at least somewhat.
I'm looking for something in php that'd give the business logic
modelling and templating that you'd get, say, from Java servlets +
Freemarker.
thanks,
Robb
Hi Robb,
If you are new to PHP, it might make sense to first learn PHP itself before
jumping into a framework. IMHO many frameworks give you a good start, but
if you miss understanding of the underlying language, you'll hit your head
many times.
If you get familiar with PHP, you can develop your own
classes/functionlibs/etc yourself. Many good classes are out there (PEAR
eg) for you to use. Personally I find it much more satisfying to write my
own stuff and plug in classes where I need them.
As you can hear, I am not a big fan of frameworks. :P
Anyway, Cake is a PHP framework based on the much appraised Ruby-on-Rails
framework: http://cakephp.org
From their homepage:
-----------------------------------
Cake is a rapid development framework for PHP which uses commonly known
design patterns like ActiveRecord, Association Data Mapping, Front
Controller and MVC. Our primary goal is to provide a structured framework
that enables PHP users at all levels to rapidly develop robust web
applications, without any loss to flexibility.
-----------------------------------
Good luck!
Regards,
Erwin Moller
Robert wrote:
Hi,
I'm new to php - are there any listings of web server frameworks out
there? I'd like to know which ones have the most use and have proven
themselves at least somewhat.
I'm looking for something in php that'd give the business logic
modelling and templating that you'd get, say, from Java servlets +
Freemarker.
thanks,
Robb
After having just researched this myself over a couple of days I thought I'd
drop in my 2p worth.
Most frameworks (or templating systems) are a trade off between already
built functionality and flexibility - and are somewhere along the scale of
Mambo (which is great)-horde -cake-tiny but strong -P4A -RAW php
and HTML.
There are loads more and I may have not got the order quite correct.
Eventually I settled on using Smarty and also to use the PEAR libraries.
This allows complete control over what is being written plus Smarty
templating works really well.
For example I have a single HTML template for the web application. On each
page I use PHP to generate HTML to display a form or results. All I do is
set the output HTML to a single variable called $content and then display
the template. The main div contains the line {$content} so my content is
displayed in the main div.
To change something on every page I just change something on the template.
And the PEAR libraries are really useful for prevention of the reinventing
of the wheel. For example the Auth library means you can easily carry out
authentication for your web application. Also, the mail_queue library
means that it's easy to put emails you want to send into a DB and have
separate cron run code to actually send them.
This is great for the testing phase.
It takes a few days to get Smarty and PEAR set up and understood but I feel
the effort is well worth it.
Kevin
You should add eXtc Web Developer ( http://www.mgateway.com) to your
list of frameworks to check out - it's actually not specific to PHP as
it will cross-generate ASP.Net and JSP also.
On Fri, 13 Oct 2006 16:22:06 +0100, kevin bailey
<kb*****@freewa yprojects.comwr ote:
>Robert wrote:
>Hi,
I'm new to php - are there any listings of web server frameworks out there? I'd like to know which ones have the most use and have proven themselves at least somewhat.
I'm looking for something in php that'd give the business logic modelling and templating that you'd get, say, from Java servlets + Freemarker.
thanks, Robb
After having just researched this myself over a couple of days I thought I'd drop in my 2p worth.
Most frameworks (or templating systems) are a trade off between already built functionality and flexibility - and are somewhere along the scale of
Mambo (which is great)-horde -cake-tiny but strong -P4A -RAW php and HTML.
There are loads more and I may have not got the order quite correct.
Eventually I settled on using Smarty and also to use the PEAR libraries.
This allows complete control over what is being written plus Smarty templating works really well.
For example I have a single HTML template for the web application. On each page I use PHP to generate HTML to display a form or results. All I do is set the output HTML to a single variable called $content and then display the template. The main div contains the line {$content} so my content is displayed in the main div.
To change something on every page I just change something on the template.
And the PEAR libraries are really useful for prevention of the reinventing of the wheel. For example the Auth library means you can easily carry out authenticati on for your web application. Also, the mail_queue library means that it's easy to put emails you want to send into a DB and have separate cron run code to actually send them.
This is great for the testing phase.
It takes a few days to get Smarty and PEAR set up and understood but I feel the effort is well worth it.
Kevin
---
Rob Tweed
M/Gateway Developments Ltd
The Pursuit of Productivity : http://www.mgateway.com
On Oct 12, 2:03 pm, "Robert" <r...@acm.orgwr ote:
Hi,
I'm new to php - are there any listings of web server frameworks out
there? I'd like to know which ones have the most use and have proven
themselves at least somewhat.
I'm looking for something in php that'd give the business logic
modelling and templating that you'd get, say, from Java servlets +
Freemarker.
thanks,
Robb
We started using the Zend framework ( http://framework.zend.com) in our
project, but it's still in early development, and there a lot of
bugfixes that you can only get from the CVS. The separation of
Controller/View logic wasn't that great at the time.
We settled on cakephp, but if speed is critical, you may want to
consider kevin's advice and go with smarty+php libraries.
Good luck on your project, Robb!
tg wrote:
We started using the Zend framework (http://framework.zend.com) in our
project, but it's still in early development, and there a lot of
bugfixes that you can only get from the CVS. The separation of
Controller/View logic wasn't that great at the time.
We settled on cakephp, but if speed is critical, you may want to
consider kevin's advice and go with smarty+php libraries.
Good luck on your project, Robb!
Great - thanks for the pointers, everyone.
Try Plain PHP. Smarty is nice but there are times I'm glad I didn't
use it for the template. You also could try Flexy, being Pear-based
ease of install and update.
If you want a Rails-type framework, use Symfony. It's the furthest
along, has the most mature caching mechanisms.
If you just want to write the least amount of code and have business
apps of 30 pages and 17 dropdowns, etc, better use ATK.
The Rails-types are not as focused as ATK on the actual problem with
business apps, IMHO. The problem being they are the most expensive to
develop at the same time have the least value payoff. Have to get the
cost down, not worry about how beautiful your syntax is, which seems
to be the overriding preoccuopation of RoR (that and the rockstar
leaders poking fun at hopeless Java, which is ironic because RoR very
much overreaching like Java). I don't need a framework syntax to
encode dev/test/prod setups, I need to crank out forms.
HTH This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ketulp_baroda |
last post by:
i am developing a web application and i am really confused on what should i use.
should i use just python and use the cgi module availabe.
Or should i use application like WebWare.Also there is PSP available.
I am really confused and need help
|
by: Jon Slaughter |
last post by:
I'm trying to get into web development for creating a professional web site
and I'm confused on which language I should use. I've read some comparisons
between the major languages and I was thinking that python might be the way
to go for the most powerful and general language but I am not sure. Does
anyone know of any detailed and objective comparisons between the major
languages(perl, php, java, javascript, etc...) that might help me get...
|
by: Andy Fish |
last post by:
Hi,
I am about to commence the design of what will turn out to be a fairly large
asp.net web app, and I am looking for any good advice and resources (books,
web pages) concerning how best to structure it.
I would consider myself an experienced software designer and technical
architect - I certainly know enough to know that I don't know everything,
and I'm keen to pick up on current best practice. I have architected large
server apps...
|
by: John |
last post by:
AJAX is a rich client-side technology that makes the web pages more
interactive. In practice, the same AJAX client-side code should be
unchanged, regardless of what server-side web technologies we use. I
guess this is same concept as traditional front-end plain html code
that can work with different server-side web technologies for back-end
processing. Similarly, AJAX should be server-side independent concept,
is that correct? But if this...
|
by: Paul |
last post by:
I have been coding apps with PHP for several years. But I am getting more
involved in larger and more complicated PHP applications and want to use
best practices.
I use Eclipse's PHP IDE. I doubt I am using it to its full extent but I want
to learn more about, and compare and contrast, frameworks versus IDE versus
templating systems and MOST IMPORTANTLY learn what is going to save me time.
I know technically the IDE is the tool in...
| |
by: Michael |
last post by:
I'm new to PHP, I already learned the basics of the language and built
some little app's for practice.
I have a critical dilemma, soon enough, I probably start to develop
real-world applications, fully working web-sites for paying
costumers.
I have 2 options for doing this: writing everything with plain PHP, or
using some PHP framework.
I don't want to choose something and the realize that the other is
batter.
I want to get used for...
|
by: Bizio |
last post by:
Ok, I am looking to see if someone can point me in the direction of a
simple client server framework for passing messages between two
computers?
Basically I will have two computers on their own, isolated network. I
want to be able to pass messages from the client to a server. The
message contains a state and a command, as well as a data portion. The
data portion can be either a char*, an int, or two ints currently.
I have been looking...
|
by: Nuno |
last post by:
Hi,
Maybe this question alreay was asked, but now, i'm asking today...
today each ajax framework is the best one to start (open source of
course).
I already see so much (ASP.NET AJAX, GWT, DOJO, etc...) can you point
me to the best one?
Also i need to know if any of the ones that you will point to me, have
|
by: Brendan Miller |
last post by:
What would heavy python unit testers say is the best framework?
I've seen a few mentions that maybe the built in unittest framework
isn't that great. I've heard a couple of good things about py.test and
nose. Are there other options? Is there any kind of concensus about
the best, or at least how they stack up to each other?
Brendan
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |