nystudio107 / generator-craftplugin

generator-craftplugin is a Yeoman generator for Craft CMS plugins
MIT License
73 stars 30 forks source link

Unable to create service with blank name #12

Closed bwlng closed 8 years ago

bwlng commented 8 years ago

Creating a Service with a blank name on v1.1.18 causes an error (Cannot read property 'toLowerCase' of undefined) due to this bit on line 33 of /app/templates/api_version_2_5/services/_Service.php

<%= "_" + serviceName[index][1].toLowerCase() + serviceName[index].slice(2) %>

I worked around it by temporarily removing that portion of the code, but don't know what the proper fix is to contribute.

khalwat commented 8 years ago

Ooopsie, I'll fix it, thanks.

khalwat commented 8 years ago

This is fixed in 1.1.19, and I pushed it to pluginfactory.io

https://github.com/nystudio107/generator-craftplugin

bwlng commented 8 years ago

Thank you, works like a charm :)