How to use server function in menu counter component
This tutorial shows you how to use existing server function in menu counter component. If you dont know how to create new server function check out this tutorial.
For this tutorial, you have to login into developer panel of your application.
1. Navigate to Navigation menu item in developer panel.
2. Drag and drop Menu counter component from all components list to product menu item in navigation tree.
3. In dropped menu counter component properties, for Data source type property choose Server function.
4. Click on Data source Function field and on the left side of dialog window choose plugin. On the right side choose function for menu counter component. Variable result in plugin function is an instance of AjaxProxy class. Attribute data of result variable ($result->data) must be a number or an array with data array key. Click on Save button.
5. Click on Save changes, go into your application and check out the results.