Yii Framework Forum: Yii Ajax Link Url Behaviour - Yii Framework Forum

Jump to content

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

Yii Ajax Link Url Behaviour Rate Topic: -----

#1 User is offline   kamaljit 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 06-June 14

Posted 12 June 2014 - 01:50 AM

Below is the code which i used for ajax request

echo CHtml::ajaxLink(CHtml::image(Yii::app()->baseUrl.'/images/document.png'), Yii::app()->createUrl( 'user/region' ),
array( // ajaxOptions
'type' => 'POST',
'data' => array('blogs_id'=>$model->id),
'url'=>Yii::app()->createAbsoluteUrl('companies/blog'),
'update'=>'#city_name',

),array('title'=>'Discussion')
);

But when i click on it, it calls another url like users/region instead of companies/blog.

please help me.
0

#2 User is offline   kamaljit 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 06-June 14

Posted 12 June 2014 - 01:52 AM

View Postkamaljit, on 12 June 2014 - 01:50 AM, said:

Below is the code which i used for ajax request

echo CHtml::ajaxLink(CHtml::image(Yii::app()->baseUrl.'/images/document.png'), Yii::app()->createUrl( 'user/region' ),
array( // ajaxOptions
'type' => 'POST',
'data' => array('blogs_id'=>$model->id),
'url'=>Yii::app()->createAbsoluteUrl('companies/blog'),
'update'=>'#city_name',

),array('title'=>'Discussion')
);

But when i click on it, it calls another url like users/region instead of companies/blog.

please help me.

0

#3 User is offline   kamaljit 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 06-June 14

Posted 12 June 2014 - 01:53 AM

Sorry i solved it
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