James P.
James P.

Reputation: 19617

Three-layered approach in PHP

I liked using three layers (data/business logic|services/ui) in Java and wish to apply this to a web site in PHP. What advice, links, tutorials could you suggest in this respect?

P.S: I'm particularly interested in knowing how the domain/entity objects can be written and used.

Upvotes: 2

Views: 615

Answers (5)

Lawrence Tierney
Lawrence Tierney

Reputation: 898

Symfony (http://www.symfony-project.org/) gets good reviews from my PHP slinging mates

Upvotes: 1

Treffynnon
Treffynnon

Reputation: 21553

If you want a PHP framework that actually follows the Model View Controll (MVC) pattern then you will need to look at Agavi. Many other frameworks have attempted to implement it but have failed.

Upvotes: 2

Ikke
Ikke

Reputation: 101231

You could look at the MVC pattern used in many frameworks for PHP.

You could use frameworks like Kohana, Zend, CakePHP, Yii, which all uses this pattern.

MVC stands for Model-View-Controller, where the model contains the business logic, the view contains the UI, and the controller handles the requests and ties things together.

Upvotes: 1

Shakti Singh
Shakti Singh

Reputation: 86406

You could go with some frameworks of PHP.

They already done three layer for you

ZendFramework

CakePHP

This could be interesting for you and help you to choose right framework.

PHPFrameworks

Upvotes: 3

Mild Fuzz
Mild Fuzz

Reputation: 30701

Correct me if I am wrong, but this is an MVC approach (Model->View->Controller)?

If so, checkout a framework like CakePHP, they have a pretty good learning zone for you.

Upvotes: 1

Related Questions