# Metaversion 2.0 having issue with controller method while calling custom methods on view

**URL:** <https://forum.oxid-esales.com/t/metaversion-2-0-having-issue-with-controller-method-while-calling-custom-methods-on-view/93798>\
**Category:** English forums\
**Tags:** oxid6, module, dev-talk\
**Created:** [July 7, 2018, 6:48am UTC](https://forum.oxid-esales.com/t/metaversion-2-0-having-issue-with-controller-method-while-calling-custom-methods-on-view/93798 "2018-07-07T06:48:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![manishj](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/m/76d3ee/32.png) [@manishj](https://forum.oxid-esales.com/u/manishj)\
**Post date:** [July 7, 2018, 6:48am UTC](https://forum.oxid-esales.com/t/metaversion-2-0-having-issue-with-controller-method-while-calling-custom-methods-on-view/93798/1 "2018-07-07T06:48:29Z")

</div>

while we are calling custom method through view using metadata version 2.0. our controller method not been supported.

we have tried with [{$oxView-\>customfunction()}] but certainly its not working. anyone know about that how can we call method on view using custom module controller to pull the result set on view?

---

<div class="post-metadata">

**Author:** ![vanilla\_thunder](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/vanilla_thunder/32/72_2.png) [@vanilla\_thunder](https://forum.oxid-esales.com/u/vanilla_thunder)\
**Post date:** [July 7, 2018, 8:35am UTC](https://forum.oxid-esales.com/t/metaversion-2-0-having-issue-with-controller-method-while-calling-custom-methods-on-view/93798/2 "2018-07-07T08:35:31Z")

</div>

you need to pay attention on little things: its not $ **ox** VIew, its $ **o** View

---

<div class="post-metadata">

**Author:** ![manishj](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/m/76d3ee/32.png) [@manishj](https://forum.oxid-esales.com/u/manishj)\
**Post date:** [July 7, 2018, 8:40am UTC](https://forum.oxid-esales.com/t/metaversion-2-0-having-issue-with-controller-method-while-calling-custom-methods-on-view/93798/3 "2018-07-07T08:40:18Z")

</div>

Through oView its also not working but when i am rending [{ $oView }] my custom model is rendering properly. when i tried with key its also not working.

do we need to overwrite $oViewConf to call that function?

---

<div class="post-metadata">

**Author:** ![vanilla\_thunder](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/vanilla_thunder/32/72_2.png) [@vanilla\_thunder](https://forum.oxid-esales.com/u/vanilla_thunder)\
**Post date:** [July 7, 2018, 9:23am UTC](https://forum.oxid-esales.com/t/metaversion-2-0-having-issue-with-controller-method-while-calling-custom-methods-on-view/93798/4 "2018-07-07T09:23:04Z")

</div>

deepends on where you need your custom function:  
if you need it only in one controller, its better to extend this controller.  
if you need it everywhere across all controllers, then oxViewConfig is the only way

we need so see some code, at least metadata file and class inheritance + function definition of your extension class

---

<div class="post-metadata">

**Author:** ![manishj](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/m/76d3ee/32.png) [@manishj](https://forum.oxid-esales.com/u/manishj)\
**Post date:** [July 9, 2018, 3:09pm UTC](https://forum.oxid-esales.com/t/metaversion-2-0-having-issue-with-controller-method-while-calling-custom-methods-on-view/93798/5 "2018-07-09T15:09:41Z")

</div>

Metadata.php

/\*  
nothing

@category module  
@package gkfilter  
@author demo User  
@link[www.google.com](http://www.google.com)  
@copyright © gk20012018  
/

/\*\*

- Metadata version  
/  
$sMetadataVersion = ‘2.0’;

/\*  
Module information  
/  
/\*\*

- TODO: Replace sample names and paths (like ‘[ParentClassName]’, ‘[your\_template]’, etc.) with real ones You need.  
TODO: Uncomment lines You need, add more if needed, delete not required.  
TODO: Remove all this TODO comment.  
/  
$aModule = array(  
‘id’ =\> ‘gkgkfilter’,  
‘title’ =\> array(  
‘de’ =\> ‘[TR - GK Gk Filter]’,  
‘en’ =\> ‘GK Gk Filter’,  
),  
‘description’ =\> array(  
‘de’ =\> ‘[TR - GK Gk Filter Module]’,  
‘en’ =\> ‘GK Gk Filter Module’,  
),  
‘thumbnail’ =\> ‘out/pictures/picture.png’,  
‘version’ =\> ‘1.0.0’,  
‘author’ =\> ‘Hello User’,  
‘url’ =\> ‘[www.google.com](http://www.google.com)’,  
‘email’ =\> ‘hello@demo.com’,  
‘extend’ =\> array(

---

<div class="post-metadata">

**Author:** ![manishj](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/m/76d3ee/32.png) [@manishj](https://forum.oxid-esales.com/u/manishj)\
**Post date:** [July 10, 2018, 10:02am UTC](https://forum.oxid-esales.com/t/metaversion-2-0-having-issue-with-controller-method-while-calling-custom-methods-on-view/93798/6 "2018-07-10T10:02:19Z")

</div>

@vanilla_thunder - Can you please take a look our metadata.php which I have pasted above.

---

<div class="post-metadata">

**Author:** ![system](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/system/32/4245_2.png) [@system](https://forum.oxid-esales.com/u/system)\
**Post date:** [July 13, 2026, 7:41pm UTC](https://forum.oxid-esales.com/t/metaversion-2-0-having-issue-with-controller-method-while-calling-custom-methods-on-view/93798/7 "2026-07-13T19:41:43Z")

</div>


