Changeset 1154 for branches/1.0.x/testapp

Show
Ignore:
Timestamp:
11/08/08 11:39:28 (2 months ago)
Author:
laurentj
Message:

ticket #725: cannot execute a command line action, a fatal error always appeared.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0.x/testapp/modules/testapp/controllers/default.cmdline.php

    r780 r1154  
    1414 
    1515    protected $allowed_parameters = array( 
    16             'index' => array()); 
     16            'index' => array(), 
     17            'other'=>array('aaa'=>true,'bbb'=>false) 
     18            ); 
     19 
     20 
     21    public $help = array('index'=>'', 
     22                         'other'=>'Just display a message, it accepts a first parameter and an optional second one'); 
     23 
    1724 
    1825    /** 
     
    2431        return $rep; 
    2532    } 
     33 
     34    /** 
     35    * 
     36    */ 
     37    function other() { 
     38        $rep = $this->getResponse(); 
     39        $rep->content = "given parameters:\naaa=".$this->param('aaa')."\nbbb=".$this->param('bbb')."\n"; 
     40        return $rep; 
     41    } 
    2642} 
    27 ?> 
Download in other formats: Unified Diff Zip Archive