mail Re: cannot utilize methods from knop_user - IGNORE, Problem solved
Feb 26, 2011; 01:44
mail
Re: cannot utilize methods from knop_user - IGNORE, Problem solved
<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div>PLEASE IGNORE MY PREVIOUS POST... PROBLEM SOLVED </div><div><br></div><div>;-)</div><div><br></div><div>All of a sudden it started to work. I am not sure why. BUT, perhaps it had to do with the caching of the <a href="http://knop.lasso">knop.lasso</a> file.</div><div><br></div><div>Michael<br></div> <blockquote id="replyBlockquote" webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px; font-size: 10pt; color: black; font-family: verdana;"> <div id="wmQuoteWrapper"> -------- Original Message --------<br> Subject: cannot utilize methods from knop_user<br> From: <<a href="mailto:mail@michaelcollins.net">mail@michaelcollins.net</a>><br> Date: Sat, February 26, 2011 1:15 am<br> To: <a href="mailto:knop@lists.montania.se">knop@lists.montania.se</a><br> <br> <span style="font-family: Verdana; color: rgb(0, 0, 0); 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 target="_blank" 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 target="_blank" href="http://cfg__global.inc">cfg__global.inc</a> is included on <a target="_blank" 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 target="_blank" href="http://index.lasso">index.lasso</a> on line: 72 at position: 17<br>at: include with params: '/<a target="_blank" href="http://index.lasso">index.lasso</a>'<br>at: /<a target="_blank" href="http://urlhandler.inc">urlhandler.inc</a> on line: 13 at position: 20<br>at: include with params: '/<a target="_blank" 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 target="_blank" 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> </div> </blockquote></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!