Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8
This is the forum to discuss the Wrox book Professional CodeIgniter by Thomas Myer; ISBN: 9780470282458
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 23rd, 2011, 05:09 PM
Registered User
Points: 46, Level: 1
Points: 46, Level: 1 Points: 46, Level: 1 Points: 46, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2011
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default error in the dashboard pages code

note : "beware this code was downloaded recently from here (wrox.com) its not the same code present in the book its the downloadable version"
This is the error i have :

A PHP Error was encountered
Severity: Notice

Message: Undefined index: category_id

Filename: views/admin_pages_home.php

Line Number: 22

---------------------------------------------------
help please.
thanks.

Last edited by zoro12; November 24th, 2011 at 12:56 PM..
Reply With Quote
  #2 (permalink)  
Old November 23rd, 2011, 05:26 PM
Registered User
Points: 46, Level: 1
Points: 46, Level: 1 Points: 46, Level: 1 Points: 46, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2011
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default i changed the category_id to just id and i have new error :

the new error :

A PHP Error was encountered
Severity: Notice

Message: Undefined variable: cats

Filename: views/admin_pages_home.php

Line Number: 25

i am wondering what categories has to do with the pages !
Reply With Quote
  #3 (permalink)  
Old November 24th, 2011, 01:03 PM
Registered User
Points: 46, Level: 1
Points: 46, Level: 1 Points: 46, Level: 1 Points: 46, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2011
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default i have solved the error but i dont know the author intention in this !!!!!!!!!!!!!...

i have solved the error issue by commenting out the code that caused the error in the view file admin_pages_home.php :

echo "<td>";
if (!preg_match("/\.html$/",$list['path'])){
$list['path'] .= ".html";
}
echo "/". $list['path'];
// if ($category['id'] == 0){
// echo "/". $list['path'];
// }else{
// echo "/". $cats[$list['id']]. "/". $list['path'];
// }
echo "</td>";

mr myer can you please explain to us how to solve this error without commenting out this code ?
what you intended to do with the page path we dont understand ?

thanks.

Last edited by zoro12; November 24th, 2011 at 01:06 PM..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cant connect to the dashboard , please help! zoro12 BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 1 November 22nd, 2011 02:18 AM
Login/Admin/ Dashboard roadie BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 0 March 10th, 2010 01:01 PM
Dashboard Example with different users mruschetti BOOK: Expert Access 2007 Programming ISBN 978-0-470-17402-9 7 February 9th, 2008 05:18 PM
Dashboard example mruschetti BOOK: Expert Access 2007 Programming ISBN 978-0-470-17402-9 1 January 5th, 2008 02:41 PM
Dashboard reporting tool luxx Excel VBA 0 January 2nd, 2004 12:26 PM



All times are GMT -4. The time now is 11:19 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.