0

Am trying to generate models from database views with the sole purpose of viewing and searching complex records from various tables.

However I get "Table 'XXX' does not exist".Logically views are like tables.

Any creative workarounds?

2
  • As far as i know, database views are not supported in yii. Is'n it anymore? ...but maybe this changed at an new yii version!? Commented May 10, 2011 at 16:40
  • 1
    @ the bndr: I'm looking at an AR class generated by gii off a database view. They are just treated like tables that you can only select. Commented May 10, 2011 at 18:12

2 Answers 2

3

I created a AR model of a view using gii a few days ago. I just had to put in the view name and it worked. You must be typing the view name wrong.

Here is the SO question I asked about it a while ago.

Sign up to request clarification or add additional context in comments.

Comments

0

That is a system-specific database access violation, and does not relate to the Yii code at least, have your webhost equip your MySQL username with SHOW VIEW privileges for the database.

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.