title: Yii / gii code generator customization : how to reuse the default templates?
body: <p>I am starting to play with the <a href="http://www.yiiframework.com/doc/guide/1.1/en/topics.gii" rel="nofollow">Code Generators</a> provided by the <a href="http://www.yiiframework.com/doc/api/1.1/GiiModule#generatorPaths-detail" rel="nofollow">Gii module</a>.</p>
  
  <p>I want to customize some of the CRUD generated files. The CRUD code generator stands in <code>framework/gii/generators/crud</code> and the files I'm interested in are under the <code>templates/default</code> sub-directory. </p>
  
  <p>Now, let's say I want to customize <code>_view.php</code>. </p>
  
  <p>I copy-paste all the files from
  <code>framework/gii/generators/crud/templates/default</code> to <code>protected/gii/crud/templates/mytemplates</code>, update the <code>_view.php</code> file, go to the Gii crud generation page, select my Model, Controller and code template, click on preview and voila: the generators builds the files. </p>
  
  <p>Now, let's say <strong>the only file I'll ever customize here is<code>_view.php</code></strong>. I don't like so much duplicating files and do nothing with them. Instead, I'd like to find a way to <strong>reuse the existing default files</strong>. </p>
  
  <p>So: is there any way to tell to the Code Generator "hey! when you don't find a template file, just go to the default directory where they are stored as usual." ?</p>