Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Developer Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
brienne
Developer Documentation
Commits
41cec68a
Commit
41cec68a
authored
8 years ago
by
Sean Madsen
Browse files
Options
Downloads
Plain Diff
Merge branch 'civix'
parents
d85929a8
d1d0e075
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/extensions/civix.md
+3
-9
3 additions, 9 deletions
docs/extensions/civix.md
redirects/wiki-crmdoc.txt
+1
-0
1 addition, 0 deletions
redirects/wiki-crmdoc.txt
with
4 additions
and
9 deletions
docs/extensions/civix.md
+
3
−
9
View file @
41cec68a
# Civix
!!! caution "Notice: page undergoing migration"
This page started
[
here in the wiki
](
https://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Module+Extension
)
.
We have not yet transferred all of the script snippets, so you may wish to
peruse this page as well.
## Introduction
The
[
`civix`
](
https://github.com/totten/civix/
)
command-line tool is the
...
...
@@ -172,7 +166,7 @@ This creates three files:
[
the smarty guide
](
http://www.smarty.net/docsv2/en/
)
.
The auto-generated code for the controller and view demonstrate a few
basic operations, such as adding a
`<
SELECT\
>`
element to the form.
basic operations, such as adding a
`<
select
>`
element to the form.
!!! note
After adding or modifying a route in the XML file, you must reset
...
...
@@ -241,7 +235,7 @@ command:
civix
help
generate:case-type
```
This reports that civix expects a
`<L
abel
>`
argument and an optional name:
This reports that civix expects a
l
abel argument and an optional name:
```
bash
civix generate:case-type
"Volunteer Training"
Training
...
...
@@ -324,7 +318,7 @@ then:
1.
Renamed the
`xml/auto_install.xml`
to
`templates/hremerg-customdata.xml.tpl`
2.
Changed the value of
`<extends_entity_column_value
\
>`
in the
2.
Changed the value of
`<extends_entity_column_value>`
in the
`.tpl file`
using a variable instead of a hard-coded type ID.
3.
Added logic in the upgrader to create the relationship type
4.
Added logic in the upgrader to evaluate the Smarty template
...
...
This diff is collapsed.
Click to expand it.
redirects/wiki-crmdoc.txt
+
1
−
0
View file @
41cec68a
...
...
@@ -6,4 +6,5 @@ Before+you+start basics/planning
Recommendations basics/planning
The+codebase core/architecture
Debugging+for+developers dev-tools/debugging
The+developer+community extensions/civix
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment