router::get PHP Method

get() public method

public get ( $url, $callback )
    function get($url, $callback)
    {
        self::set(array('GET'), $url, $callback);
    }

Usage Example

Example #1
0
 function path()
 {
     $sep = ' <span>&rarr;</span> ';
     $first = params::get('first');
     $last = params::get('last');
     $i = 0;
     foreach (web::$pages as $v) {
         if ($first == 'no' && $v['page_folder'] == '/') {
             continue;
         }
         if ($last == 'no' && $v['page_id'] == PAGE_ID) {
             continue;
         }
         if ($v['page_folder'] == '/users/[dynamic]/') {
             $v['page_folder'] = '/users/' . router::get(1) . '/';
             $v['page_title'] = router::get(1);
         }
         if ($v['page_id'] == PAGE_ID) {
             $path_item = web::get('page_title');
         } else {
             $path_item = '<a href="' . $v['page_folder'] . '">' . $v['page_title'] . '</a>';
         }
         s::roll('page_path', array('path_item' => $path_item));
         if ($v['page_id'] != PAGE_ID) {
             s::roll('page_path', array('path_item' => $sep));
         }
     }
 }
All Usage Examples Of router::get