hi, how do you code something that detects which page you are on like the is_page() on Wordpress?.. appreciates any reply thanks
hi, how do you code something that detects which page you are on like the is_page() on Wordpress?.. appreciates any reply thanks
No, Yii doesn’t support this kind of function.
But you can easy implement it(for example in components/Controller.php so you can use it in all your controllers), for example to to check controllorID/actionID, or page title(you must make $title public variable of all controllers for example).