Yii Framework Forum: >> controller message helloWorld - No files created - Yii Framework Forum

Jump to content

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

>> controller message helloWorld - No files created Basic Yii fails Rate Topic: -----

#1 User is offline   zamzmith 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 22-December 10

Posted 22 December 2010 - 02:38 PM

OS X 10.6.x running MAMP

This worked:
YiiRoot/framework/yiic webapp yii1

# Virtual host via MAMP "yii1"
# http://yii1/ works find even lets me login at http://yii1/index.php?r=site/login

AND this said it worked but didn't:
>> controller message helloWorld

but http://yii1/index.php?r=message 404
and http://yii1/index.ph...sage/helloWorld 404

xam$ find . -iname siteController.php
./protected/controllers/SiteController.php
xam$ find . -iname MessageController.php
xam$

xam$ cd protected/views/message
-bash: cd: protected/views/message: No such file or directory


No error messages from yiic shell.

Thanks for any help.
0

#2 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,710
  • Joined: 10-October 10
  • Location:Denmark

Posted 22 December 2010 - 02:41 PM

Do read the guide:
quickstart.first-app#implementing-crud-operations

Make use of Gii first.
Then, ask your questions.
"Less noise - more signal"
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