aboutsummaryrefslogtreecommitdiff
path: root/lib/Minz/Request.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Minz/Request.php')
-rw-r--r--lib/Minz/Request.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php
index 912c354ac..01feece52 100644
--- a/lib/Minz/Request.php
+++ b/lib/Minz/Request.php
@@ -98,6 +98,13 @@ class Minz_Request {
self::initJSON();
}
+ public static function is($controller_name, $action_name) {
+ return (
+ self::$controller_name === $controller_name &&
+ self::$action_name === $action_name
+ );
+ }
+
/**
* Return true if the request is over HTTPS, false otherwise (HTTP)
*/