Created
June 25, 2013 16:40
-
-
Save jbroadway/5860050 to your computer and use it in GitHub Desktop.
An example of a simple handler that's listed in Elefant's Dynamic Objects menu.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; <?php /* apps/myapp/conf/embed.php | |
[myapp/myhandler] | |
label = "MyApp: My Handler" | |
; */ ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- apps/myapp/views/myhandler.html --> | |
{% if User::is_valid () %} | |
Hello {{user.name}}! | |
{% else %} | |
Not logged in. | |
{% end %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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