Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Difference between view and task in joomla component

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 210
    Comment on it

    view stands for component view in joomla any component have multiple views for e.g default component. like- com_users have multiple views(register,profile) inside user component. so we can call any view using below url.

    index.php?option=com_mycomponent&view=myview
    

    It means mycomponent is component which contains view folder name as myview.

    Task is a function which defines inside the controller file of any component.we can call any task using below url.

    index.php?option=com_mycomponent&task=mycontroller.myfunction
    

    Means myfunction is define inside mycontroller file.We can also access the function inside controller is by using hidden fields.

    <input name="option" value="com_mycomponent" type="hidden">
    <input name="controller" value="mycontroller" type="hidden">
    <input name="task" value="myfunction" type="hidden">
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: