This is a migrated thread and some comments may be shown as answers.

Use KendoUI PHP Wrapper in Codeigniter

1 Answer 333 Views
General Disccussions
This is a migrated thread and some comments may be shown as answers.
CH
Top achievements
Rank 1
CH asked on 13 Jul 2013, 03:19 AM
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
    $menu->closeOnClick(true)

// 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?

thanks.





1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 16 Jul 2013, 12:09 PM
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)

Regards,
Alex Gyoshev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Disccussions
Asked by
CH
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or