title: How to load/execute a view template from a string in CakePHP
body: <p>I've developed a CakePHP plugin that allows the site administrator to define custom reports as a list of SQL queries that are executed and the results displayed by a .ctp template.</p>
  
  <p>Now I need to allow the administrator to edit the template, stored in the DB together with the report.
  Therefore I need to render a template that is inside a string and not in a .ctp file and I could not find anything in the core that helps.</p>
  
  <p>I considered initially the approach to write the templates in .ctp files and load them from there, but I suspect this solution is rigged with flaws re: the location of the files and related permissions.</p>
  
  <p>A better solution seems to override the View class and add a method to do this.</p>
  
  <p>Can anyone suggest a better approach ?</p>
  
  <p>P.S. Security is not a concern here, since the administrator is basically a developer without access to the code.</p>