Yii Framework Forum: error Generate Model dg GII pada DB Oracle - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

error Generate Model dg GII pada DB Oracle Rate Topic: -----

#1 User is offline   el_kurnia 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 20-March 11

Posted 20 March 2011 - 04:50 AM

dear all,

mo nanya nih, saya coba menggenerate model dengan menggunakan GII pada database Oracle.
ketika saya klik preview muncul error :

PHP Error
Description

Undefined index: SCHEMA_NAME
Source File

D:\htdocs\crm\framework\db\schema\oci\COciSchema.php(273)

00261: EOD;
00262: $command=$this->getDbConnection()->createCommand($sql);
00263: $command->bindParam(':schema',$schema);
00264: }
00265:
00266: $rows=$command->queryAll();
00267: $names=array();
00268: foreach($rows as $row)
00269: {
00270: if($schema===$this->getDefaultSchema())
00271: $names[]=$row['TABLE_NAME'];
00272: else
00273: $names[]=$row['SCHEMA_NAME'].'.'.$row['TABLE_NAME'];
00274: }
00275: return $names;
00276: }
00277: }

padahal koneksinya udah benar, saya coba buat halaman untuk view isi database jalan.
mohon pencerahan teman.
makasih
0

#2 User is offline   el_kurnia 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 20-March 11

Posted 31 March 2011 - 03:00 AM

solve
0

#3 User is offline   junxiong 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 540
  • Joined: 21-June 10

Posted 01 April 2011 - 10:09 PM

View Postel_kurnia, on 31 March 2011 - 03:00 AM, said:

solve


Dijelasin gimana solve-nya donk~ :)
Mungkin saja nanti ada teman-teman lain yang ketemu masalah ini.
Soalnya dari yang saya lihat biasanya di sub-forum Indonesia,
agak jarang yang mengerti permasalahan db Oracle di Yii, makanya jarang direspon...
Jadi ada baiknya kalau agan dah solve dijelasin caranya~
“The most likely way for the world to be destroyed, most experts argue, is by accident. That’s where we come in; we’re computer professionals. We cause accidents.” - Nathaniel Borenstein

Yii Playground : Collaborative demo apps. You can join to improve it too!
My Team's Blog: In Indonesian.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users