VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: blackjet9999 on December 10, 2012, 12:19:19 PM

Title: How to call $this->assignRef in Controller from View?
Post by: blackjet9999 on December 10, 2012, 12:19:19 PM
Hi,

I'm using Joomla 2.5 Virtuemart 2.0

I would like to call $this->assignRef  in mysite/components/com_virtuemart/controllers/cart.php from mysite/components/com_virtuemart/views/cart/view.html.php

However, I don't know how.

Please advice.

Thanks
Title: Re: How to call $this->assignRef in Controller from View?
Post by: balai on December 10, 2012, 16:39:18 PM
assignRef   is a function that belongs to the jview class. Cannot called outside of it.
Also it is deprecated function $this->yourvar does the trick in the view

I cannot find any reason to do that in the controller