phalcon/phalcon-devtools — pull request #136 by richmulhern (2013-11-05 15:52:45+00:00)
Title: Scaffold issues when generating for tables with underscores.

I tried to generate scaffold for a table named featured_product. And I get the following results:

```
/var/www/nowgocreate/app/config/../../app/controllers/FeaturedproductController.php
/var/www/nowgocreate/app/config/../../app/views/featuredproduct/index.volt
/var/www/nowgocreate/app/config/../../app/views/featuredproduct/search.volt
/var/www/nowgocreate/app/config/../../app/views/featuredproduct/new.volt
/var/www/nowgocreate/app/config/../../app/views/featuredproduct/edit.volt```

This loads the index page correctly, but nothing else works. The pages all try to link to featured_product pages. To The new code now generates a FeaturedProductController and puts all views and layout in a featured_product directory instead:

```
/var/www/nowgocreate/app/config/../../app/controllers/FeaturedProductController.php
/var/www/nowgocreate/app/config/../../app/views/featured_product/index.volt
/var/www/nowgocreate/app/config/../../app/views/featured_product/search.volt
/var/www/nowgocreate/app/config/../../app/views/featured_product/new.volt
/var/www/nowgocreate/app/config/../../app/views/featured_product/edit.volt```

This happened in both volt and php template generation. I've resolved it for both.