ValidateAction.php 279 Bytes
Newer Older
Raph El's avatar
Raph El committed
1 2 3
 <?php
class ValidateAction extends CAction
{
Raph El's avatar
Raph El committed
4
    public function run()
Raph El's avatar
Raph El committed
5
    {
Raph El's avatar
Raph El committed
6 7 8 9 10
        //$controller = $this->getController();
    	$params = $_POST;
    	$params["controller"] = $this->getController();
        $res = Answer::validate($params);
        Rest::json($res);
Raph El's avatar
Raph El committed
11
    }
12
 }