Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Create CRUD Resource controllers via scaffolding #22

Open
paxtonhare opened this issue Jun 5, 2012 · 2 comments
Open

Create CRUD Resource controllers via scaffolding #22

paxtonhare opened this issue Jun 5, 2012 · 2 comments

Comments

@paxtonhare
Copy link
Contributor

Currently if I want to create a CRUD style resource in Roxy I have to code the controller by hand. Please add a scaffolding command to do this for me.

ml create resource controller-name [format]

This should create all of the following functions and views for each with the specified format. If none is supplied as a format then no views will be created.

declare function c:index()
{
};

declare function c:new()
{
};

declare function c:create()
{
};

declare function c:show()
{
};

declare function c:edit()
{
};

declare function c:update()
{
};

declare function c:destroy()
{
};

@adamfowleruk
Copy link

+1 on that. Also, because MarkLogic is document based there should be support for addReference(type,docuri), removeReference, etc.

@mrthebob
Copy link

+1 also

@grtjn grtjn added the mvc label Jun 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants