⚠ In case you've missed it we are migrating to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠


RSPeres

Member Since 13 Dec 2012
Offline Last Active Apr 04 2013 12:21 AM
-----

Topics I've Started

Alternatives to Image CRUD

18 March 2013 - 05:34 PM

Hi,

 

I need to build an image gallery. Since Image CRUD still have major bugs, does anyone can point alternatives to it? I'd like to build an gallery and if it's possible integrated with GroceryCrud.

 

thank's in advance

 


N to N Relation

16 January 2013 - 01:57 PM

Hi,

Is it possible to use this kind of query using set_relation_n_n? And populate the combos??



SELECT
c.cidade_id, c.cidade_nome, r.regiao_id, r.regiao_nome, e.estado_id, e.estado_sigla
FROM
tbl_area_atuacao a
INNER JOIN
tbl_cidades c
ON
c.cidade_id = a.cidade_id
INNER join
tbl_estados e
on
e.estado_id = c.estado_id
inner join
tbl_regioes r
on
r.regiao_id = e.regiao_id
where
a.atuacao_id = 1

The combo sequence will be tbl_regioes->tbl_estados->tbl_cidades

Thank's in advance

HMVC Grocery Crud structure

13 January 2013 - 03:34 PM

Hi,

I'm trying to use Grocery Crud within HMVC. Following the tread http://www.grocerycr...c-grocery-crud/ I've could manage to use the example. But, i think I'm doing something wrong. I can't create a new module and instantiate Grocery Crud in it. Everything only works if I put the controllers inside Grocery Crud Module.
Example: I have grocery crud module. Now I want a users module that uses the grocery crud. The correct will be:

modules
-- grocerycrud
-- users


How can I make this work?
I think If all kind of controllers that uses grocery crud needs to be inside Grocerycrud module it is breaking the HMVC paradigm.

Thank's in advance

File upload error 404

18 December 2012 - 01:47 AM

Hi,

I'm trying to upload a file but I just receive an alert: "An error has occurred in upload". Using Firebug I got "POST link_image 404 not found"...

How can I debug this problem? My code:


$this->grocery_crud->add_fields('fk_curso_id','link_nome','link_url','link_image','link_cadastro');

$this->grocery_crud->edit_fields('fk_curso_id','link_nome','link_url','link_image','link_cadastro');

$this->grocery_crud->set_relation('fk_curso_id','tbl_cursos','curso_nome');


$this->grocery_crud->set_field_upload('link_image',$this->config->item('diretorio_thumb_links'));


Thank's in advance

Insert <div> in CRUD form

13 December 2012 - 11:51 AM

Hi,

I have a ajax tree menu to let my user choose a file from a folder. This file needs to be inserted in database with another options. Any Ideas in how I put the javascript tree menu in the add/edit form?? My fields in the form are: Name, Size, file (the tree to select the file)...

Thank's in advance