atk4 / atk4-addons

Agile Toolkit Addons
http://atk4.com/
Other
15 stars 23 forks source link

ModelGenerator.php error #42

Open DarkSide666 opened 8 years ago

DarkSide666 commented 8 years ago

Issue by fatnjazzy Thursday Aug 08, 2013 at 17:40 GMT Originally opened as https://github.com/atk4/atk4/issues/389


Missing argument 1 for Page_ModelGenerator::findModels(), called in C:\projects\wamp\atk4\atk4-addons\mvc\Page\ModelGenerator.php on line 15 and defined

findModels signature is: function findModels($dir, &$models, $prefix = null);

but you call it like this: $this->findModels();

DarkSide666 commented 8 years ago

Comment by DarkSide666 Thursday Aug 08, 2013 at 22:00 GMT


Probably that's a bug because this add-on is rather old and most likely deprecated.

Simple advice - don't use generators, they are evil type of coding :) It's much more faster to create empty templates for new class definitions and will in some rows of code than trying to find bugs and glitches in automatically generated code.

Also here: http://stackoverflow.com/questions/18132735/atk4-schema-generator-error

And yes, that's actually issue of atk-addons and should go here: https://github.com/atk4/atk4-addons