Drupal 7,我如何访问我的模块,并查看管理页面? [英] Drupal 7, how i can acces my module, and view admin page?

查看:163
本文介绍了Drupal 7,我如何访问我的模块,并查看管理页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了最后一个版本的Drupal,它在我的localhost / drupal ...
当我试图去localhost / drupal / admin它去服务器配置的详细信息,像一个wamp页面或有什么,而不是我尝试访问哪个页面(不存在的页面)它去这个wamp服务器配置页面

I installed the last version of Drupal, and its on my localhost/drupal ... When i'm trying to go to localhost/drupal/admin its going to Server Configuration details, like a wamp page or something, and not matter which page i try to access (pages that doesn't exist) its going to this wamp Server Configuration page


  1. 如何我可以访问管理页面,这个重定向有什么问题吗?

  2. 我创建了test.module并给它一个路径管理/测试,当我尝试访问它是重定向我到$相同的'服务器配置'页面。

这是我的模块代码:

<?php

function test_permission() {
  return array(
    'administer blocks' => array(
      'title' => t('acess all users'),
    ),
  );
}

function test_menu() {
  $items['admin/test'] = array(
    'title' => 'Tulik module',
    'page callback' => 'tulik_page_display',
    'access arguments' => array('acess all users'),
  );

  return $items;
}

function tulik_page_display() {
    echo 'hello';
}


推荐答案

检查其干净的url启用或不启用
http:// localhost / drupal /?q = admin / config / search / clean-urls
i认为你应该启用它

check the clean url of its enabled or not from http://localhost/drupal/?q=admin/config/search/clean-urls i think u should enable it

这篇关于Drupal 7,我如何访问我的模块,并查看管理页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆