Hello guys,
I’ve been playing with modx revo for a couple months now just creating content.
Now I want to get into component development, but i’m stuck. I searched the forum, and online and none of the posts/links were useful or clear.
I’d like to know how should i set up the netbeans project/environment to create and try the component.
For this i’d like to use the API; and i know i have to use this code:
require_once ’d:\\xampp\\htdocs\\test\\config.core.php’;
require_once MODX_CORE_PATH.’config\\’.MODX_CONFIG_KEY.’.inc.php’;
require_once MODX_CORE_PATH.’model\\modx\\modx.class.php’;
$modx = new modX();
$modx->initialize(’web’);
but where should i put it;
I found the post for creating the package after i have the component, but i’m still missing the previous step.
thanks in advance.
Diego
I’m assuming that you’re trying to create a transport package for your component (you don’t need any of that code to create the component itself). In that case the lines of code would go in the build.transport.php file used to create the package.
-
MODX Staff
- 10,725 Posts
You don’t have to do anything special; just write a Snippet and put it into the manager. NetBeans isn’t necessarily involved in this at all, nor is the code you posted.
Now, if you want to manage development on the filesystem (and maybe track in Git or SVN), then follow these tutorials and you’ll be able to execute them as you develop them on the filesystem.
-
☆ A M B ☆
- 3,112 Posts
does anyone has an experience that the latest netbeans (6.9) is a little bit unstable?
My code is over 2900 lines, and when I tried to format the source, it just went error.
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
-
☆ A M B ☆
- 3,112 Posts
At last I found this formatting error trigger:
DO NOT put a commenting symbol ( //, # ) at the last line of the file or as enclosing comment.
Netbeans will break.
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.