Location: PHPKode > projects > CenterFlow > app/controllers/test_plans_controller.php
<?

class TestPlansController extends AppController
{
	//var $name = 'TestPlans';
	var $scaffold;
	var $helpers = array('Html','Text','Javascript');

	function index()
	{
		$data = $this->TestPlan->getAll();
		$this->set('data',$data);
	}

	function add()
	{
		//Just Render It
	}

	function beforeFilter()
	{
		$this->checkSession();
	}

	function view($id)
	{
		$data= $this->TestPlan->fetchTestPlan($id);
		$this->pageTitle = 'View TestPlan -'.$data['TestPlan']['name'];
		$this->set('data',$data);
		$test_items = $this->requestAction("/test_items/listing/$id",array('return'));
		$this->set('test_items',$test_items);
	}

	function test($id)
	{
		pr($this->params);
		$data = $this->TestPlan->findById($id);
		$this->set('userlist',$this->requestAction("/people/userlist/0",array('return')));
		$this->set('data',$data);
	}
}
?>
Return current item: CenterFlow