Yii Framework Forum: Http Request Sent - Yii Framework Forum

Jump to content

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

Http Request Sent Rate Topic: -----

#1 User is offline   Sler 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 97
  • Joined: 17-July 12

Posted 22 July 2012 - 02:15 AM

Hello,

I'm a new user of YII. I was wondering, I have an http request of
localhost/test/${keyword}
${Keyword} here is a variable equated to 'PRICE'.
So, my question is, what file am I going to create to accept this http request and any sample code. I really need help.

Chabx
0

#2 User is offline   kiran sharma 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 492
  • Joined: 21-May 11
  • Location:India

Posted 22 July 2012 - 03:03 AM

you can create user define file and related controller (i assume you know yii basics), now what you have to do is pass keyword or price as parameter and you can use in related controller method.
Thanks,
Kiran Sharma.
0

#3 User is offline   Sler 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 97
  • Joined: 17-July 12

Posted 22 July 2012 - 10:53 AM

View Postkiran sharma, on 22 July 2012 - 03:03 AM, said:

you can create user define file and related controller (i assume you know yii basics), now what you have to do is pass keyword or price as parameter and you can use in related controller method.


Hey Shiran,

Actually I've still started exploring on yii, But I got the gist on your reply. I know the controllers on Yii, but could you recommend a controller for me to use and why? Thanks. :)

Chabx
0

#4 User is offline   kiran sharma 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 492
  • Joined: 21-May 11
  • Location:India

Posted 22 July 2012 - 11:53 AM

as I say it will be user define, I give you example and you can justify your required controller and menthod name.

find controller/method pair below,

Like for banner management you can use banner/add, banner/update, ....
for Invoice you can use invoice/client, invoice/phographer, invoice/driver ....

Its good practice to use meaningful controller/method name.

and its better to refer Yii guide,wiki and forum posts for referrel.

View PostSler, on 22 July 2012 - 10:53 AM, said:

Hey Shiran,

Actually I've still started exploring on yii, But I got the gist on your reply. I know the controllers on Yii, but could you recommend a controller for me to use and why? Thanks. :)

Chabx

Thanks,
Kiran Sharma.
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