this my controller file MyController.php

class MyController extends CController
     * Index action is the default action in a controller.
    public function actionIndex()
    public function print(){
        echo "print";
    public function abc(){
        echo "abc";

    public function abc1(){
        echo "abc1";


when i run this file domain.com/mypage/index.php call this controller.

but i want to run the domain.com/mypage/index.php/abc it’s return 404.

i want to run controller function with url.

when i run domain.com/mypage/index.php/mycontroller/functionname

that run my specific function using url.

how to write rules into main.php using urlManager?

this is my config/main.php

                'abc' => 'MyController/abc',