Show
Ignore:
Timestamp:
01/18/06 19:25:27 (6 years ago)
Author:
john
Message:

fixed url_for()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/trax/vendor/trax/action_view/helpers.php

    r117 r119  
    8282                } 
    8383            } else { 
    84                 $url[] = $this->controller_path; 
     84                $controller = $this->controller_path; 
     85                if(substr($controller, 0, 1) == "/") { 
     86                    # remove the beginning slash 
     87                    $controller = substr($controller, 1);         
     88                } 
     89                $url[] = $controller; 
    8590            } 
    8691