Farrukh
Farrukh

Reputation: 339

How Data Access Layer communicates with Presentation Layer in PHP?

Im new to OOP & PHP. After being fed-up of "Person's Class-Object examples", I want to know exactly how a function would return a set of rows from database to the presentation layer in a way that:

Upvotes: 0

Views: 349

Answers (1)

jamesjara
jamesjara

Reputation: 554

First all you need to create a frontend(client side) for the backend(server side), in the BL you have getEmployees, i dont now wich king of output is , but if is a webservice you need to translate to xml or json response, if is normal you need to create html markup.

my recomendation: create a BL OOP PHP Webservice, and from the Pre. Layer use some free JS CLIENT FRAMEWORK, like smartgwt,jqery,etc

Upvotes: 1

Related Questions