Jump to content
  • 0

How To Add A Public Function In Controller And Not Display Template


Question

Posted

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;

 

 

20150708093254.png

1 answer to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...