我使用的是joomla 3.3.x版本。在这个joomla版本中,有一个内置组件用于注册,login.That组件名为com_user。我必须为我的网站创建两个注册表。
表单名称为注册和客户端注册。
对于注册,我将使用此组件中已经存在的注册表。以下内容的文件结构:
//joomlaroot/components/com_users/models/forms/registration.xml
//joomlaroot/components/com_users/models/registration.php
//joomlaroot/components/com_users/views/registration/tmpl/default.php
//joomlaroot/components/com_users/controllers/registration.php对于客户端注册,我必须在此组件中添加一个视图文件。
我怎么才能添加它呢?
发布于 2015-02-02 05:41:09
您可以在中创建另一个布局:
//joomlaroot/components/com_users/views/registration/tmpl/your_file.php
中切换到此布局。
//joomlaroot/components/com_users/controllers/registration.php具有以下特性:
$view = $this->getView('users', 'html');
$view->setLayout('your_file_name');https://stackoverflow.com/questions/25521164
复制相似问题