Jump to content


davidoster

Member Since 10 Oct 2012
Offline Last Active Jun 20 2014 12:15 PM
*****

Topics I've Started

Grocery CRUD and Node.js!!!

25 November 2013 - 02:21 PM

Just a thought...

Could we have Grocery CRUD working as a module to http://nodejs.org/?

I don't know even if it is possible... Of course the whole philosophy behind the curtains should change but... we must admit... node is the next hot thing! Why we shouldn't flow with the e-stream???

 

And that's what I was reading that got me into thinking about this...

http://shivalibari.c...-js-with-mysql/

 

web-johnny I am sure he has some thoughts about this! Right??? ;-)

 

 

P.S. To the members of the forum: Please forgive me, I am extremely busy lately and this is the sole reason for not having an active role at responding to questions as I used to


How to use Invisible field

21 September 2013 - 10:24 PM

As we grow old we get wiser!

So, in that sense I wanted to point out the use of the invisible field.

When we make for example a callback_before_insert (as the above example code states) we might need to exclude some fields from the add form but still want to pass some value to these fields that will be stored on the database.

 

The solution to this is actually quite simple.

We just use the fields function to state all of the fields that will take part on the insert process and this means also the fields that should not be showing up.

Then in order to "hide" the unwanted fields, hence the ones we want not to be displayed at the form and by hand pass them some value we mask them with the use of the field_type function with the use of the invisible type.

This gets quite handy and easy to use when we want for example to insert some extra data about the record that is saved on the database.

For example when we want to save the date/time of insertion, or if we need to know the user that inserted this record, or if we want to encrypt some sort of information like a password. The possibilites are just endless and the mecanism is there to help us out, straight out of the box!


How to set the texteditor type by field

29 June 2013 - 04:45 AM

Hello all.

Recently I came across a requierement where I need to be able to set a certain field or fields with a specific type of texteditor,

 

e.g. I have a table customers which has

- a field address which I want it to be displaying the minimal version of the texteditor (check under application/config/grocery_crud.php for the different options)

- a field additional_info which I want it to be displaying the full version

 

I could hack in a couple of places the Grocery CRUD library itself but I don't want to do this.

I am sure there must be a very easy way of doing this!

Any thoughts?


[SOLVED] How to setup nginx to run Grocery CRUD

25 June 2013 - 08:41 PM

Hello to all.

Recently I got the brilliant Raspberry Pi and I am playing around with it.

The first thing I did was to install NMP services (this means Nginx MySQL PHP services!!!).

But since my knowledge is limited with nginx...

I got this far,

 

- root of the nginx server: http://rpi.eletter.gr - STATUS : WORKING

- CodeIgniter 2.1.3 installation with "welcome", http://rpi.eletter.gr/ci/index.php - STATUS : WORKING

- Grocery CRUD 1.3.3 installation with sample database, http://rpi.eletter.gr/gc/index.php - STATUS : WORKING 

- Grocery CRUD 1.3.3 installation with sample database, http://rpi.eletter.g...mers_management - STATUS : NOT WORKING

 

 

Any ideas?


Yes, you can have a nice documentation!

24 May 2013 - 07:17 AM

It is possible to produce, If you would like to, a documentation for your unique application the same way CodeIgniter makes its own.

Just navigate here and study the material!