Best practices for implementing KendoUI PHP wrappers with Zend Framework / a framework

5 posts, 1 answers
  1. Alex
    Alex avatar
    25 posts
    Member since:
    Dec 2012

    Posted 26 Apr 2013 Link to this post

    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. 


  2. Bernard
    Bernard avatar
    6 posts
    Member since:
    Dec 2014

    Posted 06 Jan 2015 in reply to Alex Link to this post

    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
  3. UI for ASP.NET AJAX banner
  4. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 08 Jan 2015 Link to this post

    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!
     
  5. Answer
    Brendan
    Brendan avatar
    1 posts
    Member since:
    Mar 2015

    Posted 17 Mar 2015 Link to this post

    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');

  6. Logoscorp
    Logoscorp avatar
    1 posts
    Member since:
    Jul 2016

    Posted 21 Jul in reply to Brendan Link to this post

    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.
Back to Top
UI for ASP.NET AJAX banner