Welcome Guest, Not a member yet? Register   Sign In
PHP Error = Undefined property: User::$view_data
#3

[eluser]MikeL85[/eluser]
Thanks. That solution partly works. If I leave in the __construct function (or the User() function for that matter) I get a blank page on loading. If I leave those functions out I still get the second error;

A PHP Error was encountered
Severity: Notice
Message: Undefined variable: base_url
Filename: views/view_register.php
Line Number: 10

But declaring $view_data as an array got rid of one error so well done there...


Messages In This Thread
PHP Error = Undefined property: User::$view_data - by El Forum - 06-07-2012, 08:07 AM
PHP Error = Undefined property: User::$view_data - by El Forum - 06-07-2012, 08:12 AM
PHP Error = Undefined property: User::$view_data - by El Forum - 06-07-2012, 10:39 AM
PHP Error = Undefined property: User::$view_data - by El Forum - 06-07-2012, 10:54 AM
PHP Error = Undefined property: User::$view_data - by El Forum - 06-07-2012, 10:55 AM
PHP Error = Undefined property: User::$view_data - by El Forum - 06-07-2012, 10:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB