jgulledge19 / cmpgenerator Goto Github PK
View Code? Open in Web Editor NEW⛔️ unmaintained ⛔️ Generate Scheme and Package classes for MODX Revolution XPDO
Home Page: http://rtfm.modx.com/display/ADDON/CMPGenerator
⛔️ unmaintained ⛔️ Generate Scheme and Package classes for MODX Revolution XPDO
Home Page: http://rtfm.modx.com/display/ADDON/CMPGenerator
It would be great if CMPGenerator would have the ability to build for external/foreign databases. This is a PHENOMENAL extra and that would just make it amazing for third party development!
When trying to install CMPGenerator 1.1.3-pl on MODx 3.0.0 keep getting error:
No foreign key definition for parentClass: MODX\Revolution\modMenu using relation alias: Action
CMPGenerator does not seem to work with 2.2.5 it will create the schema 1/10th of the time.
I used a table called jta_holidays. Prefix I entered as jta_ and followed everything else as in the instructions. Created a test snippet as in https://rtfm.modx.com/extras/revo/cmpgenerator/cmpgenerator.5-minute-example and it did not work. In the error log, it was looking for modx_holidays.
So the only workaround was to rename the table - then it all worked perfectly.
Edit: I was being stupid... I'd put the tables in the wrong database. Appears to be working with Modx 2.7 and PHP 7.1
Doesent seem to work on 2.2.7, I tried several times both creating package and schema or just one of those, generates nothing. Could you please take a look?
Hi!
Some modifications for MSSQL: Fi1osof@58516f0
But using native schemeWriter: https://github.com/Fi1osof/CMPGenerator/blob/master/core/components/cmpgenerator/model/cmpgenerator/sqlsrv/my_xpdogenerator.class.php#L92
Maybe you will want to modify this.
Hi,
I'm using this component on an italian installation of MODX Revolution 2.2.0-pl2 (traditional).
if I select "Build schema" and "Build package" and then "Save", my custom component is created but some files aren't (e.g.; xml schema).
The reason is, "Yes" labels in "Build schema" and "Build package" selects are translated to italian "SI".
please see ...cmpgenerator/processors/mgr/cmpgenerator/build.php at row 58.
$scheme reads "SI", not "Yes", so $scheme == 'Yes' is always false:
if ( $scheme == 'Yes' ) {
$cmp->set('build_scheme', '1');
} else {
$cmp->set('build_scheme', '0');
}
if ( $cmp->get('build_package') == 'Yes' ) {
$cmp->set('build_package', '1');
} else {
$cmp->set('build_package', '0');
}
Hello,
Is CMPGenerator still working with Revo 2.5 / php 7.0 ?
I get a blank xml schema...
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.