Grazie per il vostro interessamento. Posto un altro po' di codice tratto appunto dal file thumbsup.php:
public function setup($name = NULL, $template = NULL, $config = array())
{
// Nome fornito come secondo elemento
if (is_string($template))
{
$config['template'] = $template;
}
// Reset opzioni
$this->config = $config + $this->default_config;
// Nome fornito all' elemento
if ($name !== NULL)
{
// Carica
if ( ! $this->load_item($name))
{
// Se non esiste crealo
$this->create_item($name);
}
// Carica i risultati
$this->load_results();
$this->load_vote();
}
// Metodo
return $this;
}
Si tratta di un sistema di votazioneche mi sta facendo arrabbiare!
![]()

che mi sta facendo arrabbiare!
Rispondi quotando