Jump to content
  • 0

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


ty0716

Question

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

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...