Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Problems to display a view .ejs

$
0
0
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
  1. steal(
  2.     '//controllers/childcare_moments_list.js',
  3. '//controllers/category.js',
  4.     function() {
  5.    
  6.     $('div#momentsList').child_care_moments_list({
  7.     });
  8. $('#category_list').category_lists({});
  9.     }
  10.     );

My controller

  1. $.Controller("CategoryListsController", {
  2.     defaults : {
  3.         template : '//views/category_list.ejs',
  4.         models : null
  5.     }
  6. },
  7. {
  8.     init : function(el, opt) {
  9.         el.append(opt.template, opt.model);
  10.     }
  11. });

Viewing all articles
Browse latest Browse all 3491

Trending Articles