splittingred / doodles Goto Github PK
View Code? Open in Web Editor NEWAn example component for MODX Revolution.
Home Page: http://rtfm.modx.com/display/revolution20/Developing+an+Extra+in+MODX+Revolution
An example component for MODX Revolution.
Home Page: http://rtfm.modx.com/display/revolution20/Developing+an+Extra+in+MODX+Revolution
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?
Hi,
I seem to have problems getting this component to work with 2.0.8 by either following the tutorial on the rtmf.modx.com or by downloading the source from here.
Could it be that this tutorial does not work with the most recent version?
Hi,
I followed all the tutorial with success and everything worked perfectly except after the install of the doodles package.
I add the following error trying to access the CMP in the manager :
Could not find action file at: /www/core/components/doodles/controllers/index.php
So I changed the following line in doodles/_build/data/porperties/transport.menu.php :
$action->fromArray(array(
'id' => 1,
'namespace' => 'doodles',
'parent' => 0,
'controller' => 'controllers/index',
...
To :
$action->fromArray(array(
'id' => 1,
'namespace' => 'doodles',
'parent' => 0,
'controller' => 'index',
...
After uninstall and re-install the newly build package, it worked fine.
@splittingred could please let us know if this normal or if it comes from somewhere else ?
Hi,
I found some issues with the doodle docs
http://rtfm.modx.com/display/revolution20/Developing+an+Extra+in+MODX+Revolution
Please remove the comma at the end
'schema_file' => $root.'core/components/doodles/model/schema/doodles.mysql.schema.xml',
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.