Jump to content


likhon3k

Member Since 01 Feb 2013
Offline Last Active Dec 21 2017 01:54 PM
-----

#7553 Calculate date

Posted likhon3k on 21 May 2013 - 07:54 AM

Problem solved by changing the date format in grocercrud config file.

 

can any one tell me, how could I change date format from UK date to SQL date format without chaning orginal grocery crud file?

 

suppose, I have a date like dd-mm-yyyy format. I want to convert it to yyyy-mm-dd format.




#7393 Multiple file upload under an ID

Posted likhon3k on 14 May 2013 - 03:46 AM

Hi!
In my project, I need uploads 2 or 3 files under a single id.
But I have no idea how this solved.
Help!!
:unsure:

You can solve your problem by the following way. this is one kind of solution.

 

1) Controller use this:

 

           $crud->set_field_upload('upload_file_url','assets/uploads/photograph');
            $crud->set_field_upload('upload_file_url2','assets/uploads/biodata');

 

 

2) Create directory: 'biodata' and 'photograph' at 'assets/uploads' location

 

3) create two field in your table:

 

upload_file_url = varchar (255)

upload_file_url2=varchar(255)

 

4. Now run this.