How To Use Static Property In View

How can i use a static property of my controller in a view??




class ProductShowcaseController extends Controller

{

    public $cartCode = "Mkf.Product.Cart";

    public static $currencyPrefix;


    public function actionIndex()

    {

       $this->render('index');

    }

}



Index view





<h1><?php echo self::$currencyPrefix; ?></h1>




Tanks!

echo $this->$currencyPrefix

Hello tanks Prat, I got using this form.


$this::$currencyPrefix

if i use…


$this->currencyPrefix 

throw error.

TANKS.

Hi, check this


ProductShowcaseController::$currencyPrefix