Quantcast
Channel: Function Library - Sodapop Documentation
Viewing all articles
Browse latest Browse all 30

$sodapop->database->getDefaultTemplate()

$
0
0
getDefaultTemplate() loads the template that is set as default in the templates table.    
Location: model.sodapop.php
public function templateLookup() {

## Let's find out which template is set to default
$query = " select *
from templates
where dflt = '1'";
$result = $this->getData($query);
while ($row= mysql_fetch_array($result, MYSQL_ASSOC)) { 
$template['name'] = $row['name'];
$template['id'] = $row['templateID'];
}
return $template;
}


Viewing all articles
Browse latest Browse all 30

Trending Articles