Can you write a class that implements model? Like: $ model = new basemodel ($ tablename) thanks
Can't you just use php in one of the models to create a file inside the model folder? You can then set some variables and write that into the new file.