Welcome Guest, Not a member yet? Register   Sign In
How can i build a dynamic tree view using CodeIgniter ???
#6

[eluser]esra[/eluser]
The Javascript EXT JS library can be used with Codigniter and it does include drag and drop grid and tree components. There is a dated article on the wiki about using EXT and CI together with the YUI adapter, but it is outdated. Better instructions and examples can be found on the EXT JS site. The use of the YUI adapter may not be necessary anymore depending on what you are trying to do because EXT JS has replaced many of its dependencies on YUI.

For an accounting application, it would be useful to have drag and drop features and EXT JS excels at this. Trees can be populated in a number of ways via database queries, query results cached as xml files, or using comma-delimited text. For an accounting application, it would be preferrable to take a dynamic approach using database query results to populate your trees. I have not seen any solutions there for populating a tree using nested sets, but believe there are several solutions for using the Adjacency List model (recursion with a parent_id column).

The EXT JS layouts part of the library plays very nicely with Coolfactor's proposed View library for CI. That is, you can disassemble a EXT JS layout and convert the containers to CI view partials.

http://extjs.com/

You're going to experience a performance hit by including the full EXT JS library. But, it's possible to create a smaller library with only the components you need plus their dependencies from the download page. AI James' Cache library can be used to regain some performance loss, but in my tests Coolfactor's cache method worked just as well.

EXT JS 2.0 which is still under svn development and slated for release this fall creates a Windows-like windowing environment where multiple applications can run in separate windows. It's probably possible to create other windowing environments based on the default windowing environment. For a preview of this, look here:

http://extjs.com/playpen/ext-2.0/example...sktop.html

If you include 'php' in your forum searches, it will reduce the number of hits you get when looking for information. There are a lot of PHP developers who frequent the site, but EXT JS is also used for Python, Ruby, .NET, Perl, etc.

EDIT: for the second link, use Firefox. IE7 does not show the minimized windows in the taskbar in the demo, but this was fixed in svn. Try loading windows, minimizing them, maximizing them, etc. The user interface closely mimics a desktop application.


Messages In This Thread
How can i build a dynamic tree view using CodeIgniter ??? - by El Forum - 09-03-2007, 12:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB