Home
Forum
Extensions
Developer Portal
VirtueMart Forum
VirtueMart & Joomla! - The Future of eCommerce
Home
Help
Search
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Support the VirtueMart project and become a
member
VirtueMart Forum
»
VirtueMart 2 + 3
»
Virtuemart Development and bug reports
»
How to declare a task?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: How to declare a task? (Read 433 times)
borro
Jr. Member
Posts: 207
Wish you happiness!
VirtueMart Version: a few
How to declare a task?
«
on:
February 13, 2018, 12:00:58 pm »
Hello!
I'm debugging my code. Now the cursor in the \libraries\legacy\controller\legacy.php and the program check the presense of my own created task in $this->taskMap variable($this is the instance of VirtuemartControllerCategory). How to add my own task to this->taskMap array?
Logged
Wish you happiness!
Studio 42
Contributing Developer
Sr. Member
Posts: 3627
Joomla & Virtuemart developper
VirtueMart Version: 2.6 & 3
Re: How to declare a task?
«
Reply #1 on:
February 13, 2018, 17:38:23 pm »
You don't need to add something, taskMap is needed if you use 2 task for 1 function.
Eg apply and save task to use function save
If you overide a controller class and add a new function mytask then it work if you use link task=mytask
Logged
Free
XML sitemap generator
http://shop.st42.fr/en/catalog/products/virtuemart-2-sitemap.htm
,
Free
Unused Image cleaner
http://shop.st42.fr/en/products/virtuemart-media-folder-clear.htm
Language
Switch in product & category
http://shop.st42.fr/en/categories-tools/multi-language-for-virtuemart.htm
More
extentions
http://shop.st42.fr/en/
borro
Jr. Member
Posts: 207
Wish you happiness!
VirtueMart Version: a few
Re: How to declare a task?
«
Reply #2 on:
February 14, 2018, 09:50:08 am »
thank you!
Logged
Wish you happiness!
Print
Pages: [
1
]
Go Up
« previous
next »
VirtueMart Forum
»
VirtueMart 2 + 3
»
Virtuemart Development and bug reports
»
How to declare a task?
We use cookies, just to track visits to our website, we store no personal details.
OK
Learn more