Open ghost opened 11 years ago
22nd Sep 2010, Courtney Wilburn said:
I had the same issue the other day, and I'm using 1.2.7. It appears that initdb runs "schema create" (cake 1.3 syntax) instead of "schema run create," (cake 1.2.x syntax). I ended up changing my /vendors/shells/api_index.php file to use the cake 1.2.x syntax in the initdb function. I was able to run initdb and the other commands without issue, but then ran into a few other version-related syntax errors when trying to view the generated docs.
23rd Sep 2010, Kevin van Zonneveld said:
Ok looks like that could get pretty hairy then. What's weird is that the github readme said it was compatible with 1.2. That's basically why I gave it a shot.
Is there a commit hash that's compatible with 1.2? Then I'll just skip on the new features and checkout that version. Can't upgrade my app to 1.3 yet cause it's pretty huge.
23rd Sep 2010, Courtney Wilburn said:
I tried finding a commit hash that was 1.2 compatible, but I couldn't find one (I'm sure there is one). I can't upgrade my either for the same reason. Most of the syntax errors were related to the changes in the HTML helper and were easy to fix, but a bit of a headache to have to hunt for. Searching for a compatible commit hash would probably be a better use of your time.
24th Sep 2010, Kevin van Zonneveld said:
Did this:
[kevin`@dev` /app/plugins/api_generator (1.2)]$ git checkout -b 1.2 734bc10
Initdb & update now work but I had to explicitly set extensions in the configuration .ini:
[file]
extensions = php,ctp
Created by Kevin van Zonneveld, 22nd Sep 2010. (originally Lighthouse ticket #30):
Hi guys.
Just tried out api_generator but couldn't get it to work.
When running:
I get:
Looks like it's making an invalid call to schema?
I'm using Cake 1.2.6 and checked out master of http://github.com/cakephp/api_generator in app/plugins/(api_generator)
When I run:
I do get a valid shell: