The following line is in one of my controlle's actions:
$this->flash->error("Error: Could not log in with provided credentials.");
According to the Phalcon Documentation, the code snippet above should output the following:
<div class="errorMessage">Error: Could not log in with provided credentials.</div>
Instead, it's outputting the following:
<html>
<head>
<title>Site Title</title>
<!-- js and css files referenced here -->
</head>
<body>
<div class="errorMessage">Error: Could not log in with provided credentials.</div>
<br/><br/>This is a footer
</body>
</html>
The HTML above is returned as the "data" parameter in my "success" callback function in javascript
function successCallback(data, textStatus, jqXHR){
.....
}
The elements surrounding the actual "flash" element in the output are part of the index.phtml page I have just inside the "views" folder.
Are there any flags I have to set to ensure that only the desired "error" message div is returned instead of a full html document?