ty0716 Posted July 8, 2015 Report Posted July 8, 2015 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; Quote
0 Blesta Addons Posted July 8, 2015 Report Posted July 8, 2015 you need something like if ($this->isAjax()) { echo 'test'; } else return false; Quote
Question
ty0716
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
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.