I'm customizing a website at Yii . And I'm wondering how do I access a file that is within the protected/
directory. I'm using a javascript function to only load view
of admin
, but I think it's protecting (as expected). It gives load
in 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: