OrangeHRM: php in HTML vs Template Engine

Technical Information on PHP scripting language

Moderator: Admin

OrangeHRM: php in HTML vs Template Engine

Postby DemonBob » Tue Sep 01, 2009 6:39 pm

Hi All,

First off, i want to say that our company has recently decided to go with OrangeHRM for our HR needs. We are trying to go opensource in the company as much as possible. I have been given the task of extending the functionally of the Recruitment module, and other modules to comply with US ferderal regulations on information we need to store.

I do have a General Question; Why did the developers decided not to go the route of a Template Engine for processing the Templates? The reason i ask, is that a template engine helps to keep the PHP code separate from the HTML. For instance, when i open of Index.php, their is 1300+ lines of text, Only about the first 300 is acctuall php code. The rest of the page is HTML, which has some inline php to handle variable calls.

I would assume that the developers have a reason for this?
DemonBob
 
Posts: 3
Joined: Fri Aug 28, 2009 3:08 am

Re: OrangeHRM: php in HTML vs Template Engine

Postby Gayanath » Tue Nov 10, 2009 1:00 pm

Hi DemonBob,

When OrangeHRM was started there hasn't been much thought on using a template engine. That has led the templates to be bit messed up. However, recently there are plans on moving to Symfony framework which contains an inbuilt template engine.
Gayanath
 
Posts: 111
Joined: Fri Aug 01, 2008 11:05 am


Return to PHP

Who is online

Users browsing this forum: No registered users and 1 guest