Reputation: 9065
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
Reputation: 2731
You can either use &layout=edit
in the URL, or set it in the view using $this->setLayout('edit');
Upvotes: 2