PHP responsive web template

Author Topic: PHP responsive web template  (Read 1330 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: [nonactive] India - iMOBDEV Technologies

Offline xerbotdev

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 1
  • 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
25 Replies
Last post 04-20-2016, 09:35:54
by sonth321
22 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
2 Replies
Last post 09-11-2015, 02:58:33
by jane