Warning (2): file() [function.file]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 [APP/controllers/currencies_controller.php, line 16]
Code |
Context$change = array(
"USD" => 1
)
file - [internal], line ??
CurrenciesController::set() - APP/controllers/currencies_controller.php, line 16
CurrenciesController::value() - APP/controllers/currencies_controller.php, line 28
Object::dispatchMethod() - CORE/cake/libs/object.php, line 116
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 256
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 230
Object::requestAction() - CORE/cake/libs/object.php, line 99
include - APP/views/elements/results.ctp, line 99
View::_render() - CORE/cake/libs/view/view.php, line 646
View::element() - CORE/cake/libs/view/view.php, line 335
View::renderElement() - CORE/cake/libs/view/view.php, line 903
include - APP/views/tms/author.ctp, line 3
View::_render() - CORE/cake/libs/view/view.php, line 646
View::render() - CORE/cake/libs/view/view.php, line 368
Controller::render() - CORE/cake/libs/controller/controller.php, line 733
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 260
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 230
[main] - APP/webroot/index.php, line 90
Warning (2): file(http://www.templatemonster.com/webapi/currency.php?delim=|&login=etracks&webapipassword=98d1fa2e1d65c0278feee6b49575d084) [function.file]: failed to open stream: no suitable wrapper could be found [APP/controllers/currencies_controller.php, line 16]
Code |
Context$change = array(
"USD" => 1
)
file - [internal], line ??
CurrenciesController::set() - APP/controllers/currencies_controller.php, line 16
CurrenciesController::value() - APP/controllers/currencies_controller.php, line 28
Object::dispatchMethod() - CORE/cake/libs/object.php, line 116
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 256
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 230
Object::requestAction() - CORE/cake/libs/object.php, line 99
include - APP/views/elements/results.ctp, line 99
View::_render() - CORE/cake/libs/view/view.php, line 646
View::element() - CORE/cake/libs/view/view.php, line 335
View::renderElement() - CORE/cake/libs/view/view.php, line 903
include - APP/views/tms/author.ctp, line 3
View::_render() - CORE/cake/libs/view/view.php, line 646
View::render() - CORE/cake/libs/view/view.php, line 368
Controller::render() - CORE/cake/libs/controller/controller.php, line 733
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 260
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 230
[main] - APP/webroot/index.php, line 90
Warning (2): Invalid argument supplied for foreach() [APP/controllers/currencies_controller.php, line 18]
Code |
Context$change = array(
"USD" => 1
)
$file = false
$file = file('http://www.templatemonster.com/webapi/currency.php?delim=|'.TM_WEBAPI_PASSWORD);
//debug($file);
foreach($file as $line) {
CurrenciesController::set() - APP/controllers/currencies_controller.php, line 18
CurrenciesController::value() - APP/controllers/currencies_controller.php, line 28
Object::dispatchMethod() - CORE/cake/libs/object.php, line 116
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 256
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 230
Object::requestAction() - CORE/cake/libs/object.php, line 99
include - APP/views/elements/results.ctp, line 99
View::_render() - CORE/cake/libs/view/view.php, line 646
View::element() - CORE/cake/libs/view/view.php, line 335
View::renderElement() - CORE/cake/libs/view/view.php, line 903
include - APP/views/tms/author.ctp, line 3
View::_render() - CORE/cake/libs/view/view.php, line 646
View::render() - CORE/cake/libs/view/view.php, line 368
Controller::render() - CORE/cake/libs/controller/controller.php, line 733
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 260
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 230
[main] - APP/webroot/index.php, line 90
Notice (8): Undefined index: EUR [APP/controllers/currencies_controller.php, line 30]
Code |
Context$value = "53.00"
$currency = array(
"defaultCurrency" => "EUR",
"change" => array(
"USD" => 1
)
)
if(!$this->Session->read('Currency')) $this->set();
$currency = $this->Session->read('Currency');
$value = $value*$currency['change'][$currency['defaultCurrency']];
CurrenciesController::value() - APP/controllers/currencies_controller.php, line 30
Object::dispatchMethod() - CORE/cake/libs/object.php, line 116
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 256
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 230
Object::requestAction() - CORE/cake/libs/object.php, line 99
include - APP/views/elements/results.ctp, line 99
View::_render() - CORE/cake/libs/view/view.php, line 646
View::element() - CORE/cake/libs/view/view.php, line 335
View::renderElement() - CORE/cake/libs/view/view.php, line 903
include - APP/views/tms/author.ctp, line 3
View::_render() - CORE/cake/libs/view/view.php, line 646
View::render() - CORE/cake/libs/view/view.php, line 368
Controller::render() - CORE/cake/libs/controller/controller.php, line 733
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 260
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 230
[main] - APP/webroot/index.php, line 90
0,00€