Codeigniter shows strange errors

Asked

Viewed 56 times

2

I’m developing an application Codeigniter, but I reinstated the Wampserver. In the place where there was a form now shows this following code.

'id', 'value' => $id, 'size' => '6', 'readonly' => 'true')); ?> 
'login', 'value' => $login, 'size' => '15', 'readonly' => 'true')); ?> 
'email', 'value' => $email, 'size' => '30', 'readonly' => 'true')); ?> 
'senha', 'size' => '30')); ?> 
'novasenha', 'size' => '30')); ?> 
'novasenha2', 'size' => '30')); ?> 

What should I do to solve ?

  • your initial tag ta so <?php, because the short_open_tag must ta off

1 answer

1

Place <?php at the beginning, because, the short_open_tag must be off. It is not good practice (because it is better to use this item without enabling, because of the servers where you will make your site available and the default php opening tag is <?php), but if you want to edit in your php.ini the configuration of short_open_tag:

She must be like this:

short_open_tag = off

put it like this:

short_open_tag = on

That is, it is not running code PHP.

  • Hello, another question, before Cde Igniter showed me programming errors in a better way, now it shows like http://pt-br.tinypic.com/view.php?pic=2qdr1ab&s=8#. U6jq40ck6so where can I fix ?

  • @user11650 not understood?

  • It used to show errors like http://www.google.com/imgres?imgurl=http%3A%2F%2Fi.stack.Imgur.com%2FDP67M.png&imgrefurl=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F13656999%2Ftrouble-in-codeigniter-taking-data-from-one-db-table-and-Creating-a-entry-in-ano&h=800&w=1280&tbnid=gTzQnE5zDlkQiM%3A&zoom=1&docid=9T-6J6h8k7512M&ei=QFKiU4SUI7S_sQSDooGQDg&tbm=isch&ved=0CCQQMygJMAk&iact=rc&uact=3&dur=381&page=1&start=0&ndsp=14 , agora assim http://pt-br.tinypic.com/view.php?pic=2qdr1ab&s=8#. U6jq40ck6so

  • Vixe I don’t know...

  • @user11650 the first question has been solved? if you have other question ask another question, if yes closes this question!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.