Use KendoUI PHP Wrapper in Codeigniter

2 posts, 0 answers
  1. Cheng-how
    Cheng-how avatar
    26 posts
    Member since:
    Jun 2013

    Posted 12 Jul 2013 Link to this post

    Hi, i'm using ExpressionEngine which based on Codeigniter, 
    I created a plug-in in ExpressionEngine and try to use KendoUI PHP Wrapper in the plug-in.

    I have include autoload.php:

    require_once PATH_THIRD.'kendoui/lib/Kendo/Autoload.php';

    and I try to use Menu.php:

    function kendoui_index(){

    // Create a new instance of Menu and specify its id
        $menu = new lib\Kendo\UI\Menu('Menu');
    // Configure it

    // Output it
        return $menu->render();

    it shows nothing in output, the relative class path of Menu need to be change if the lib folder is not at the root directory?
    or if it is not use in the root directory, how should it change?


  2. Alex Gyoshev
    Alex Gyoshev avatar
    2497 posts

    Posted 16 Jul 2013 Link to this post

    Hello Cheng-how,

    As you can see in the auto-loader source, it looks for classes whose name starts with Kendo\ and loads them from the directory of the Autoload.php file. Therefore, the expression new Kendo\UI\Menu() should work in this scenario (without the lib\ prefix)

    Alex Gyoshev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET AJAX banner
Back to Top