Skip to content

Instantly share code, notes, and snippets.

@jbroadway jbroadway/embed.php
Created Jun 25, 2013

What would you like to do?
An example of a simple handler that's listed in Elefant's Dynamic Objects menu.
; <?php /* apps/myapp/conf/embed.php
label = "MyApp: My Handler"
; */ ?>
<!-- apps/myapp/views/myhandler.html -->
{% if User::is_valid () %}
Hello {{}}!
{% else %}
Not logged in.
{% end %}
<?php // apps/myapp/handlers/myhandler.php
echo $tpl->render ('myapp/myhandler');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.