
Welcome to the TagMVC library homepage. TagMVC is an extension to the CodeIgniter framework that allows you to build complete web applications while writing very little server side code.
TagMVC encompasses every aspect of a typical web application - model, views, controllers (hence MVC) - and is activated from the client - or HTML markup (hence TagMVC).
TagMVC offers a lot of off the box functionality, such as built-in undo, but also lets you take control and write your own business logic when it matters.
To learn more, read the user guide. You can contact me using the form below.
Announcing TagMVC 0.9.2 beta: The latest version of TagMVC, still in beta, comes with a hot new feature: a javascript library that allows easy manipulation of models on the front end. You can now call from the front end three common functions of the DataMapper ORM: exists, save and delete (renamed to remove in the Javascript library to avoid a conflict with the delete keyword). And yes, there is support to create/remove relationships using these functions. See this example:
//create a new album node
var album = new Node('album');
//create a new comment node
var comment = new Node('comment');
//Edit the properties of the new nodes
album.name="A new album";
album.description="This album and its comment will be saved at the same time";
comment.text="A new comment. This comment will be created once the 'save' function is called.";
//Save the models, create the new relationship and pass in a
//callback function
album.save(comment, function(data){alert("Save operation done, and the return code was: "+data.returnCode);});
TagMVC 0.9.2 is available for download here. Sorry, no up to date documentation is available yet.
The javascript library is dependent on jquery and json2.js, both included in the download.
Setup instructions to be able to use TagMVC.js:
var targetController = '/ajax/tagmvc/';
function tagmvc(){
$this->load->library('TagMVC');
$this->tagmvc->process();
echo json_encode($this->tagmvc->return_data);
}
Contact me: