1

I am trying to perform different actions stored in the same controller using yii.

I have an action called "test" and I can access it by typing the url "localhost/blah/test", this url calls the method "actiontest()" in my controller, now what I want is by typing "localhost/blah/test/create" access the method "actioncreate()" which is in the same controller.

Is there any way to achieve that?

1 Answer 1

1

define in routes this rule in config:

'rules' => array(
    'localhost/blah/test/create' => 'localhost/blah/create',
    ....
),
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.