stuck at creating table
I am new in extra developement for ModX so please bare with me :) I am at the point where you create the include snippet in modx with the extra lines of code before the return statement:
<?php
$o = include $file;
$m = $modx->getManager();
$created = $m->createObjectContainer('Doodle');
return $created ? 'Table created.' : 'Table not created.';
return $o;
But when I run the resource document in the browser it says "Table not created."
I'm running this on localhost with xampp.
ModX is installed in /www/modx2
and doodles in the seperated folder /www/doodles
.htaccess RewriteBase is /www/modx2
added System Settings:
doodles.core_path to /www/doodles/core/components/doodles/
and
doodles.assets_url to /doodles/assets/components/doodles/
I noticed that the code in github is slightly different from the ones in the tutorial. Example: I had to change the MODX_BASE_PATH in "build.config.php". So I Added
define('MODX_BASE_PATH', dirname(dirname(dirname(dirname(__FILE__)))) . '/www/modx2/');
to make it work in the local environment. this wasn't in the tutorial :(
Is there something else I am missing to make it work on a local mashine?