0

Am learning my first steps on backbone.js..

Building an app in codeigniter, submit button triggers the function in application controller to send the data to the database..

<?php echo form_open('welcome/process_form','myform') . "\n"; ?>
<p><label for="value">Value: </label><?php echo form_input('value'); ?></p>
<p><label for="tags">Tags: </label><?php echo form_input('tags'); ?></p>
<?php echo form_submit('submit', 'Submit'); echo form_close();  ?>

As simple as that.. a simple codeigniter form and submit button..

Now i want to include backbone.js in the scenario and want it to perform the action obviously reload..

What features of backbone do i look for and get started..??

4

1 回答 1

0

该文档可能是寻找的最佳功能......

http://documentcloud.github.com/backbone/#Model

试着掌握你需要做的事情。查看一些(许多)示例。试着做一些事情,然后回来问一个关于你遇到的特定问题的问题(如果有的话)。

您的问题听起来好像您在 CI 中创建了一个表单,现在想使用backbone.js 也许这里有人为您编写应用程序,但通常当它是一个团队的努力时,这个过程效果最好。即自己尝试;如果您遇到问题,请回来寻求帮助。

于 2012-05-08T13:54:29.500 回答