Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wax83 opened this issue Nov 16, 2012 · 6 comments
Open

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

wax83 opened this issue Nov 16, 2012 · 6 comments

Comments

@wax83
Copy link

wax83 commented Nov 16, 2012

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
Copy link
Owner

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
Copy link
Author

wax83 commented Nov 16, 2012

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
Copy link

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
Copy link
Owner

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
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants