from official grocery CRUD web, they teach me set_relation like that:
set_relation tutorial
The tutorial show how to display database which the main table (set_table) is "employees". But how do i display when my set_table is offices, so then one of…
I got stuck in a situation quite strange in my code. It seems as the if condition does not work. Here is my code:
if ($mode == "edit") {
echo "edit mode!";
}
else {
$crud->set_rules('u_email','Email','is_unique[users.u_email]');
echo…
It is given that if your column type is date the form will show a date picker using the grocery crud. My problem is that, is it possible to use the date picker widget of the GROCERY CRUD (like displaying the date picker in the view and return the…
I need to save current date and I supposed I must modify this code into application\libraries\grocery_crud.php
line # 253
case 'date':
/*if(!empty($value) && $value != '0000-00-00' && $value != '1970-01-01')
{
list($year,$month,$day) =…
I am stuck with codeigniter, Grocery CRUD code, here is portion of the code that keeps troubling me:
if($state == 'add'){//add state
$upload_path = '/files/dir1/';
}
else if($state == 'edit'){//edit state
$upload_path =…
I'm using Grocery CRUD with CodeIgniter, and I have this table :
annonce (id, name, id_user).
the id_user is a foreign key which references to another table user(id,....).
I don't want to add the user_id in an input when I add an entry in the…
I use codeigniter latest version. I am building an admin area where can choose to have site on maintenance mode.
The button will be radial. the will click save and will update settings.
What is the best way to create the controller for it. I still…
This may sound newbie-sh but I would like to edit the actual html that is rendered by Grocery-Crud in the add, edit and delete pages, in order to add some other elements (UI elements, just to make the page similar to the rest of the web app in which…
I'm using Codeigniter with Grocery Crud, to connect with a database in MySQL and PhpMyAdmin.
I installed everything as the tutorial said, but errors can always be there.
My problem is: I have a simple table (3 fields, one for name, another one for…
I have a script that works, this one:
$output = $crud->render();
$data = array();
$data['title'] = 'Invoice details';
$output->data = $data;
$this->output($output); /* crud render and extra fields */
the thing is that this…
hii ihave a question how to use grocery crud with phils template library here is my code controller
public function user_management() {
$crud = new grocery_CRUD();
$crud->set_subject('User');
$output = $crud->render();
…
I'm having problems to do a simple permission system on my Webapp. My DB has a table called "usuario" that has informations about the users of the system. One of these columns is called "privilegio" that has value '0' for administrators and 1 for…
I want to check the from the controller if I am rendering an add form or just a view. I want to do something like this..
public function clients()
{
try{
if ($_SERVER["REQUEST_URI"] == "/data/clients")
{
…
I'm using GroceryCRUD to act as a front end for a database containing news releases. Secretaries can go in and add/edit/delete news releases in the database easily now. Only qualified users are able to access the application root via an .htaccess…