I want to add a public function in controller to dispose some ajax request.So,this needn't to display template.
Please look this screenshot ,This will show ‘Files does not exist’.
how to deal with this? Unless to use plugin.
Possible expression is not clear.I'm sure you can understand me.
/app/controllers/client_main.php
public function avatar(){
echo 'test';
}
/**
* Client Profile
*/
public function index() {
if ($this->hasPermission("client_invoices")) {
// Get all client currencies that there may be amounts due in
$currencies = $this->Invoices->invoicedCurrencies($this->client->id);
// Set a message for all currencies that have an amount due
$amount_due_message = null;
$max_due = 0;
$max_due_currency = null;