Welcome Guest, Not a member yet? Register   Sign In
strange problem in my view,has anyone help me?

I have complete yesterday night in my notebook computer.
then i unzip it in my woking computer PC.
the strange thing is display,the method form_open,form_close,and so on
in <??> which are not be output html,but php code directly,

I try other php file,the display is normal.
why ?

my view file is:
filename: login_tpl.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

        &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
        &lt;!--css link--&gt;
        &lt;link type="text/css" rel="stylesheet" href="&lt;?=CSS_URL;?&gt;index.css" /&gt;

    <div id="">
        &lt;?=form_open('center/login/ilogin',array('id' => 'loginform','class' => 'loginform'));?&gt;
            <div><span class="">Username:</span>&lt;input id="user_name" type="text" name="user_name" class="" /&gt;&lt;/div>
            <div><span class="">Password:</span>&lt;input id="password" type="password" name="password" class="" /&gt;&lt;/div>
            <div>&lt;input type="submit" value="go!" /&gt;&lt;/div>

the image is belowed:

this may happen if short tags are disabled. try to enable the short tags in php.ini or replace "&lt;?=" this with "&lt;?php echo".

But I change the filename:

function index(){
            $data = array('title' => $this->lang->line('title_center_index'));

login_tpl to loginto_tpl or test_tpl and so on,
the problem is disapper.my god!!!

you can also try changing following configuration 'rewrite_short_tags' in config.php file to true.

$config['rewrite_short_tags'] = true;

Theme © iAndrew 2016 - Forum software by © MyBB