Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 23rd, 2011, 05:09 PM
Registered User
 
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..
 
Old November 23rd, 2011, 05:26 PM
Registered User
 
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 !
 
Old November 24th, 2011, 01:03 PM
Registered User
 
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..





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





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