Jump to content

ty0716

Members
  • Posts

    59
  • Joined

  • Last visited

Posts posted by ty0716

  1. 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.

     

    QQ%E5%9B%BE%E7%89%8720150625120959.png

     

    QQ%E5%9B%BE%E7%89%8720150625121018.png

    QQ%E5%9B%BE%E7%89%8720150625121056.png

  2.  

    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.

  3. 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?

  4. 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?

×
×
  • Create New...