[please help] generated CRUD not working with my theme

I have a theme and have added my own index.php file under themes/theme name/views/site

Everything looks fantastic and I have the gallerymanger set up and working fine. Now I want to use the generated CRUD files with my theme and they do not.

I can see them if I link directly to the folder EG: http://localhost/site name/user/ will display my user admin but in the web-app you use http://localhost/site name/index.php?r=user

I am a newb so can somebody please set me right or suggest what additional info is needed to solve ?

Thanks.

have you declared your theme in the configuration file (usually config/main.php)

more info: http://www.yiiframework.com/doc/guide/1.1/en/topics.theming

Of course - the theme works fine - but it shows only the index.php when I want it to show the generated CRUD pages