|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
rezarex Smarty n00b
Joined: 21 Sep 2012 Posts: 2
|
Posted: Thu Oct 11, 2012 8:59 am Post subject: ERRNO: 8 TEXT: Undefined property: |
|
|
Hi everyone? I am noobie tryin to learn php using the Beginning PHP and MySQL eCommerce 2nd Edition 2008.pdf, and now I am getting this error
ERRNO: 8
TEXT: Undefined property: ProductsList::$mProductListPages
LOCATION: C:\tshirtshop\presentation\templates_c\%%10^108^1083067C%%products_list.tpl.php, line 9, at October 11, 2012, 11:00 am
Showing backtrace:
include("C:\tshirtshop\presentation\templates_c\%%10^108^1083067C%%produc...") # line 1869, file: C:\tshirtshop\libs\smarty\Smarty.class.php
Smarty._smarty_include(Array[2]) # line 12, file: C:\tshirtshop\presentation\templates_c\%%CC^CCA^CCA018F7%%first_page_contents.tpl.php
include("C:\tshirtshop\presentation\templates_c\%%CC^CCA^CCA018F7%%first_...") # line 1869, file: C:\tshirtshop\libs\smarty\Smarty.class.php
Smarty._smarty_include(Array[2]) # line 33, file: C:\tshirtshop\presentation\templates_c\%%41^412^412F4E3D%%store_front.tpl.php
include("C:\tshirtshop\presentation\templates_c\%%41^412^412F4E3D%%store_...") # line 1256, file: C:\tshirtshop\libs\smarty\Smarty.class.php
Smarty.fetch("store_front.tpl", null, null, true) # line 1106, file: C:\tshirtshop\libs\smarty\Smarty.class.php
Smarty.display("store_front.tpl") # line 30, file: C:\tshirtshop\index.php
Somehow, the page numbers are working in other pages but not the home page, it throws this exception... I dont know how I can bypass this, is there any way I can get it to work? |
|
Back to top |
|
rezarex Smarty n00b
Joined: 21 Sep 2012 Posts: 2
|
Posted: Thu Oct 18, 2012 12:55 pm Post subject: |
|
|
Hey, found the isue, I had forgoten to declare the variable "public $mProductListPages;" in the prodctlist class, thanks anyway |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|