Anyone have a simple idea to implement cascading view search? By other words, I have the following themes with views:
Theme A (level 1)
Theme B (level 2)
I need to call view index.php:
The application looks for the view index in the theme level 1. Yes, exist, render this view of theme level 1.
Now I need to call the view login.php:
The application looks for the view login in the theme level 2. No, it isn’t exist, so it looks for the login view in the next theme level, level 2. Yes, exist, render this view of theme level 2.
This is very similiar to the default application behavior, that looks for a view in the theme directory and if this not exist, looks for it in the protected/views directory. The difference is that I need to specify 2 themes to look for.