I've been having issues with link-rot in forms and other address sensitive functions. I know that standard php has some functions for this. Like:

   *action="<?php echo $_SERVER['PHP_SELF']; ?>"

   *

Is there anything similar in Zend Framework? Maybe a global variable or function the returns the module name, controller name, action name to a regular, non-zendframework function?


like this:

   *function get_menu_items($mod) {  // module name is passed in as
   parameter
       $dir = "/" . $mod;
       $items = array(
           'Page Factory     => "$dir/page",
           'Make All'          => "$dir/page/make-all",
           'Make Some'     => "$dir/page/make-filtered",
           'List Pages'        => "$dir/page/list-pages/");
       return $items;
   }
   *


   *function get_menu_items() {
       $dir = "/" . get_module_name();  // module name from function
       $items = array(
           'Page Factory'    => "$dir/page",
           'Make All'          => "$dir/page/make-all",
           'Make Some'     => "$dir/page/make-filtered",
           'List Pages'        => "$dir/page/list-pages/");
       return $items;
   }*


   *
   *

Reply via email to