PHP responsive web template

Author Topic: PHP responsive web template  (Read 1582 times)

Offline imobdevtechTopic starter

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 1
  • Posts: 3
  • Karma: 0
  • Web and Mobile App Development Services
    • Web & Mobile App Development Services
PHP responsive web template
« on: 12-07-2014, 23:51:03 »
I would like to get PHP responsive website templates for PHP web development.
If anyone has good sources, I request you to share some sources here.
Web, Mobile and Game newbielink:http://www.imobdevtech.com/ [nonactive] India - iMOBDEV Technologies


Offline xerbotdev

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 2
  • Posts: 19
  • Karma: 0
  • Lead Xerbot Developer
    • Xerbot
Re: PHP responsive web template
« Reply #1 on: 02-18-2015, 03:55:32 »
PHP has makes it very easy to write templates, and thereby remove business logic from the display of the information.

The way I personally do it is by doing ALL the logic before getting to the display part. The logic would then create a global variable $DATA which is an associative array that contains all the data for the template.

At the end of the logic phase, I then include the proper templates for the page that I need to display. I include for instance, the default template which includes 3 sub-templates based on $DATA['template_header'], $DATA['template_main'], $DATA['template_footer'] . Like this I am able to clearly separate business logic from the view, and also change the header, content and the footer of every page dynamically.
Xerbot Website [nofollow]

 

Related Topics

  Subject / Started by Replies Last post
23 Replies
14579 Views
Last post 04-20-2016, 09:35:54
by sonth321
21 Replies
12649 Views
Last post 08-26-2016, 02:22:39
by TomClarke
0 Replies
1508 Views
Last post 06-12-2014, 01:26:58
by sammy nguyen
2 Replies
1086 Views
Last post 07-14-2015, 19:12:42
by ethany
3 Replies
2939 Views
Last post 08-10-2017, 04:18:28
by mishraviplav7877