This is a migrated thread and some comments may be shown as answers.
Best practices for implementing KendoUI PHP wrappers with Zend Framework / a framework
4 Answers 154 Views
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 27 Apr 2013, 04:03 AM
I have setup the library for the Kendo PHP wrappers  via the classmapmap generator within a ZF2 module

My main question or perhaps request for guidance is how  are you implementing/integrating the PHP wrappers with  the MVC  side? If anyone has any thoughts or pointers how you are doing it in Zend Framework or your chosen framework  it would be much appreciated. 


4 Answers, 1 is accepted

Sort by
0
Bernard
Top achievements
Rank 1
answered on 06 Jan 2015, 12:16 PM
Seems like no one seems to be able to answer this one lol...

Although it is not that hard to integrate it into zend, just include the needed kendo scripts and call them when required...
I'm wondering what the best practice might be...

So far, for test purposes...
I didn't include it as a vendor as this map contains third party 'zend modules' and kendo is not a zend module...
It also causes issues when your vendor map is outsite the web root.

What I did was splitting the kendo js and css and put them in the respective style folders..

I do wonder if anyone share the idea the kendo calls should be happening in the zend view and not in the controller, although it kinda makes the readability of your code more difficult (especially when using the more complex kendo elements depending on multi-dimensional arrays ) to comprehend when you put in in the view
0
T. Tsonev
Telerik team
answered on 08 Jan 2015, 09:20 AM
Hello,

Thanks keeping this discussion alive, Bernard.

I'm afraid the Kendo team can't be of much help.
We don't have experience with the Zend Framework and the ClassMapAutoloader in particular.

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Accepted
Brendan
Top achievements
Rank 1
answered on 17 Mar 2015, 11:34 PM
I have Kendo UI running using Laravel 5,

The Kendo UI Scripts are Just added to my Composer.JSON (classmap)

"vendor/kendoui/lib"

And running Composer dumpautoload.  This should be the same in any framework that uses composer. just by using the namespaces (The Defacto in laravel 5)

\Kendo\UI\DropDownList('droplist');

0
Logoscorp
Top achievements
Rank 1
answered on 21 Jul 2016, 07:45 PM
Hi Brendan I have a kendo on my laravel project loaded in my composer.json file by the classmap. My issue is because the elements doesn't show in the view. But if I copy the javascript code generated and run in the console and the element is showed. I don't know what I'm doing wrong. Thanks in advance.
Asked by
Alex
Top achievements
Rank 1
Answers by
Bernard
Top achievements
Rank 1
T. Tsonev
Telerik team
Brendan
Top achievements
Rank 1
Logoscorp
Top achievements
Rank 1
Share this question
or