Things I want to do in AIKI:
select query:
SELECT * from aiki_users ORDER BY first_login DESC LIMIT 10
widget:
<p>Files for user ((username))</p>
<ul>
(for( $i in (sql( SELECT filename, link, hidden FROM ocal_files)) )
(if( $i['hidden'] )
<li>$i[0]</li>
(else)
<li><a href="$i[1]">$i[0]</a><li>
)
)
</ul>
other widget
<table>
<tr>
<td>Id</td>
<td>Name</td>
</tr>
(* this is comment *)
(for( $widget in (json_decode( (url("[root]/json?widget=admin_panel;")) )) )
<tr>
<td>$widget['id']</td>
<td>$widget['name']</td>
</tr>)
</table>
lots of parentheses in line where 'for' is
in another widget I want to do things like this:
(if( $aiki->membership->permissions == 'SystemGOD' )
(sql( INSERT INTO sometable (name, num) VALUES ('GET[name]', 'GET[num]') ))
(else)
<p class="error">You don't have permissions</p>
)
inline sql should allow to run any Query.
--
Jakub Jankiewicz
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help : https://help.launchpad.net/ListHelp