0

I'm trying to use the EDatatables extension for Yii and specifically am wondering where the ajaxUrl should point to, and in general how I would actually go about handling the ajaxRequests?

The Datatable displays right now, but will not perform ajax based updates such as when trying to sort by a column or searching.

According to the basic installation page the default url is:

'ajaxUrl'       => Yii::app()->getBaseUrl().'/products/index',

I'm assuming this url is merely a placeholder and I'm meant to change it, but since I'm new to Datatables and Yii I have no idea how I should go about using Ajax. Could anyone help with this or point me in the correct direction?

1 Answer 1

1

just use:

Yii::app()->createUrl('controller/action',array('param'=>paramValue))

or

Yii::app()->createUrl('module/controller/action',array('param'=>paramValue))

hope it helps

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.