Comments on <?php ?> and JS issue

#1

Hello,
I have a problem after many actions : I can’t no more use <?php ?> in templates because when I load my page, the system comments () my php strings and I have a JS error in my console : “Uncaught TypeError: Cannot read property 'editMode' of undefined” on the following line :

$(function() {
  if (window.sitecakeGlobals.editMode !== false ) {
    $.getScript('js/menu.js');
    $.getScript('js/modernizr.js');
  }
});

How can I resolve that issue ?
Best regards

#2

Oups (in french in text) !
My .htacces was deleted :blush:

#3

I suppose then everything is okay now. :smile:
If not please go here

#4

Excellent ! :smile:
Thanks for reply.