PHP Classes

Generate content without writing to file

Recommend this page to a friend!

      PHP Mobile Web Apps Generator  >  All threads  >  Generate content without writing to file  >  (Un) Subscribe thread alerts  
Subject:Generate content without writing to file
Summary:Generate content without writing to file
Messages:1
Author:Oladipo Ademola
Date:2013-04-10 12:23:39
 

  1. Generate content without writing to file   Reply   Report abuse  
Picture of Oladipo Ademola Oladipo Ademola - 2013-04-10 12:23:39
This is a lovely class. But I didnt like the idea of writing the generated code to file. So I looked at the WebAppsBaseClass file and removed the private definition for getClassCode.

From the example, I changed
//$webappobj->saveToFile("./example1.html");
to
echo $webappobj->getClassCode();