Search code examples
phpclasscode-generation

Page generation from PHP class


I'm actually creating websites for fun and some of my friends told me that I could be more efficient if I could create the output of the page with a php class that would represent the whole page.

I was wondering how you people would do it.

Thanks


Solution

  • I'd suggest looking into some PHP frameworks, such as Cake which is good for beginners, or Symfony or Zend Framework if you're more skilled. Those will streamline your PHP development a lot.