开发者

Drupal 7, how i can acces my module, and view admin page?

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. How can i access admin page and what is the problem with this redirection?
  2. i created test.module and gave it a path admin/test, when i'm trying to access it it's redirect me to same 'Server Configuration' page.

Here is my module code:

<?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';
}


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜