AdminLTE2 + Fullcalendar - problem integrating both

0
Good afternoon, how are you? So I'm developing a small system with Codeigniter, and for that I'm using the AdminLTE template, and now I'm creating the calendar + calendar part and for this I'm using Fullcalendar

$this->template->set('title', 'Lista de Clientes');
$data['clientes'] = $this->model->listar();
$this->template->load('layout', 'clientes_lista.phtml', $data);

Using the Template in this way can already generate several views but when trying to use with FullCalendar it unconfigures the template and does not display the calendar as I will show below

Template in use:

TemplatewithFullCalendar:

Thestrangethingisthatifyouloadtheviewfrommycalendarinthenormalwayitopenswithoutproblems    $this->load->view('calendar_v.php');mycalendar

Usingonlythefullcalendarview:

Calendarviewcode:

<!DOCTYPEhtml><html><head><metacharset='utf-8'><linkhref='<?phpechobase_url();?>assets/calendar/fullcalendar.min.css'rel='stylesheet'><linkhref='<?phpechobase_url();?>assets/calendar/fullcalendar.print.min.css'rel='stylesheet'media='print'><scriptsrc='<?phpechobase_url();?>assets/calendar/lib/moment.min.js'></script><scriptsrc='<?phpechobase_url();?>assets/calendar/lib/jquery.min.js'></script><scriptsrc='<?phpechobase_url();?>assets/calendar/fullcalendar.min.js'></script><script>$(document).ready(function(){$.post('<?phpechobase_url();?>calendar2/getEvents',function(data){//Console.logparaevitartranstornosconsole.log(data);$('#calendar').fullCalendar({header:{left:'prev,nexttoday',center:'title',right:'month,basicWeek,basicDay'},defaultDate:newDate(),navLinks:true,//canclickday/weeknamestonavigateviewseditable:true,eventLimit:true,//allow"more" link when too many events
                        events: $.parseJSON(data)
                    });
                });
            });
        </script>
        <style>
            body {
                margin: 40px 10px;
                padding: 0;
                font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
                font-size: 14px;
            }
            #calendar {
                max-width: 800px;
                margin: 0 auto;
            }
        </style>
    </head>
    <body>

        <div id='calendar'></div>

    </body>
</html>

Due to my inexperience I can not find out why this behavior, I do not know if AdminLTE has any incompatibility as a script or something, I also do not know if in both views (template and calendar) have the tag can generate some problem Anyway, thank you in advance.

Edit: giving a look on the console I found the following error:

    
asked by anonymous 01.02.2017 / 18:11

0 answers