The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [view]

Use this tag for questions relating to the View component of the Model-View-Controller (MVC) design pattern.

Filter by
Sorted by
Tagged with
2
votes
1answer
771 views

Correct / Best way of calling model methods inside view.html.php

Which is the correct/best method of calling model methods inside view.html.php. Method 1 $mydata = $this->get('MyData') ; Method 2 $model = $this->getModel() ; $mydata = $model->getMyData(...
6
votes
2answers
768 views

Override a component view for a specific menu item

How can I override the component view for a specific menu item? For a global overwrite I can use template/html/com_xxx/. But how can I do it only for a specific menu item? Example : Joomla! has a ...
1
vote
1answer
52 views

Multiple templates for the same view of a custom component

In my custom component, I would like to have multiple slightly different templates for the same view. Something like com_things/ ... - views/ - thing/ ... - things/ - tmpl/ ...