jubi4dition / yourcontacts

Little web application (Codeigniter, Bootstrap, jQuery) to manage your contacts with name, email and phone.
http://youtu.be/whRIIjcSB1c
Other
53 stars 23 forks source link

Iteration does not display anything in 'contacts' view #4

Open wax83 opened 12 years ago

wax83 commented 12 years ago

Hello!

I've encountered a problem in your app, namely when you would display the attributes of the contacts table in the 'contacts' view, the iteration doesn't display any data in the cells. Instead I get a notice, saying:

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: i

Filename: views/contacts.php

Line Number: x

..in every table cell!! Why is that? If you have any suggestion please share it with me, that'd be very much appreciated! Thanks, anyway for the nice tutorial app!

jubi4dition commented 12 years ago

Hello, everything works for me. Did you download the master-zip? You have to activate short_open_tag in your php.ini http://php.net/manual/de/ini.core.php or look here http://codeigniter.com/user_guide/general/alternative_php.html

wax83 commented 12 years ago

Hi,

seemingly its nothing to do with template parsing.. All the other files worked for me, with the CI-style alternate syntax. But I'm sure the blemish is on my side! :) Thanks, again & sorry if I opened a pointless issue!

arnoldkit commented 11 years ago

Good day. i have received ur email sir. (Please allow me to call you that way, im just showing my respect to you and your work) . anyway.. uhmm. i have edited my config/config.php file on yourcontacts directory, well the function of the Login and the Sign Up page worked for me but when i logged in. the shows me this errors. . i think its like what "wax83" experienced. but i dnt know whatever else to do. Please help.. thank u very much sir! yourmaster

jubi4dition commented 11 years ago

Ok, i finally tried it myself and deactivated the short_open_tag in the php.ini. Then i set $config['rewrite_short_tags'] to true. And i get the same result as you, so this rewrite function from codeigniter is not really working for my project. The solution is that you have to activate the short_open_tag in your php.ini. If you would be using PHP-5.4, which i recommend, then this function is activated by default, otherwise you have to set it. Which PHP version are you working with and which operating system are you using?

arnoldkit commented 11 years ago

Good Day! :)

ive downloaded the php version you recommending, its now 100% working, thanks :) and i also read about the non-ending issue of shor tags. haha. atleast i have a little knowledge bout it.

thanks anyway. i hope i can be as good as you in the near future. For now i will master bootstrap first and if ever im so much familiar with that. il collaborate it to CodeIgniter as what you do . thank you again :))

jubi4dition commented 11 years ago

That's nice to hear. Normally Codeigniter is designed to even work on the old PHP-Version 5.2, but it's always good to have the newest stable version installed.