Yii Framework Forum: Error 400 Your request is invalid. - Yii Framework Forum

Jump to content

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

Error 400 Your request is invalid. Rate Topic: -----

#1 User is offline   michele 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 221
  • Joined: 02-August 12

Posted 27 August 2012 - 06:34 AM

Salve ragazzi non riesco a capire perchè mi da questo errore ovvero:

Cerco di richiamare il metodo actionView di un Controller il metodo è questo:

public function actionView($id)
	{
           var_dump($id);
		$this->render('view',array(
			'model'=>$this->loadModel($id),
		));
	}


ed io lo richiamo in questa maniera:
http://localhost/nom...p/entita/view/2

ma mi da come errore Error 400 Your request is invalid.

forse nn ho compreso bene la guida.
0

#2 User is offline   emafer 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 182
  • Joined: 23-February 12
  • Location:Amandola

Posted 27 August 2012 - 06:47 AM

se come indirizzo usi questo funziona?
http://localhost/nom...ntita/view&id=2
0

#3 User is offline   michele 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 221
  • Joined: 02-August 12

Posted 27 August 2012 - 07:42 AM

no no:


Error 404
The system is unable to find the requested action "view&id=2".
0

#4 User is offline   michele 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 221
  • Joined: 02-August 12

Posted 27 August 2012 - 07:53 AM

ok risolto in questa maniera:

localhost/...../View?id=2

0

#5 User is offline   Joemaxwell 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 25
  • Joined: 13-February 13
  • Location:Fiji Via Melbourne

Posted 04 April 2013 - 06:55 PM

Having the same Issue Can someone give me a hand on this.

http://localhost:888...ssue/view&pid=1

Result: Error 400 Your request is invalid.
0

#6 User is offline   sensorario 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,986
  • Joined: 07-September 10
  • Location:Cesena (Italy)

Posted 05 April 2013 - 02:06 AM

View Postmichele, on 27 August 2012 - 07:53 AM, said:

ok risolto in questa maniera:

localhost/...../View?id=2




Curiosità mia: potresti mostrare l'url completo? Non ho capito bene quale fosse il problema.
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