[英]Paths to differents files in one view - Joomla
I'm trying to put a link in a component's view file (default.php) to another file in the same view (default_formulaire.php) as you can see below: 我正在尝试将组件视图文件(default.php)中的链接放置到同一视图(default_formulaire.php)中的另一个文件,如下所示:
But I really don't know how to access it in PHP. 但是我真的不知道如何在PHP中访问它。 I know that the default.php
file's url is: 我知道default.php
文件的网址是:
index.php?option=com_multicontact&view=reclamation
but I don't know that of default_formulaire.php
. index.php?option=com_multicontact&view=reclamation
但我不知道default_formulaire.php
。
Thanks for any help :) 谢谢你的帮助 :)
如果您需要在joomla中访问其他布局,则需要在joomla url中添加一个布局值,例如index.php?option=com_multicontact&view=reclamation&layout=default_formulaire
The link to any view in Joomla is the following: 指向Joomla中任何视图的链接如下:
index.php?option=com_componentname&view=viewname&layout=layoutname
However, if the layout
is omitted from the URL, then it is assumed that it is set to default
. 但是,如果从URL中省略了layout
,则假定已将其设置为default
。 So, the following URL: 因此,以下URL:
index.php?option=com_componentname&view=viewname
Will mean that the layout is default
, which means that the default.php
file will be loaded. 这将意味着该布局为default
,这意味着将加载default.php
文件。
So, in your situation, the URL to load the default_formulaire
layout will be: 因此,根据您的情况,加载default_formulaire
布局的URL将为:
index.php?option=com_multicontact&view=reclamation&view=default_formulaire
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.