elkuku / EasyCreator

EasyCreator helps creating extensions for the Joomla! CMS
http://extensions.joomla.org/extensions/miscellaneous/development/5908
50 stars 23 forks source link

Adding extra 's' on models and views #7

Open ibscas opened 12 years ago

ibscas commented 12 years ago

Just updated to 0.0.17, but was happening on 16 as well. Joomla 2.5.3

Files -> Add Element -> Models (Data Form and Data List) When you add the name, i.e., "search", it will add it as "searches". Also, the model PHP file class says the same.

Same problem for Files -> Add Element -> Views (Data Form and Data List)

In addition, on both of these same elements, the class name gets an extra 'S' on it as well, causing the component to fail. The class name also gets improperly capitalized so Joomla fails to find it. Here is an example model I created:

Filename: srch2s.php class AIBEnginesModelsrch2s extends JModel

Should have been:

Filename: srch2.php class aibengineModelsrch2 extends JModel