Home
Forums
Members
Search
Help
New topics
Todays topics
Website
Welcome Guest, Not a member yet?
Register
Sign In
Login
Username:
Password:
Remember me
Lost Password?
CodeIgniter Forums
Archived Discussions
Archived Development & Programming
Error
Share on Google
Share on Facebook
Share on Twitter
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend
Linear Mode
Threaded Mode
Error
El Forum
Guest
#1
05-31-2011, 01:24 AM
[eluser]Ben[/eluser]
Am new in code ignitor and the tutorial am doing shows this error although everything seems in order
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: records
Filename: views/welcome_message.php
Line Number: 50
My welcome_message.php is
<?php foreach($records as $row) : ?>
<h1><?php echo $row->title; ?></h1>
<?php endforeach; ?>
Please help
El Forum
Guest
#2
05-31-2011, 01:49 AM
[eluser]osci[/eluser]
the message means you are not passing this variable: records.
El Forum
Guest
#3
05-31-2011, 01:52 AM
[eluser]Ben[/eluser]
And how do i solve that?
El Forum
Guest
#4
05-31-2011, 02:07 AM
[eluser]osci[/eluser]
post from controller how you are passing data and from your model how you are getting your data.
And please post in code tags your code to be copied easily, use [ code] [ /code]
without the pace after [
--------------------
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- News & Discussion
-- Events
-- Lounge
-- Regional User Groups
Using CodeIgniter
-- Installation & Setup
-- Model-View-Controller
-- Libraries & Helpers
-- Best Practices
-- Choosing CodeIgniter
-- General Help
CodeIgniter 4
-- CodeIgniter 4 Roadmap
-- CodeIgniter 4 Development
-- CodeIgniter 4 Feature Requests
-- CodeIgniter 4 Support
-- CodeIgniter 4 Discussion
-- CodeIgniter 4 Addins
Development
-- CodeIgniter 3.x
-- CodeIgniter 2.x
-- Issues
-- NetBeans Plugin
External Resources
-- Spotlight
-- Learn More
-- Jobs
-- Addins
Archived Discussions
-- Archived Libraries & Helpers
-- Archived Development & Programming
Theme © iAndrew 2016 -
Forum software by © MyBB