运行codeigniter php项目时需要对url进行哪些设置

时间:2013-08-16 06:41:06

标签: php codeigniter url config

我已经开始在Codeigniter工作了。我的项目名称为PRS,其中config.php的设置为:

$BASE_URL = "http://".$_SERVER['SERVER_NAME']."/PRS"  ;
$DB_HOST = "localhost";
$DB_USER = "root";
$DB_PASSWORD = "mysql";
$DB_NAME = "db1";

c:windows/system32/drivers/etc/hosts文件中,我包含以下行:

127.0.0.1        www.prs.net

但是当我使用url运行项目为[http://www.prs.net/PRS/index.php] [1]时,它没有运行我的项目,它在浏览器AS中显示代码 -

session->userdata('ACCOUNT_LOGO_URL')):?>    
session->userdata("USER_ROLE") == ROLE_SUPERUSER && $this->session->userdata("ACCOUNT_SELECTED")):?>
lang->line('header_label_current_account')?> : session->userdata('ACCOUNT_NAME');?>
session->userdata("USER_ID")):?>     session->userdata("USER_ROLE") != ROLE_SUPERUSER):?>
session->userdata('PAGE') == PAGE_CREATE_REQUEST){echo 'class="selected"';}?>> lang->line('header_link_create_request'));?>
session->userdata('PAGE') == PAGE_REQUEST_LIST){echo 'class="selected"';}?>> lang->line('header_link_request_list'));?>
session->userdata('PAGE') == PAGE_ARCHIVED_LIST){echo 'class="selected"';}?>> lang->line('header_link_archived_requests'));?>
session->userdata("USER_ROLE") == ROLE_ADMINISTRATOR):?>
session->userdata('PAGE') == PAGE_MANAGE_USERS){echo 'class="selected"';}?>> lang->line('header_link_manage_users'));?>
session->userdata('PAGE') == PAGE_FORM_DESIGN){echo 'class="selected"';}?>> lang->line('header_link_form_design'));?>
session->userdata('PAGE') == PAGE_GENERAL_SETTINGS){echo 'class="selected"';}?>> lang->line('header_link_general_settings'));?>
session->userdata("USER_ROLE") == ROLE_SUPERUSER):?>
session->userdata('PAGE') == PAGE_ACCOUNT_LIST){echo 'class="selected"';}?>> lang->line('header_link_show_account_list'));?>
session->userdata('ACCOUNT_SELECTED')):?>
session->userdata('PAGE') == PAGE_MANAGE_USERS){echo 'class="selected"';}?>> lang->line('header_link_manage_users'));?>
session->userdata('ACCOUNT_ID') != SUPER_USER_DEFAULT_ACCOUNT_ID):?>
session->userdata('PAGE') == PAGE_FORM_DESIGN){echo 'class="selected"';}?>> lang->line('header_link_form_design'));?>
session->userdata('PAGE') == PAGE_GENERAL_SETTINGS){echo 'class="selected"';}?>> lang->line('header_link_general_settings'));?>
session->userdata('PAGE') == PAGE_EXPORT_SCHEMA){echo 'class="selected"';}?>> lang->line('header_link_export_schema'));?>
session->userdata('PAGE') == PAGE_GENERAL_SETTINGS){echo 'class="selected"';}?>> lang->line('header_link_create_account'));?>
session->userdata('PAGE') == PAGE_VIEW_LOG){echo 'class="selected"';}?>> lang->line('header_link_view_log'));?>
session->userdata('PAGE') == PAGE_CREATE_REQUEST):?>
lang->line('header_link_back_to_login'));?>
lang->line('login_heading_customer_login');?>
session->userdata('ACCOUNT_LOGIN_REQUIRED') == ACCOUNT_REQUIRE_LOGIN_DISABLED ):?>
', '
');?>
lang->line('login_label_user_email');?> :

lang->line('login_label_user_password');?> :

Submit
OR

lang->line('login_link_create_request');?>
session->userdata('ACCOUNT_LOGIN_REQUIRED') == ACCOUNT_REQUIRE_LOGIN_ENABLED ):?> 


lang->line('footer_text');?> Aquent.

。那么我需要做些什么改变呢?

0 个答案:

没有答案