ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

v 1.3.3 grocery CRUD - an automatic Codeigniter CRUD

April 11, 2011 3:24am

Subscribe [77]
  • #61 / Apr 25, 2011 12:07pm

    ReyPM

    86 posts

    Okey fine but what about with showed at first run (when get data from DB)? callback_field (http://www.web-and-development.com/grocery_crud/crud/function_name/callback_field)? Can you post a example of this?

  • #62 / Apr 25, 2011 12:13pm

    web-johnny

    235 posts

    Okey fine but what about with showed at first run (when get data from DB)? callback_field (http://www.web-and-development.com/grocery_crud/crud/function_name/callback_field)? Can you post a example of this?

    (The callback_field is for both add and edit field).

    I have it in the example is : callback_edit_field . You don’t need callback_add_field because when you insert a code you don’t have to decrypt it because ... its empty 😉.

    But if you still wanted you can do it like this:

    $this->grocery_crud->callback_field('usuario',array($this,'username_decrypt'));
        $this->grocery_crud->callback_field('pass',array($this,'password_decrypt'));

    The only thing you will change is the below code , because the add field is empty :

    function username_decrypt($value = '' /* Just insert this line */)
    {
        $enc = new EncryptDecrypt();
    $value = $enc->Decrypt($value);
        return '<input type="text" maxlength="50" value="'.$value.'" name="usuario" style="width:462px">';
    }
    
    function password_decrypt($value = '' /* Just insert this line */)
    {
        $enc = new EncryptDecrypt();
    $value = $enc->Decrypt($value);
        return '<input type="text" maxlength="50" value="'.$value.'" name="pass" style="width:462px">';
    }
  • #63 / Apr 25, 2011 12:20pm

    ReyPM

    86 posts

    I mean in this screen http://www.dropmocks.com/mUUyg notice the encrypted at Usuario column this is what I’m need to show unencrypted. How?

  • #64 / Apr 25, 2011 12:23pm

    web-johnny

    235 posts

    I mean in this screen http://www.dropmocks.com/mUUyg notice the encrypted at Usuario column this is what I’m need to show unencrypted. How?

    This is the callback_column and its at : http://www.web-and-development.com/grocery_crud/crud/example/callback_column . I have an example there to unserstand.

  • #65 / Apr 25, 2011 12:29pm

    ReyPM

    86 posts

    Thanks a lot it works perfectly. Now I have another question: How I can change default language from English to Spanish? Or better maintain two different files: one for Spanish and the other for English and relies the selection in config.php language key?

  • #66 / Apr 26, 2011 1:03am

    web-johnny

    235 posts

    Thanks a lot it works perfectly. Now I have another question: How I can change default language from English to Spanish? Or better maintain two different files: one for Spanish and the other for English and relies the selection in config.php language key?


    I still don’t support multi-languages. Is only English for now on. You can view my future plans to the url : http://www.web-and-development.com/grocery_crud/crud/view/future_features

  • #67 / Apr 26, 2011 8:39am

    ReyPM

    86 posts

    Ups I can’t use this then because I need this to be in spanish :(

  • #68 / Apr 26, 2011 6:21pm

    web-johnny

    235 posts

    Ups I can’t use this then because I need this to be in spanish :(

    You can simply go the the grocery CRUD library and change the default messages to spanish. It will be quite easy I think . Try it , till I make it like “multilingual”

  • #69 / May 01, 2011 7:03pm

    web-johnny

    235 posts

    ReyPM I think I misunderstood what do you mean. The multilangual for you frontend it is supported in CRUD. You can simply add a language id to your table and set a relation to a table that you named it for example: “languages”. Hope it helps

  • #70 / May 04, 2011 4:30am

    tieungao

    30 posts

    hi web-johny,

    When u done the future features of grocery?

  • #71 / May 04, 2011 4:36am

    web-johnny

    235 posts

    hi web-johny,

    When u done the future features of grocery?

    This week probably I will have ready a new version with a file upoader and relation 1-n .

  • #72 / May 07, 2011 10:33am

    web-johnny

    235 posts

    Hi guys . I’ve just updated grocery crud . The new version is now v.1.0.3 and I add two basic features.
    1- Uploading file
    2- The Relation 1-n for tables.
    You can see the new features at http://www.web-and-development.com/grocery_crud/crud/view/examples .

  • #73 / May 07, 2011 2:51pm

    tieungao

    30 posts

    This is great!

    Thank you this is what im waiting for.

    Can u make an example how to put grocery togetther with HMVC?

  • #74 / May 07, 2011 2:55pm

    web-johnny

    235 posts

    This is great!

    Thank you this is what im waiting for.

    Can u make an example how to put grocery togetther with HMVC?

    I think Sajjad has your answer in the post http://ellislab.com/forums/viewthread/186696/

  • #75 / May 12, 2011 6:33am

    mkamosz

    1 posts

    Hi,

    I’m a new in codeigniter. Today I install Grocery_CRUD and i have a problem with somethink like that:

    A Database Error Occurred
    
    Error Number: 1064
    
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    
    SHOW COLUMNS FROM
    
    Filename: /home/fresh4u/public_html/mobile/third_party/grocery_crud/models/grocery_model.php
    
    Line Number: 226

    My serwer use php5 datebase is in mysql5 what can by wrong?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases