<?php
/**
* Sample custom action for Yii 1.x
*
* Usage:
* – Create file: protected/controllers/actions/Orders/TestAction.php
* – Access via URL: index.php?r=orders/test
*/
class TestAction extends CAction
{
/**
* This method is executed when the action is called.
*/
public function run()
{
echo “This is a test action running from ” . get_class($this->controller);
}
}

 

Leave a Reply

Your email address will not be published. Required fields are marked *