ty0716
-
Posts
59 -
Joined
-
Last visited
Posts posted by ty0716
-
-
Enable error reporting in blesta config to see if there are a errors .
Not find error info.
Configure::errorReporting(1);
-
Are you sure the directory components/gateways exist and exist the marxhent and non marchent folder in it ,
I sure exist these directory.
-
How to open Gateways?My system does not have this option set.
I see documentation says
To use a gateway, it first must be installed under [settings] > [system] > [Payment Gateways] > Available. Once installed, the gateway can be configured and used. It will then be accessible under [settings] > [system] > [Payment Gateways] > Installed by clicking the "Manage" button for the desired gateway.
http://docs.blesta.com/display/user/Gateways
but in my system not find this setting.
And in directory "admin/settings/company/gateways/installed/" not find Available Gateways list.
-
The uses() function is judt to load the models . Inside your model you should use record components to use the database calls .
Does the user's balance field exist in the database table?
Or by other means to calculate it?
-
Sample:
class MyController extends AppController { ... public function method() { // Load the model to use to query the database $this->uses(array("Clients")); // Fetch client ID 1 $client = $this->Clients->get(1); // Make the client available to the template in the variable "$client1" $this->set("client1", $client); } ... }
When I want to use database table of "support_ticketspro",shoud i how to use the function uses()?
this table "support_ticketspro" is a third-party plugin.
-
Performing database queries from a template negates the purpose of the MVC design pattern. You're better off making an AJAX request as Licensecart mentioned to fetch currency balances from existing controller methods. Alternatively, you can update the controller to fetch the balances and set them as variables to the template you want to display them in.
Now i can use database query in the controller.
How to deliver the query results to template?
-
Performing database queries from a template negates the purpose of the MVC design pattern. You're better off making an AJAX request as Licensecart mentioned to fetch currency balances from existing controller methods. Alternatively, you can update the controller to fetch the balances and set them as variables to the template you want to display them in.
And how to use database query on controller?
-
blesta Is there the same as with whmcs template variables?
Or,how to use database query on template?
thanks
How To Close The Cache In The Development Phase?
in Support
Posted
I want to close the cache. In order to quickly develop and to discover problems in time.
Where is this set