PHP responsive web template

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

Offline imobdevtechTopic starter

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 1
  • Posts: 6
  • 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: [nonactive] India - iMOBDEV Technologies

Offline xerbotdev

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 2
  • Posts: 18
  • 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
Last post 04-20-2016, 09:35:54
by sonth321
20 Replies
Last post 08-26-2016, 02:22:39
by TomClarke
0 Replies
Last post 06-12-2014, 01:26:58
by sammy nguyen
2 Replies
Last post 07-14-2015, 19:12:42
by ethany
1 Replies
Last post 08-28-2017, 08:08:57
by RH-Calvin