Ignore:
Timestamp:
11/22/10 02:57:49 (14 years ago)
Author:
nanardon
Message:
  • add a way to get result automatically by all request method
  • add first page
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/trunk/web/lib/Sophie/Controller/Root.pm

    r4 r16  
    2626    my ( $self, $c ) = @_; 
    2727 
    28     if ($c->req->param('json')) { 
     28    if (($c->req->query_keywords || '') =~ /([^\w]|^)json([^\w]|$)/ || 
     29        exists($c->req->params ->{json})) { 
    2930        $c->stash->{current_view} = 'Json'; 
     31    } 
     32    if (($c->req->query_keywords || '') =~ /([^\w]|^)ajax([^\w]|$)/ || 
     33        exists($c->req->params ->{ajax})) { 
     34        $c->stash->{current_view} = 'Ajax'; 
    3035    } 
    3136 
     
    7580    } elsif (!$c->stash->{current_view}) { 
    7681    } 
     82    $c->stash->{$c->action} = $c->stash->{xmlrpc}; 
    7783    $c->model('Base')->storage->dbh->rollback; 
    7884} 
Note: See TracChangeset for help on using the changeset viewer.