Welcome Guest, Not a member yet? Register   Sign In
Call a view within a view ?
#1

[eluser]Unknown[/eluser]
Hello everybody,

I'm running into a little problem. Currently in my view i'm displayinf a cliquable html map (with imagemap) everything is ok.

I'm also using the jqModal jquery plugin for when a user click on a reactive zone. (
http://dev.iceburg.net/jquery/jqModal/#examples) the ajax example.

Code:
$().ready(function() {
      $('#ex2').jqm({ajax: 'application/views/ain.html', trigger: 'area.ex2trigger'});
    });
So when a user click a zone, it will do an ajax requets to open the application/views/ain.html
But this is not working (normal..) because its forbidden.

How can I manage to do that ?

Thanks
#2

[eluser]Roy MJ[/eluser]
Can u try triggering a new controller instead of tryin to call the view in the query..?? .. And u can call the required view using the controller.. Im nt sure u can get to call another view frm a view in codeigniter since its an MVC pattern..




Theme © iAndrew 2016 - Forum software by © MyBB