base_path

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

includes/common.inc, строка 1683

Версии
5 – 6
base_path()

Возвращает базовый путь сайта (по-умолчанию, "/").

▾ 20 функции вызывают base_path()

color_scheme_form_submit in modules/color/color.module
Submit handler for color change form.
drupal_add_js in includes/common.inc
Добавляет JavaScript файл, настройки или код на страницу.
drupal_build_css_cache in includes/common.inc
Объединяет и оптимизирует файлы CSS, размещая конечный файл в файловой директории.
drupal_get_css in includes/common.inc
Returns a themed representation of all stylesheets that should be attached to the page.
drupal_get_js in includes/common.inc
Returns a themed presentation of all JavaScript code for the current page.
phptemplate_get_ie_styles in themes/garland/template.php
Generates IE CSS links for LTR and RTL languages.
search_index in modules/search/search.module
Обновляет полнотекстовый поисковый индекс для указанного элемента.
system_clean_url_settings in modules/system/system.admin.inc
Form builder; Configure Clean URL settings. See alsosystem_settings_form()
system_requirements in modules/system/system.install
Test and report Drupal installation requirements.
template_preprocess_maintenance_page in includes/theme.maintenance.inc
The variables generated here is a mirror of template_preprocess_page(). This preprocessor will run it's course when theme_maintenance_page() is invoked. It is also used in theme_install_page() and theme_update_page() to keep all the variables...
template_preprocess_page in includes/theme.inc
Обрабатывает переменные для page.tpl.php
theme_color_scheme_form in modules/color/color.module
Темизирует форму выбора расцветки темы оформления.
theme_get_setting in includes/theme.inc
Получает значение указанной настройки темы.
theme_image in includes/theme.inc
Возвращает темизированную картинку.
theme_image_button in includes/form.inc
Темизирует кнопку-картинку формы.
update_info_page in ./update.php
update_results_page in ./update.php
url in includes/common.inc
Генерирует URL из указанного пути меню. Также поддерживает уже существующие URL.
_color_page_alter in modules/color/color.module
Callback for the theme to alter the resources used.
_color_rewrite_stylesheet in modules/color/color.module
Rewrite the stylesheet to match the colors in the palette.

Код

<?php
function base_path() {
  return $GLOBALS['base_path'];
}
?>

Пользовательские комментарии

Установить $base_url вручную можно в файле settings.php вашего сайта, добавив туда такю строчку:

$base_url = 'http://www.example.com';
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему