未知项目类型的错误,即使在模块

问题描述:

我得到奇怪的错误的manifest.php文件中注册。请帮助未知项目类型的错误,即使在模块

我创建了一个名为 “Advinvite”

我已经创建表自定义模块: “engine4_advinvite_matchinvites”

我已经创建DBTABLE: “Advinvite_Model_DbTable_Matchinvites”

我创建DBTABLE的行级车型: “Advinvite_Model_Matchinvite” 并在表的主键是 “matchinvite_id”

我也创建API: “Advinvite_Api_Core”

主要部分,我也注册在像模块的设置文件夹中的文件manifest.php项目:

// Items --------------------------------------------------------------------- 
    'items' => array(
    'advinvite_matchinvite', 
) 

现在就错误:

我收到错误“未知的项目类型:advinvite_matchinvite”当我想用

Engine:Api:_()->getItem('advinvite_matchinvite',its_Identity)

我送过下面的清单文件的代码。请你帮我检查一下并帮助我。它已经来了我人生第一次(奇怪的错误),我试图解决这个去年三/四天。即使我所做的一切正确,为什么它发生不理解。请帮助我的队友。这将非常感激。

而且,如果你还可以帮我这个也意味着路线也没有工作....不知道为什么这些两个错误来了

请帮助我。

Manifest.php代码:

<?php return array (
    'package' => 
    array (
    'type' => 'module', 
    'name' => 'advinvite', 
    'version' => '4.0.0', 
    'path' => 'application/modules/Advinvite', 
    'title' => 'Advanced Invites', 
    'description' => 'This will invite the users for matches and nets', 
    'author' => 'Gitesh Dang', 
    'callback' => 
    array (
     'class' => 'Engine_Package_Installer_Module', 
    ), 
    'actions' => 
    array (
     0 => 'install', 
     1 => 'upgrade', 
     2 => 'refresh', 
     3 => 'enable', 
     4 => 'disable', 
    ), 
    'directories' => 
    array (
     0 => 'application/modules/Advinvite', 
    ), 
    'files' => 
    array (
     0 => 'application/languages/en/advinvite.csv', 
    ), 
    // Items --------------------------------------------------------------------- 
    'items' => array(
    'advinvite_matchinvite', 
), 
    // Routes -------------------------------------------------------------------- 
    'routes' => array(
    'advinvite_general' => array(
     'route' => 'invites/:action/*', 
     'defaults' => array(
     'module' => 'advinvite', 
     'controller' => 'index', 
     'action' => '(match|matchview)', 
    ), 
     'reqs' => array(
     'action' => '\D+', 
    ) 
    ), 
) 
), 
); ?> 

等待阳性反应。 亲切的问候

配合, 它已得到修复。 问题是次要的:)

项目在封装阵列注册,它应该封装阵列之外进行登记。软件包数组只能关闭文件数组。

修正清单文件:

<?php return array (
     'package' => 
     array (
     'type' => 'module', 
     'name' => 'advinvite', 
     'version' => '4.0.0', 
     'path' => 'application/modules/Advinvite', 
     'title' => 'Advanced Invites', 
     'description' => 'This will invite the users for matches and nets', 
     'author' => 'Gitesh Dang', 
     'callback' => 
     array (
      'class' => 'Engine_Package_Installer_Module', 
     ), 
     'actions' => 
     array (
      0 => 'install', 
      1 => 'upgrade', 
      2 => 'refresh', 
      3 => 'enable', 
      4 => 'disable', 
     ), 
     'directories' => 
     array (
      0 => 'application/modules/Advinvite', 
     ), 
     'files' => 
     array (
      0 => 'application/languages/en/advinvite.csv', 
     ), 
    ), 
// Items --------------------------------------------------------------------- 
     'items' => array(
     'advinvite_matchinvite', 
    ), 
     // Routes -------------------------------------------------------------------- 
     'routes' => array(
     'advinvite_general' => array(
      'route' => 'invites/:action/*', 
      'defaults' => array(
      'module' => 'advinvite', 
      'controller' => 'index', 
      'action' => '(match|matchview)', 
     ), 
      'reqs' => array(
      'action' => '\D+', 
     ) 
     ), 
    ) 
    ); ?> 

干杯! :)