Yii Framework Forum: Fresh newbie have question - Yii Framework Forum

Jump to content

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

Fresh newbie have question about database

#1 User is offline   foonmod 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 27-January 12

Posted 20 February 2012 - 10:09 AM

Hi , thank for a good book ,
I'm newbie , skip others page and go to read chapter 6 .
'getting data from a database'

I did all from 'Getting ready '

I can not go more cause by I'm so confusing. It's error and I think I might go wrong.

I did create DbController.php in protected/controllers/Dbcontroller.php

then input at url like below

localhost/myweb/index.php?r=db

it's error .

How can I go from here ..

thank in advance..

Foon
0

#2 User is offline   foonmod 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 27-January 12

Posted 20 February 2012 - 11:16 AM

I got it.

db/xxxx

thank anyway..

foon
0

#3 User is offline   foonmod 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 27-January 12

Posted 20 February 2012 - 11:22 AM

However, I have got error with db/ar like below

YiiBase::include(Film.php) [<a href='yiibase.include'>yiibase.include</a>]: failed to open stream: No such file or directory
0

#4 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,339
  • Joined: 17-January 09
  • Location:Russia

Posted 21 February 2012 - 02:51 PM

Have you generated Film model using Gii?
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
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