Quote from: rixe at Nov 17, 2010, 03:19 PM
Could somebody please point me to a simple simple simple tutorial for this process?
It is much easier than it seems:
1. Create your tables in any way you’d like.
2. Created the snippet "CreateXpdoClasses" with the code from Bobs guide, with no changes in the code at all.
3. Run CreateXpdoClasses like this: [[!CreateXpdoClasses? &myPackage=`yourpackagename` &myPrefix=`your_table_prefix`]].
Done.
In the snippets where you want to use is, just put:
$path = MODX_CORE_PATH . ’components/yourcomponent/’;
$result = $modx->addPackage(’yourcomponent’,$path . ’model/’,’your_table_prefix’);