Problems on creating new module
I'm trying to creat a new module following the instructions based on this tutorial:
I created the DB Table of the new module on my own at the main account accoding to the model used on the other tables... and did all the steps, changing what is concerned to my new module instead of "help".
I'm able to select the new module for the admin, but when I login again and click on the link of the it, I got the following error on a alertbox:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../themes/default/css/central.css" rel="stylesheet" type="text/css" />
Does anybody knows what's going on?
Thanks guys! :)
Which ISPConfig version do you use?
Last release... 188.8.131.52
I installed on a computer for testing. I creat a new table at the DB and uploading the files I created to the ISPConfig directory and testing...
I had success on creating my new module and so on...
Now I'm trying to setup the admin and user permissions. How can I set a button, for exemple the "delete entry" button to only appear when the logged account is from the Admin?
This should work in all templates:
It worked! :)
I have another question if you allow me...
I'm trying to get a valeu from the DB, doing this:
$sql = $app->db->query("SELECT groupid FROM sys_group WHERE client_id = ".$this->dataRecord['indicou_id']);
$group = $app->db->queryOneRecord($sql);
And then update "sys_groupid" from my table "indicacao":
$app->db->query("UPDATE indicacao SET sys_groupid = ".$group." WHERE indicacao_id = ".$this->id);
These lines are in the function onAfterInsert()... and when I execute another stuff from my code in that section they are executed, but not the update above. Could you help?
Can you help me till?
sorry about disturbing ya!
The code to get the group has to look like this:
$group = $app->db->queryOneRecord("SELECT groupid FROM sys_group WHERE client_id = ".$this->dataRecord['indicou_id']);
I could not store the value from the DB to my $group variable...
Is this the right way to get a value from the Db and put into the variable?
Thanks again till!
$group is a hash array, it is not a single value.
|All times are GMT +2. The time now is 18:15.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.