-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$default_view does not work in BaseController #40991
Comments
If I understand correctly, you are working on an own component? In my experience, these errors are always caused by wrong usage of namespace, typos in filenames or wrong classnames. You could join the extension development cannel on our mattermost https://joomlacommunity.cloud.mattermost.com. I close this as it is not a bug in Joomla. We can re-open if you are sure that it is a bug, |
I think, this is a bug. Let me present my short example.
When I change it to the following - there is no error.
It means (in my opinion) that there are no missing parts in my code. What is interesting, the problem appears ONLY on the Front End. When I do is in Admin Part there is no problem. |
There is nothing wrong with the code in This routing issue is something which Joomla needs to address. However, while waiting for it to work properly, you can use that workaround code or passing right value for Itemid variable in your link. |
@Hackwar pinging you as this appears to be linked to the recent work you have been doing. Perhaps you already fixed this |
Since we have #42989, I'm closing this issue. |
I have an (almost empty) ArticleController extends BaseController on the site part
I use there
protected $default_view = 'article';
When using the URL
http:/myhost/index.php/component/nycomponent/?controller=Article&id=70
I get the error:
View not found [name, type, prefix]: featured, html, site
The view featured comes from the input so my default_view is ignored
System information (as much as possible)
Opensuse
PHP 8.1
Joomla 4.3.2
Additional comments
The text was updated successfully, but these errors were encountered: