BUG Ticket (closed)

Error installing api_generator

###What happened: - after running initdb (which created api_classes table), when i try to run showfiles i get the following error - Error: Missing database table 'api_files' for model 'ApiFile' ###What was expected: - to run has the installation says :|
on 03.15.09 reported by: veggie owned by: mark_story
on 03.16.09 by mark_story
- **owner** was changed to _mark_story_ Are you sure you placed the plugin in ```plugins/api_generator```? I can't reproduce this locally. Perhaps you can supply more information?
on 03.17.09 by veggie
Yes, it's placed under '~/Cake/besta/plugins/api_generator'. I'm following the install guide, downloaded using git clone, used 'api_index initdb' and tried to use 'api_index showfiles'
on 03.23.09 by veggie
Doesn't the models api_files and api_classes need to have $useTable defined as false? I guess I can't install the api_generator because when api_files is initialized the cake core tries to search for the table api_files and doesn't find it
on 03.30.09 by mark_story
ApiFile is not even a subclass of Model. So it does not need a $useTable property as it is not a model subclass. If you are getting missing table errors for ApiFile I think the plugin is probably not able to find the model file, and creating an automodel. ApiClass is a model and has a table provided in the schema. Setting $useTable = false will break that class.
on 04.24.09 by mkaelzinho
- **status** was changed to _fixed_ i got the same error, to fix this, put the project inside the app directory. this way: myproject/app/cakefiles
on 06.02.10 by mashpie
as i struggled quite hard too... well be sure to clear your model cache or set Debug to "1" after installation.