ECurrencyHelper Currency Conversion Class based on the European Central Bank daily rat
#1
Posted 12 September 2011 - 10:20 AM
Please, use this topic to improve/report/suggest on this extension.
Cheers
PS: To download the extension go to :http://www.yiiframew...currencyhelper/
www.ramirezcobos.com
www.yiianswers.com
www.2amigos.us
www.getyiistrap.com
www.github.com/tonydspaniard
www.github.com/2amigos
#2
Posted 02 December 2011 - 08:16 PM
For extansion thanks in handy.
#3
Posted 02 December 2011 - 08:30 PM
Ruganin, on 02 December 2011 - 08:16 PM, said:
For extansion thanks in handy.
Thanks for the tip, I think that by removing that option will be ok... Will update asap.
Cheers
www.ramirezcobos.com
www.yiianswers.com
www.2amigos.us
www.getyiistrap.com
www.github.com/tonydspaniard
www.github.com/2amigos
#4
Posted 13 December 2011 - 07:33 PM
#5
Posted 13 December 2011 - 08:01 PM
Ruganin, on 13 December 2011 - 07:33 PM, said:
There is none as it is the European Central Bank Data... would do the check on availability...
Thanks again Ruganin, will update asap...
www.ramirezcobos.com
www.yiianswers.com
www.2amigos.us
www.getyiistrap.com
www.github.com/tonydspaniard
www.github.com/2amigos
#6
Posted 13 December 2011 - 08:05 PM
Ruganin, on 13 December 2011 - 07:33 PM, said:
mmm.... that error, Call to a member function convert() on a non-object... doesn't mean there was the wrong data but that you use an object that is not set and then call a function name convert(). Don't you think is weird?
www.ramirezcobos.com
www.yiianswers.com
www.2amigos.us
www.getyiistrap.com
www.github.com/tonydspaniard
www.github.com/2amigos
#7
Posted 13 December 2011 - 09:19 PM
my code
Config main
'ecur'=>array(
'class'=>'application.extensions.eCurrency.ECurrencyHelper'
),Extensions
class ECurrencyHelper extends CWidget
{
//...Widget
class CurrencyWidget extends CWidget {
public function run() {
$usd = round(Yii::app()->ecur->convert('CZK','USD',1000),3);
$eur = round(Yii::app()->ecur->convert('CZK','EUR',1000),3);
$rub = round(Yii::app()->ecur->convert('CZK','RUB',1000),1);
$this->render('currencyWidget',array('usd'=>$usd, 'eur'=>$eur, 'rub'=>$rub));
}
}
layouts
$this->widget('application.components.CurrencyWidget');views
echo $usd; //...
The error appears when unavailable url BCE.
Or when problems in the channel hosting.
#8
Posted 14 December 2011 - 10:33 AM
The site on which the error occurred, the extension is specified:
class ECurrencyHelper extends CApplicationComponent
{
//...When correcting for (extends CWidget) problem has been resolved.
Forgot to update the file after creating a widget.
I apologize for the inconvenience, and not the correct information.
#9
Posted 17 December 2011 - 01:53 PM
Ruganin, on 02 December 2011 - 08:16 PM, said:
For extansion thanks in handy.
I have corrected this issue, new version allows CURLOPT_FOLLOWLOCATION for open_basedir off and has a workaround when this restriction is set.
Cheers
www.ramirezcobos.com
www.yiianswers.com
www.2amigos.us
www.getyiistrap.com
www.github.com/tonydspaniard
www.github.com/2amigos
#10
Posted 18 December 2011 - 04:38 AM
What's the problem? How to decide?
#11
Posted 18 December 2011 - 05:01 AM
Ruganin, on 18 December 2011 - 04:38 AM, said:
What's the problem? How to decide?
Ohh man, what a silly mistype error!!! just change it to ini_get !!!!
www.ramirezcobos.com
www.yiianswers.com
www.2amigos.us
www.getyiistrap.com
www.github.com/tonydspaniard
www.github.com/2amigos
#12
Posted 18 December 2011 - 05:20 AM
Antonio Ramirez, on 18 December 2011 - 05:01 AM, said:
Hmm, that's a line from the downloaded new Extensions 1.0.2 of 16 December
if (init_get('open_basedir') == '' && ini_get('safe_mode') == 'Off')Redownload of December 18, there is this bug is already fixed, it works.
#13
Posted 19 December 2011 - 07:16 AM
Ruganin, on 18 December 2011 - 05:20 AM, said:
if (init_get('open_basedir') == '' && ini_get('safe_mode') == 'Off')Redownload of December 18, there is this bug is already fixed, it works.
Great man... thanks for your feedback!
www.ramirezcobos.com
www.yiianswers.com
www.2amigos.us
www.getyiistrap.com
www.github.com/tonydspaniard
www.github.com/2amigos
#14
Posted 07 August 2012 - 06:29 AM
thanks
#15
Posted 12 August 2012 - 12:13 AM
Cheesy, on 07 August 2012 - 06:29 AM, said:
thanks
Isnt it clear at its wiki? http://www.yiiframew...currencyhelper/
Just drop it on your extensions folder and you are ready to go, you just need to import it before use.
www.ramirezcobos.com
www.yiianswers.com
www.2amigos.us
www.getyiistrap.com
www.github.com/tonydspaniard
www.github.com/2amigos

Help













