title: Create php file with content from terminal
body: <p>I was wondering how, for example, cakePHP can use the terminal/command line to create files and put content in it. I guess they use some kind of template for the content but how do they do it?</p>
  
  <p>I know that you can create controllers and so on with it. Anyone know how it's done?</p>
  
  <p>/ Tobias</p>
  
  <p>EDIT: I've been searching and searching but can't find anything about this. Please is there anyone who can help me with this?</p>