I have CiviCRM 4.7 installed on drupal 7.38. I Found it necessary to modify the url in civicrm.settings.php file as suggested here:
https://forum.civicrm.org/index.php?topic=33303.0
After this modification, my extension was successfully created and I enabled it. Also I have added a page and can already pull some data from the database using the CiviCRM api and display it on the page I added. I now intend to add an api function for an already existing entity, FinancialItem.
When I run the command(in the terminal):
civix generate:api FinancialItem Create
Any suggestions as to what I should do to fix this?
sudo
to runcivix
. My advice to those who often run sudo is: stop, understand and address the underlying permissions problem, rather than whacking it with a "sudo hammer". Reflexive sudo-ing is a habit worth kicking.