[lkc] Knop Library Loader/Unloader

View: New views
1 Messages — Rating Filter:   Alert me  

[lkc] Knop Library Loader/Unloader

by Steve Piercy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

[this time to the proper list]

For those who install Knop via the Libraries, here is a quickie form to unload and load whenever there is a change.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Knop Loader/Unloader</title>
</head>
<body>

<form action="[response_filepath]" method="post">
<input name="knoplib" type="hidden" value="load" />
<input name="submit" type="submit" value="Load Knop" />
</form>

<form action="[response_filepath]" method="post">
<input name="knoplib" type="hidden" value="unload" />
<input name="submit" type="submit" value="Unload Knop" />
</form>

[
if(action_param('knoplib') == 'load');
    namespace_load('knop_');
    'Knop loaded';
else(action_param('knoplib') == 'unload');
    namespace_unload('knop_');
    'Knop unloaded';
/if;
]
</body>
</html>


--steve

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy               Web Site Builder               Soquel, CA
<web@...>                  <http://www.StevePiercy.com/>

-------------------------------------------------------------------------------------

This message is sent to you because you are subscribed to
the mailing list <LKC@...>.
To unsubscribe, E-mail to: <LKC-off@...>
To switch to the DIGEST mode, E-mail to <LKC-digest@...>
To switch to the INDEX mode, E-mail to <LKC-index@...>
Send administrative queries to  <LKC-request@...>

--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <knop@...>.
To unsubscribe, E-mail to: <knop-off@...>
Send administrative queries to  <knop-request@...>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/