![]() |
Bonfire Tutorial - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Bonfire Tutorial (/showthread.php?tid=41574) |
Bonfire Tutorial - El Forum - 05-11-2011 [eluser]kilishan[/eluser] Included in latest version of the docs that ship with Bonfire is a simple tutorial for creating a ToDo module. It steps you through all of the basics that you need to understand to start creating Bonfire modules. The website has been updated with the latest version of the docs, so you can also view the tutorial online. Bonfire Tutorial - El Forum - 05-11-2011 [eluser]HeartlandTech[/eluser] I just installed this and I'm trying to go through the doc files on the todo list. Is this right??? <?php echo form_open('/admin/content/todo/delete', 'class="ajax-form"'); ?> Because down here: [removed] head.ready(function() { $('#task-form input[type=checkbox]').change(function() { var cid = $(this).attr('data-id'); // Remove it from the display, with a fade effect $(this).parents('tr').fadeOut(300); // Tell the server to remove it. $.post('/admin/content/todo/delete/'+ cid); }); }); [removed] Bonfire Tutorial - El Forum - 05-12-2011 [eluser]HeartlandTech[/eluser] I made a few changes to the tutorial on the todo items. Notably I fixed the javascript - you were using # instead of . for the class. I also changed the name, you were using "ajax-form" and "todo-form". I also fixed the delete as I was using it in a directory called "bonfire" (from the install/rename) and it was trying to navigate further up the tree. Code: <br/> Bonfire Tutorial - El Forum - 05-12-2011 [eluser]kilishan[/eluser] That's what I get for doing this tutorial in small bursts as I could squeeze in the time. Thought I had everything corrected as I was making changes to the code. Obviously not! Thanks for these. I'll get them added to the tutorial and posted on the site. |