Re: cannot utilize methods from knop_user - IGNORE, Problem solved

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: cannot utilize methods from knop_user - IGNORE, Problem solved

mail
PLEASE IGNORE MY PREVIOUS POST... PROBLEM SOLVED

;-)

All of a sudden it started to work. I am not sure why. BUT, perhaps it had to do with the caching of the knop.lasso file.

Michael
-------- Original Message --------
Subject: cannot utilize methods from knop_user
From: <[hidden email]>
Date: Sat, February 26, 2011 1:15 am
To: [hidden email]

hello Knoppers...

For some reason, I cannot utilize the methods for the knop_user class, its very perplexing. In the file cfg__global.inc the user object is instantiated:

// Configure user
var:'s_user'=(knop_user: -userdb=$visitorDBObj, -userfield='email', -passwordfield='password');

cfg__global.inc is included on index.lasso, and below that what I want to do then is to check if the user is authenticated, and if so show something:

[if: $s_user -> auth]

 ... display a nav header for the authenticated user
 
[/if]

However, when i do this I get error:

Error Message:      No tag, type or constant was defined under the name user->auth.
at: /index.lasso on line: 72 at position: 17
at: include with params: '/index.lasso'
at: /urlhandler.inc on line: 13 at position: 20
at: include with params: '/urlhandler.inc'
at: _at_begin
Error Code:      -9948

(I put Lasso_ErrorReporting: 'full' at top of the index.lasso file)

([if: $s_user -> auth] is on line 72)

However, if place before that:

log_critical:'*********user created='$s_user -> 'userfield'

The terminal displays that instance variable value:

[02/26/11 16:09:31][10] *********user created=email

[log_critical:'*********user type='$s_user ->type]

The terminal displays the object type:

[02/26/11 16:12:16][10] *********user type=user

Thus, it appears the object is instantiated, however, it does not allow use of the other member tags.

Any ideas?

Michael





-- 

#############################################################

This message is sent to you because you are subscribed to

the mailing list <[hidden email]>.

To unsubscribe, E-mail to: <[hidden email]>

Send administrative queries to  <[hidden email]>

List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html

Project homepage http://montania.se/projects/knop/

Google Code has the latest downloads at http://code.google.com/p/knop/