I have been trying to get JQuery Sortable working on my Zend Framework application but only with limited succes. I have been using the ZendX library for most of the Jquery functionality that i need such as the datepicker and those work perfectly fine. I just can't seem to be able to get sortable to wich is not supported in the ZendX library.
As for the code. In my bootstrap i have defined the helper path for Jquery etc. as per useual:
protected function _initViewHelpers()
$view = new Zend_View();
$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
I then activate JQuery in the layout using `echo $this->jQuery()->enable();`
Now this works all fine, the datepicker works and it shows the Smoothness design as intended etc.
Now i implement a small list with a the simple sortable script as follows in my index.phtml:
The only way i can get this to work is to add the line
to the index.phtml. This to me looks just about as ridiculous as it gets. in the bootstrap i already add this script so why should i have to do this again just to get sortable to work?
Anyone happen to have a solution to my problem?
Any advice will be appreciated :) Could you please vote to my answer as this is perfectly satisfied your requirments