0

I am trying to create the Entity in CiviCRM with my extension. But I am struck here. Unable to find the XML folder in my CiviCRM installation. After running the below command civix generate:entity MyEntity nothing to do in the installed CiviCRM

enter image description here

I read the document and followed the steps. I strut in the below steps https://docs.civicrm.org/dev/en/master/extensions/civix/

enter preformatted text here

enter image description here

I read these questions also none of the solutions helped

How to automatically generate DAO classes for my DB tables

How do I add a new table to my extension?

Please let me know is there any alternative way to create entity while creating an extension

1

1 Answer 1

1

It looks like like perhaps you are developing your extension within a normal CiviCRM installation instead of a development installation. If this is the case, you'll need to set up a development installation in order to get the xml folder (and other things too).

The best way to set up a development installation is to use the civibuild tool which you will get if you install buildkit.

4
  • Thanks for your answer; I already installed buildkit; Could you please explain how to get development installation using this Jul 1, 2017 at 16:52
  • 1
    @ManiMuthuPandi read about the civibuild command. You will need to do something like: civibuild create dmaster --url http://dmaster --type drupal-demo
    – Sean
    Jul 1, 2017 at 17:01
  • I installed civibuild and created the DAO file; And successfully run civix generate:upgrader; But I could not see any active links in Extentions page; Am I missed anything Jul 1, 2017 at 19:14
  • @ManiMuthuPandi for help with further questions and troubleshooting it would be best to either (1) got to the developer chat room or (2) post a separate question here on StackExchange. I'd recommend that chat room for your right now, as it will allow for easier back-and-forth conversation.
    – Sean
    Jul 1, 2017 at 19:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.