Vote count:
0
I have used Smarty Templates with Codeigniter. Everything is working fine with some issues thou but those are very different..
The point is site works fine if opened in firefox and google chrome.
But problem is if i open the site in Internet Explorer, Most of the Website Stuff Don't work.
Like the Menus in my Website when opened in firefox generates this ouput.
<ul class="collapse" id="menu">
<li class="nav-header">Menu</li>
<li class="nav-divider"></li>
<li>
<a href="http://localhost/projects/HouseRentSystem/admin/dashboard/System">
<i class="fa fa-dashboard"></i> Dashboard</a>
</li>
<li>
<a href="javascript:;">
<i class="fa fa-dashboard"></i>
<span class="link-title">Residentials</span>
<span class="fa arrow"></span>
</a>
<ul class="collapse">
<li>
<a href="http://localhost/projects/HouseRentSystem/admin/residentials/Houses">
<i class="fa fa-angle-right"></i> Houses
</a>
</li>
<li>
<a href="http://localhost/projects/HouseRentSystem/admin/residentials/Flats">
<i class="fa fa-angle-right"></i> Flats
</a>
</li>
</ul>
</li>
<li class="active">
<a href="javascript:;">
<i class="fa fa-dashboard"></i>
<span class="link-title">Configuration</span>
<span class="fa arrow"></span>
</a>
<ul class="collapse in">
<li class="active">
<a href="http://localhost/projects/HouseRentSystem/admin/configurations/SitePreferences">
<i class="fa fa-angle-right"></i> Site Settings
</a>
</li>
<li>
<a href="http://localhost/projects/HouseRentSystem/admin/configurations/ManageTabs">
<i class="fa fa-angle-right"></i> Manage Tabs
</a>
</li>
<li>
<a href="http://localhost/projects/HouseRentSystem/admin/configurations/ManageForms">
<i class="fa fa-angle-right"></i> Manage Forms
</a>
</li>
</ul>
</li>
</ul>
but when i open in IE. it dont generate the code which i coded in smarty and i get this HTML output.
<ul class="collapse" id="menu">
<li class="nav-header">Menu</li>
<li class="nav-divider"></li>
</ul>
anything coded inside it like foreach, its like it never executed. How is that possible. i thought programming is a server side language. how come a browser effect the programming language.
Here is the Code if someone can point out where i have gone wrong that it should work in firefox and chrome but not the IE.
{{$var = ksort($Menu)}}
<ul id="menu" class="collapse">
<li class="nav-header">Menu</li>
<li class="nav-divider"></li>
{{foreach $Menu as $MainMenu}}
{{$FormCIPath = explode("/", $MainMenu['FormCIPath'])}}
<li {{checkActiveClassMainMenu($FormCIPath[1])}}>
{{if isset($MainMenu['SubMenu'])}}
<a href="javascript:;">
<i class="fa fa-dashboard"></i>
<span class="link-title">{{$MainMenu['Name']}}</span>
<span class="fa arrow"></span>
</a>
{{else}}
<a href="{{url}}{{$MainMenu['FormCIPath']}}">
<i class="fa fa-dashboard"></i> {{$MainMenu['Name']}}</a>
{{/if}}
{{if isset($MainMenu['SubMenu'])}}
<ul>
{{$var = ksort($MainMenu['SubMenu'])}}
{{foreach $MainMenu['SubMenu'] as $SubMenu}}
{{$FormCIPath = explode("/", $SubMenu['SubFormCIPath'])}}
<li {{checkActiveClassSubMenu($FormCIPath[2])}}>
<a href="{{url}}{{$SubMenu['SubFormCIPath']}}">
<i class="fa fa-angle-right"></i> {{$SubMenu['SubName']}}
</a>
</li>
{{/foreach}}
</ul>
{{/if}}
</li>
{{/foreach}}
</ul><!-- /#menu -->
Smarty Templates not working Properly with Internet Explorer
Aucun commentaire:
Enregistrer un commentaire