public static function rule() { if (empty(Session::getSession()->id)) { Session::clear(); header('Location:/painel/'); exit; } else { return true; } }
<img src="<?php echo $this->createUrl() . '/app/assets/arquivos/profile/' . Kanda::$app->session->getSession()->photo; ?> " /> </div> </div><!-- /.tab-pane --> </div><!-- /.tab-content --> </div><!-- nav-tabs-custom --> </div><!-- /.box-body --> <div class="box-footer"> </div><!-- /.box-footer--> </div> <?php Session::clear('class'); ?> <script src="<?php echo $this->createUrl(); ?> /app/vendors/fileupload/js/vendor/jquery.ui.widget.js" ></script> <script src="<?php echo $this->createUrl(); ?> /app/vendors/fileupload/js/jquery.iframe-transport.js" ></script> <script src="<?php echo $this->createUrl(); ?> /app/vendors/fileupload/js/jquery.fileupload.js" ></script> <script>