grocery CRUD version 0.8 does not exist anymore.
The new codeigniter grocery CRUD v.1.x is on
grocery CRUD v.1.1 forum thread
Enjoy…
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
December 28, 2010 6:59pm
Subscribe [10]#1 / Dec 28, 2010 6:59pm
grocery CRUD version 0.8 does not exist anymore.
The new codeigniter grocery CRUD v.1.x is on
grocery CRUD v.1.1 forum thread
Enjoy…
#2 / Dec 31, 2010 6:47am
Wow examples look great.
#3 / Dec 31, 2010 6:55am
Thanks 😊
#4 / Dec 31, 2010 10:21am
Best codeigniter CRUD ever!!
Thankyou
#5 / Dec 31, 2010 9:02pm
Looks interesting, thanks. Is the code documented in the comments or will you be documenting the methods?
#6 / Jan 01, 2011 1:09am
Still the documentation is poor . Even in the functions I didn’t put enough comments to understand exactly . Soon I hope I found time to write the documentation . I will write it in my user guide and over the functions.
#7 / Jan 17, 2011 10:35am
Very new to CI and i was just about to write my own CRUD when bumped into this one. I have downloaded the same into my brand new CI installation for testing.
What config changes are required on the system/application/config folder files?
Am getting this error after copying the folders in the system/application/ folder
Fatal error: Call to a member function file() on a non-object in C:\xampp\htdocs\CI\system\application\libraries\MY_Output.php on line 282
What might I be doing wrong?
-K
#8 / Jan 17, 2011 1:16pm
You have to copy those files to the root of your project. And not to the system/application.
For example if your project it is something like this:
[ ] index.php 02-Dec-2010 11:24 3.2K
[TXT] license.txt 02-Dec-2010 11:38 2.4K
[DIR] system/ 12-Jul-2010 11:03 -
When you copy the GroceryCrud files it will be something like this:
[ ] index.php 02-Dec-2010 11:24 3.2K
[TXT] license.txt 02-Dec-2010 11:38 2.4K
[DIR] public/ 25-Dec-2010 17:16 -
[DIR] system/ 12-Jul-2010 11:03 -
[DIR] templates/ 25-May-2010 13:31 -
Hope it helps. If again the same problem appears try to donwload this file and replace the MY_Output.php file
#9 / Jan 17, 2011 2:14pm
If this helps you, my config.php begins with the code below…
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| <a href="http://example.com/">http://example.com/</a>
|
*/
$config['base_url'] = "http://localhost/grocery_crud/examples/";
/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = "index.php";
/*#10 / Jan 17, 2011 3:12pm
This is a really great example! The documentation may be incomplete, but what you have up so far is still really good to learn from. The only I don’t understand is what is the set_relation() function for?
#11 / Jan 17, 2011 5:12pm
hope this example will help 😊
Relation-1-1 (user guide)
#12 / Jan 18, 2011 1:11am
The My_Output.php posted here now works very well on Windows but the earlier My_Output.php works well in Linux.
I have the below function working very well. In this table i have a column called description(TEXT) where when adding a description, i want a way the first 20 words from description are formatted (strip special characters) and inserted in a column called except(TEXT) in the same table. How can i have this in this function or do i have to write a new function to achieve this?
function codes()
{
$this->crud->set_table('codes');
$this->crud->set_operations(array('add','edit','delete'));
$this->crud->get();
}This CRUD is very well done!
-K
#13 / Jan 18, 2011 3:04am
Actually for this you need a callback and I am still working on callbacks. I could say to you a way to do it, but it will confused you even more!!! But if you need to do this - I can write another post for it. Just tell me
#14 / Jan 18, 2011 5:02am
Thank you web-jonny, if you have sometime, please post a way to accomplish this. Also on the templates/ i have developed my own template and some of the challenges i had to overcome was a way to use my own css, headers n footers. Maybe you can have a short tutorial/howto one can use own templates/. Also on the views/ there are many template views which am not sure what they ought to accomplish. Are you working on a Auth system since there are some login views in /views folder?
I have selected your CRUD for my custom CMS for travel companies and i guess I can post as many experiences am having with groceryCRUD to make it stable and extensible. What do you think?
-K
#15 / Jan 18, 2011 3:23pm
To change the default template you can go to /templates/backend/simple/template.php and just add to the header the css . To be more organized you can put it to the /templates/backend/simple/css/ folder. The same thing you can do it with the js to the folder /templates/backend/simple/js/. I first want to write a documentation for my Crud and after from the Template Controller.
For the other thing that you asked , when I will find time I will post you the code(I will tested too). Thank you for your support 😊