Welcome Guest, Not a member yet? Register   Sign In
Correct url to controller from kendo datasource
#1

[eluser]Unknown[/eluser]
I am brand new to both CodeIgnitor and KendoUI. I used to wrote a lot of components in Joomla and are therefore familiar with the MVC framework. I also used another (pretty lousy) js ui and therefore do know the principles of using these platforms.

I want to switch over to CodeIgnitor/KendoUI as quickly as possible and made some good progress but got stuck on a particular point. My index file is situated in:
[my website]/cabinet/index.php.
I do have the following directory structure:
[my website]/cabinet/application/controllers
[my website]/cabinet/application/models
[my website]/cabinet/application/views
[my website]/cabinet/application/config and so on.

In the views directory I do have:
[my website]/cabinet/application/views/customers/view.php
[my website]/cabinet/application/views/templates/header.php
[my website]/cabinet/application/views/templates/footer.php

In view.php is my kendo js and it loads fine except for getting the data for the datasource.

I do have the following code:

Code:
$("#customersGrid").kendoGrid({
            dataSource: {
                transport: {
                    read: {
                        url: "/index.php/customers/get_customers",
                        dataType: "json"
                    }
                },

but it seems not to reach my controller. I tried different versions of the url, but no joy.


Can anyone help me with what I should use so that I will be able to load the data through the controller?




Messages In This Thread
Correct url to controller from kendo datasource - by El Forum - 04-23-2013, 02:23 AM
Correct url to controller from kendo datasource - by El Forum - 04-26-2013, 11:28 AM
Correct url to controller from kendo datasource - by El Forum - 04-26-2013, 12:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB