Hi, I am developping an app in JQueryMx and also new with the MVC framework. I instanced my controler in my html page and have its path instead of the view content -> <div id="category_list" class="category_lists">//views/category_list.ejs</div>. I really don't know what kind of error it is in this case. the other Controller display the view why category does not ?
My html
- steal(
- '//controllers/childcare_moments_list.js',
- '//controllers/category.js',
- function() {
- $('div#momentsList').child_care_moments_list({
- });
- $('#category_list').category_lists({});
- }
- );
My controller
- $.Controller("CategoryListsController", {
- defaults : {
- template : '//views/category_list.ejs',
- models : null
- }
- },
- {
- init : function(el, opt) {
- el.append(opt.template, opt.model);
- }
- });