Threaded View

  1. #1
    Sencha User
    Join Date
    Apr 2009
    Location
    Bulgaria
    Posts
    21
    Vote Rating
    1
    ficeto is on a distinguished road

      0  

    Default Another Codeigniter Direct implementation

    Another Codeigniter Direct implementation


    Hi folks, I saw the other thread for a direct codeigniter implementation but I think my approach is a bit different.
    You can grab the code from http://github.com/ficeto/direct-igniter
    The classes that Direct calls in my case are regular Controller classes, just like those that are in the application/controllers folder but the ones for Direct stay in applications/direct folder.
    Going this way lets you use the same models libraries and syntax as in codeigniter.
    I'm running this same code in an application that is build on direct and features all kinds of grids, trees, forms and such.
    I have a basic test build in, so some of the files are purely for example.
    The files that you need to worry are:

    application/config/direct.php
    application/controllers/direct.php <- you can change the index and deploy login checks if needed
    application/libraries/Direct_api.php
    application/libraries/Direct_cache_provider.php
    and the application/direct folder for your controller classes

    enjoy, I hope you like it.

    NOTE: If you are using Codeigniter 2, you will need to change the model class in the example to extend CI_Model (don't forget to also reflect that in the constructor function)
    Last edited by ficeto; 5 Oct 2010 at 9:53 AM. Reason: added note about CI2

Similar Threads

  1. Ext.Direct for CodeIgniter
    By goachka in forum Ext.Direct
    Replies: 46
    Last Post: 9 Feb 2013, 5:03 PM
  2. Ext.Direct implementation gotchas
    By meercat in forum Ext.Direct
    Replies: 0
    Last Post: 17 Sep 2010, 7:01 AM
  3. ext.direct and codeigniter
    By Boon in forum Ext.Direct
    Replies: 3
    Last Post: 31 Aug 2009, 12:24 PM
  4. Alternative Ext Direct Java Implementation
    By rastafarra in forum Ext.Direct
    Replies: 0
    Last Post: 8 Jun 2009, 12:06 AM

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar