indrajith
(Indrajithiv87)
August 24, 2011, 2:26pm
1
I am just starting out on using yii. All the tutorials I found use Databases for creating models and controllers.
How do I create them without using DB? Suppose I wanted to use a text file that retrieves data(for ex: currently logged in users) using JSON
tri
(tri - Tommy Riboe)
August 24, 2011, 2:31pm
2
indrajith:
I am just starting out on using yii. All the tutorials I found use Databases for creating models and controllers.
How do I create them without using DB? Suppose I wanted to use a text file that retrieves data(for ex: currently logged in users) using JSON
First thing to do: read more about CFormModel.
Also see the API reference here.
Controllers aren’t db dependent.
/Tommy
indrajith
(Indrajithiv87)
August 24, 2011, 3:33pm
3
tri:
First thing to do: read more about CFormModel.
Also see the API reference here.
Controllers aren’t db dependent.
/Tommy
Thanks tommy…so should I manually create the controller file and then code it from scratch because I’m not able to create them from localhost/testdrive/index.php?r=gii? Its giving cannot link to database.