安装后的文件夹名称和Joomla组件链接

时间:2018-05-26 07:22:28

标签: php joomla

我为Joomla写了一个组件。一切正常但安装后文件夹名称如下:com _。

无法在后端访问该组件。请帮帮我。

yoodabir.php

    if( ! JFactory::getUser()->authorise('core.manage', 'com_yoodabir'))
 {
throw new Exception(JText::_('JERROR_ALERTNOAUTHOR'), 403);
 }

$controller = JControllerLegacy::getInstance('yoodabir');

   JLoader::register('yoodabirHelper', JPATH_COMPONENT.'/helpers yoodabir.php');

   $controller->execute(JFactory::getApplication()->input->get('task'));

  $controller->redirect();

yoodabir.xml:

         <?xml version="1.0" encoding="utf-8"?>
       <extension type="component" version="3.0" method="upgrade">
      <name>دبیرخانه</name>
      <creationDate>2018</creationDate>
      <author>hh</author>
     <authorEmail>hhh</authorEmail>
     <authorUrl>hhh</authorUrl>
     <copyright>hh</copyright>
    <license>hhh</license>
   <version>0.0.2</version>
   <description></description>

    <install>
    <sql>
          <file driver="mysql"    charset="utf8">sql/install.mysql.utf8.sql</file>
        </sql>
     </install>

       <uninstall>
    <sql>
          <file driver="mysql"     harset="utf8">sql/uninstall.mysql.utf8.sql</file>
    </sql>
     </uninstall>

     <files folder="site">
        <filename>yoodabir.php</filename>
        <filename>controller.php</filename>
       <filename>index.html</filename>
      <folder>views</folder>
       <folder>models</folder>
         <folder>assets</folder>
         <folder>uploadfile</folder>
         <folder>helpers</folder>
       <folder>controller</folder>

        </files>

        <administration>
       <menu>دبیرخانه</menu>
       <files folder="admin">
        <filename>yoodabir.php</filename>
        <filename>access.xml</filename>
        <filename>config.xml</filename>
        <filename>controller.php</filename>
        <folder>controllers</folder>
        <folder>models</folder>
        <folder>views</folder>
        <folder>helpers</folder>
        <folder>tables</folder>
        <folder>sql</folder>
        <folder>assets</folder>
         </files>
        </administration>
       </extension>

1 个答案:

答案 0 :(得分:1)

Joomla安装程序使用<name>标记来确定扩展名的文件夹名称,但它可能不适用于非拉丁字母,因此请尝试更改为<name>yoodabir</name>

此外,帮助者的路径中还有一个空格。