T
T
The Dragger2015-05-07 09:07:46
Yii
The Dragger, 2015-05-07 09:07:46

Why isn't SiteController::index() being called like this?

Where to include such piece that it would be possible to cause an action thus SiteController::index() ?
yii1

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Kirill Arutyunov, 2015-05-07
@IPD2

SiteController is a class. In order for a class to call a method via :: (ClassFoo::bar()), the bar method must be static (public static bar() {}).
Read more about this in the documentation.

M
mitaichik, 2015-05-07
@mitaichik

If you want to do this, most likely you have blurred business logic and controller logic. In general, I don’t know if this will help you, but there is a forward method: www.yiiframework.com/doc/api/1.1/CController#forwa...

E
Evgenii Kaidashov, 2015-05-09
@Evgenii-Kaidashov

Use www.yiiframework.com/doc/api/1.1/CWebApplication#r...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question