My cake php application seems to be messing with my overlays, in which I am loading content from another view. It works like the following:
//Show project settings
$(document).ready(function(){
$('.project-edit').on('click', function () {
overlay_start('projects/show_project_settings');
});
});
//Function for overlay
function overlay_start(path) {
$('#overlay-center').load(path);
$('#overlay').fadeIn(200);
$('#overlay-center').fadeIn(200);
}
This is my ProjectsController’s method:
//Display project settings overlay
public function show_project_settings() {
$this->render('/Elements/editable/ProjectSettings');
}
I am on projects/index, and upon clicking a link the overlay loads. It does in fact load, however, it simply loads the same view I am already on – not ProjectSettings.ctp.
Something tells me I am missing something in the projects controller. What am I doing wrong?
I found out what the problem was. My path was leading to:
but should instead have led to:
So what I did was
and then it got the path right.
It was not an authentication issue.