fefe
fefe

Reputation: 9065

joomla layout handling in custom component

where do I set the desired layout in the following function if is getting called like

$input = JFactory::getApplication()->input;
$input->set('view', $input->getCmd('view', 'Myview'));

and I would like to be redirected for example to /views/tmpl/edit.php

found it

it needs to be declared by url structure

Upvotes: 1

Views: 199

Answers (1)

Bakual
Bakual

Reputation: 2731

You can either use &layout=edit in the URL, or set it in the view using $this->setLayout('edit');

Upvotes: 2

Related Questions