<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div>hello Knoppers...<br><br>For some reason, I cannot utilize the methods for the knop_user class, its very perplexing. In the file <a href="http://cfg__global.inc">cfg__global.inc</a> the user object is instantiated:<br><br>// Configure user<br>var:'s_user'=(knop_user: -userdb=$visitorDBObj, -userfield='email', -passwordfield='password');<br><br><a href="http://cfg__global.inc">cfg__global.inc</a> is included on <a href="http://index.lasso">index.lasso</a>, and below that what I want to do then is to check if the user is authenticated, and if so show something:<br><br>[if: $s_user -> auth]<br><br> ... display a nav header for the authenticated user<br> <br>[/if]<br><br>However, when i do this I get error:<br><br>Error Message: No tag, type or constant was defined under the name user->auth.<br>at: /<a href="http://index.lasso">index.lasso</a> on line: 72 at position: 17<br>at: include with params: '/<a href="http://index.lasso">index.lasso</a>'<br>at: /<a href="http://urlhandler.inc">urlhandler.inc</a> on line: 13 at position: 20<br>at: include with params: '/<a href="http://urlhandler.inc">urlhandler.inc</a>'<br>at: _at_begin<br>Error Code: -9948<br><br>(I put Lasso_ErrorReporting: 'full' at top of the <a href="http://index.lasso">index.lasso</a> file)<br><br>([if: $s_user -> auth] is on line 72)<br><br>However, if place before that:<br><br>log_critical:'*********user created='$s_user -> 'userfield'<br><br>The terminal displays that instance variable value:<br><br>[02/26/11 16:09:31][10] *********user created=email<br><br>[log_critical:'*********user type='$s_user ->type]<br><br>The terminal displays the object type:<br><br>[02/26/11 16:12:16][10] *********user type=user<br><br>Thus, it appears the object is instantiated, however, it does not allow use of the other member tags.<br><br>Any ideas?<br><br>Michael<br><br><br><br><br><br mce_bogus="1"></div></span></body></html> <P><PRE>-- =0D #############################################################=0D This message is sent to you because you are subscribed to=0D the mailing list <knop@lists.montania.se>.=0D To unsubscribe, E-mail to: <knop-off@lists.montania.se>=0D Send administrative queries to <knop-request@lists.montania.se>=0D List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html=0D Project homepage http://montania.se/projects/knop/=0D Google Code has the latest downloads at http://code.google.com/p/knop/
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!