Discussion on myIgniter - Admin CRUD and Page Generator

kotaxdev

kotaxdev supports this item

Supported

This author's response time can be up to 1 business day.

137 comments found.

benkin

benkin Purchased

hello developer.. I installed myigniter on my localhost and it’s running well i though.. but when i deploy it on production and access the domain, it says http error 500.. I have no idea with this.. can you help me?

benkin

benkin Purchased

Yes, but it still http error 500..

benkin

benkin Purchased

Hello developer.. I successfully installed the latest version (4.0.3). Now I wanna talk about User group. Is privileges access is work for User group?

php-baker

php-baker Author Team

Hi benkin

if i understand you , i think you can add new groups and links users with this groups then manually from controllers you can add your privileges, i hope this make sense.

Thanks

kapan ni bisa support generate chart

nvts

nvts Purchased

4.0.2 to 4.0.3. What was changed on this update? Thanks

Version 4.0.3 (March 11, 2017) - Fix bug installation wizard on linux or production server

osamare

osamare Purchased

hey There is a problem with the display on the mobile screen Clarification in the image https://prnt.sc/iql8ex
osamare

osamare Purchased

hello

osamare

osamare Purchased

hey There is a problem with the display on the mobile screen Clarification in the image https://prnt.sc/iql8ex

php-baker

php-baker Author Team

Hi osama,

Its better to check this issue via teamviwer Please add me on Skype for fast support phppowerarts

Thanks

osamare

osamare Purchased

give my your Skype id

Interest!, But is it possible to input data via import from xls file?

may be we add this feature in future versions , thanks for suggestions :)

Great :) and how about my 2nd questions? Can this script handle data around 50k row data? (increase twice/double every year) because I have planning to make a system with that much data

You mean using crud builder, indeed it can handle it. If not using crud builder then it’s up to your logic apps

Hello.. in my installation forgot password doesn’t work.. after user submit email, it goes to 404 page.. any idea?

Hi ivairtas,

please check if .htaccess file on your project root

Another help please.. I need to have dependent dropdown select I checked in the GroceryCRUD forum, people uses the library: gc_dependent_select

But I cannot make it work in MyIgniter..

I have this form: Province, City, District

So for example, user select Province A, then the form only loads City that is related to Province A..

Hi dear ,

it assumed to working fine , myigniter is mix of normal (codeigniter framework + grocerycrud + ion_auth and some of other useful library) , soworking with it as codeigniter project , we always try to not change the codeigniter style to keep it easy to use.

Thanks

Hi, i want to add new table, but the table isn’t saved! The message says the table is made, but it is not!

please check your browser console , may be some error logged in background

Hello!! Several days ago, report an error with own set_rules that did not work. Receiving a message that the rule did not exist in the controller of the module. Searching info on google for some days and I found this post:

https://www.grocerycrud.com/forums/topic/3841-problem-with-callback-in-validation-rule/#entry14947

Solve bug that I coment.-

Please, include fix on new release of myIgniter.-

Thank you and sorry for taking your time reading these lines.-

The problem is that callback dont work in validation rules

In my resume Controller have

class _clientes extends MY_Controller { public function index() { $crud = new grocery_CRUD(); }

$crud->set_table("_clientes");
$crud->set_subject("Clientes");
// Show in
$crud->add_fields(["NROQUIT"]);
$crud->edit_fields(["NROQUIT"]);
$crud->columns(["NROQUIT"]);
// Fields type
$crud->field_type("id", "integer");
$crud->field_type("NROQUIT", "integer");
// Relation n-n
// Validation
$crud->set_rules("NROQUIT", "NROQUIT", "required|callback_valid_cuit");
// Display As
$crud->display_as("NROQUIT", "Nro. de Documento / Cuit");
// Unset action
$data = (array) $crud->render();
$this->layout->set_wrapper( 'grocery', $data,'page', false);

public function valid_cuit($cuit) { $cuit_array = str_split(str_replace(array(’ ’, ’-’), array(), $cuit)); }

if ((count($cuit_array) < 11) OR (count($cuit_array) > 11))
{
    // Usando lang
    // $this->form_validation->set_message('valid_cuit', $this->lang->line('form_cuit_error'));
    $this->form_validation->set_message('valid_cuit', 'Error al validar el CUIT');
}
return FALSE;
$result  = $cuit_array[0] * 5;
$result += $cuit_array[1] * 4;
$result += $cuit_array[2] * 3;
$result += $cuit_array[3] * 2;
$result += $cuit_array[4] * 7;
$result += $cuit_array[5] * 6;
$result += $cuit_array[6] * 5;
$result += $cuit_array[7] * 4;
$result += $cuit_array[8] * 3;
$result += $cuit_array[9] * 2;
$div    = intval($result / 11);
$resto  = $result - ($div * 11);
if ($resto  0)
{
    return ($resto  $cuit_array[10]) ? TRUE : FALSE;
}
elseif ($resto  1)
{
    if (($cuit_array[10]  9) AND ($cuit_array[0]  2) AND ($cuit_array[1]  3))
    {
        return TRUE;
    }
    elseif (($cuit_array[10]  4) AND ($cuit_array[0]  2) AND ($cuit_array[1]  3))
    {
        return TRUE;
    }
}
elseif ($cuit_array[10]  (11 - $resto))
{
    return TRUE;
}
else
{
    // Usando lang
    // $this->form_validation->set_message('valid_cuit', $this->lang->line('form_cuit_error'));
    $this->form_validation->set_message('valid_cuit', 'Error al validar el CUIT');
}
return FALSE;

}

With the modifications on link posted fix the problem with callback, I just need to add on application\language\spanish\form_validation_lang.php $lang[‘form_validation_valid_cuit’] = ‘The {field} field must contain a valid Datetime.’; else don’t find valid message.

The error is known and originates with hmvc and codeigniter validator, so I understood

Please try this callback code style:

$this->form_validation->set_rules(
        'username', 'Username',
        array(
                'required',
                array($this->users_model, 'valid_username')
        )
);

Soruce: https://www.codeigniter.com/userguide3/libraries/form_validation.html#callbacks-your-own-validation-methods

is it possible to manage an existing application?

yes , you can using this script to manage all your website database easily may be in sub folder

I am trying to use the database feature and I can go through the whole process of creating a table, it looks like it saves, but not. I go into with phpmyadmin and it is not there. So if I create one in phpmyadmin, it shows in the database listing. So then I try and create another one with the database tool and same thing. Looks like it is saving but is just not there. I would like to use this feature.

I looked into what changes I made and discovered that I changed the admin group to Admin and changed the members group and added 3 more. The uppercase of the Admin was causing the problem. I changed it back to admin with no problems now.

Also. I was able to add the clone function to the flexigrid theme for GroceryCRUD.

So the change did not allow to save the table. It shows all the others like the CRUD side does. But I can not create a new one and save it.

can you open your console then reload the page and send a screenshot to email support please ?

Hi recently purchase and tried to install on wamp and received localhost is currently unable to handle this request. HTTP ERROR 500

Hello, make sure your .htaccess in wamp is activated

Hi,

Just want to make some simple pre-sales questions:

Question 1: Can i restrict the crud builder (or other generators) to Admins only?

Question 2: Can i build menus for specific groups of users?

Question 3: Can i build a complete CRUD (create, read, update, delete) for table a particular table for Admins…... and a partial one (for the same table) for general users but with less rights (for example: read only)?

Question 4: Can you create a rest API with your tool.

I’d appreciate if you could provide a simple but concise reply for each question.

Best Regards,

Diego.

Hi,

The “Database Manager” module doesn’t save the tables. Using Xampp.

I see that many other users had a similar problem so i appreciate if you could let me know what’s the solution for this.

Thanks.

Update: The past 2 comments (posted by me) can be considered as Fixed.

Three questions:

1) Api: When i click the “Api” menu (using Xampp) i see a blank page with this…

[]

That’s all.

Is this ok? If not…how can i fix that?

2) Where can i learn more about the API?

3) I don’t see the Amazon Aws module.How can i enable it?

Thanks.

Hello, documentation is under path documentation/welcome it’s in admin side,

1) Yes it’s ok the Api return [] it’s mean no data in return,

2) There’s example controller API in myginter you can check under directory \application\controllers\Api.php

3) Probably you not checked Aws module before installing, make sure this directory is exist \application\modules\aws3

Hello kotaxdev, great work you have done. Enjoy using it so far. One question. I am struggling creating with grocery two drop downs with the second one depending on the first. I have found at grocery forum a library the does that but i think its is not compatible with version 1.6.x. Have you came across with something i can use to implement this kind of functionality?

php-baker

php-baker Author Team

Hi kostas ,

At this moment myigniter still not have this feature , but you can do it manually , i prefer to do it myself using grocerycrud callback function

Thanks! Muhammed

thanks php-baker. I was able to resolve the issue. Cheers!

agoddard

agoddard Purchased

Hi,

I have a question regarding the extent of the app. I am needing to create a backend for users, but each user when they login can only add content to pages that I specify, and also that data is only specific to the user. So example, I can retrieve the data only for that user in database. Does that makes sense?

Can this do that?

php-baker

php-baker Author Team

Hi Agoddard,

Thanks for interesting in my script , yes myigniter can do this website very easy and for return data according to user_id , you can do this manually on your controller via add this line of code

$crud->where(‘user_id’,$this->session->user_id);

Thanks! Muhammed

agoddard

agoddard Purchased

Okay, so can I out of the box build more of a member facing site where the user can click lets say “welcome” page, they are displayed with current data for the fields in the database, but then still modify the data in the interface and save it?

Hello… Is it possible to get a search box for every column/field on the db table ?

by
by
by
by
by
by