コード例 #1
0
ファイル: orders.php プロジェクト: didww/demo
 function add()
 {
     $countryIso = \Yoda\Request::getString('country_iso');
     $customer_id = \Yoda\Request::getInt('customer_id');
     $city_id = \Yoda\Request::getInt('city_id');
     $pbxwwForm = \Yoda\Request::getInt('pbxww_form');
     $prepaid_funds = \Yoda\Request::getFloat('prepaid_funds');
     if ($pbxwwForm) {
         $this->layout = 'pbxww';
     }
     $cities = [];
     if ($countryIso) {
         $country = new Didww\API2\Country();
         $country->setCountryIso($countryIso);
         $country->loadCities();
         $cities = $country->getCities();
     }
     $this->getView()->setProperties(['customer_id' => $customer_id, 'country_iso' => $countryIso, 'city_id' => $city_id, 'countries' => Didww\API2\Country::getAll(), 'cities' => $cities, 'pbxww_form' => $pbxwwForm, 'prepaid_funds' => $prepaid_funds])->display($pbxwwForm ? 'pbxww' : 'add');
 }
コード例 #2
0
ファイル: coverage.php プロジェクト: didww/demo
 function index()
 {
     $this->getView()->setProperties(['countries' => Didww\API2\Country::getAll()])->display();
 }