1
I’m customizing a website on Yii. And I’m having doubts about how to access a file that’s inside the directory protected/
. I’m using a javascript function to load only the view
of admin
, but I think he’s protecting (as expected). He gives the load
in the content
, but does not load the desired file :'(
HTML:
<div class="menu">
<ul>
<li><a class="nome-menu" data-nome="usuario" href="#">Usuário</a></li>
</ul>
</div>
<div class="content">
<!--carregar a view de admin aqui!!!
</div>
Javascript:
$(".nome-menu").click(function (e) {
$(".content").load('/MyProject/protected/views/usuario/admin.php');
});
Mockup: