Doctrine Posted June 9, 2016 Report Posted June 9, 2016 Hello, Example: Client ID: <?php $this->Html->_($client->id_code);?> I need: Active Services (the number) Opened Tickets: (the number) Unpaid invoices (number and the amount) Thanks if that possible Quote
0 Michael Posted June 9, 2016 Report Posted June 9, 2016 I don't believe it's possible at the moment without editing the core or grabbing from the database. Quote
0 Mujahed Posted June 9, 2016 Report Posted June 9, 2016 you can do it by calling the models in the view files which is unrecommended and breaks the rules of the MVC, OR you can modify the controller to call the models and then pass the vars to the view, then modify the view files to print these info. Michael 1 Quote
0 Tyson Posted June 9, 2016 Report Posted June 9, 2016 I believe the client information is already available to the templates, and your example will already work in those areas, except for the Support Plugin. In the Support Plugin, you will need to fetch the client information and set it to the view. Quote
0 Blesta Addons Posted June 10, 2016 Report Posted June 10, 2016 You can create a simple plugin tvat fetch this and return the numbers . In the view add a jquery code to call this plugin via ajax and put the returned data in the desired div . Like the multicurrency balance . Quote
Question
Doctrine
Hello,
Example:
Client ID: <?php $this->Html->_($client->id_code);?>
I need:
Active Services (the number)
Opened Tickets: (the number)
Unpaid invoices (number and the amount)
Thanks if that possible
4 answers 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.