Jump to content


Cleiton Garcia

Member Since 15 Jan 2014
Offline Last Active Mar 05 2014 06:38 PM
-----

Topics I've Started

Gc work only in iframe? (css/js)

25 February 2014 - 01:57 PM

I have a theme (http://themeforest.n...emplate/5960121) and integration of Gc only works perfectly when i use Gc as a frame.

 

I tried various ways to integrate both, but I had no success. :\

 

Can someone help?


Hide field only edit or add

22 January 2014 - 12:59 PM

How to do hide field only in edit or add?

 

Ex.:

 

Field 'date', show to add but not to edit. How todo?

 

I search, but not find. :\

 

Anyone?

 

Thank's

 

@EDIT:

But secretly I fill this field (in code only), but the user can not see it nor change it.

 

And sorry my bad english!


Hide field only edit or add

22 January 2014 - 12:42 PM

How to do hide field only in edit or add?

 

Ex.:

 

Field 'date', show to add but not to edit. How todo?

 

I search, but not find. :\

 

Anyone?

 

Thank's


Relation field should not appear in edit & add, only list & read. How to do?

15 January 2014 - 12:35 PM

Hello to all,
 
I'm having trouble performing the following ... to add or edit (int) $ user_id field is not displayed. However, in columns and read the record, the name appears (relation) of the same.
 
Sorry if this question already exists, but sought and found.

 

Thanks

 

--

 

Method 'systems':

public function systems()
	{
		try{
			$crud = new grocery_CRUD();

			$crud->set_table('systems')
				->set_subject('Sistema')
				->columns('name', 'platform', 'responsible', 'language')
				->fields('name', 'user_id', 'description', 'platform', 'responsible', 'language', 'status', 'modified')
				->field_type('modified', 'datetime')
				//->field_type('user_id', 'hidden', $this->auth_verify['id'])
				->display_as('name', 'Nome do Sistema')
				->display_as('description', 'Descrição')
				->display_as('platform', 'Plataforma')
				->display_as('responsible', 'Responsável')
				->display_as('language', 'Linguagem')
				->display_as('user_id', 'Editor')
				->display_as('modified', 'Data');


			$crud->set_relation('user_id','users','name');

			$output = $crud->render();
			$this->_example_output($output);

		}catch(Exception $e){
			show_error($e->getMessage().' --- '.$e->getTraceAsString());
		}
	}