Velosurf Very Simple Example
Velosurf Very Simple Example
My Strings
#set ($success = true)
#if ($query.action == "insert")
#set( $success = $db.my_strings.insert($query) )
#elseif ($query.action == "delete")
#set( $test = $db.my_strings.fetch($query.id) )
#set( $success = $test.delete() )
#end
#if( !$success ) Error : $db.error #end
Table my_strings contains :
#foreach ($row in $db.my_strings)
#end
Messages by users
#foreach ($user in $db.user)
Messages for user $user.name :
#foreach ($message in $user.messages)
- $message.subject
#end
#end