Made a change on the ribbon server and then had to revert it back.
git-svn-id: http://svn.cleancode.org/svn/pickles@52 4d10bc64-7434-11dc-a737-d2d0f8310089
This commit is contained in:
parent
7a7c165b61
commit
6b68c2efe6
2 changed files with 17 additions and 2 deletions
|
@ -3,8 +3,7 @@
|
|||
date_default_timezone_set('America/New_York');
|
||||
|
||||
define('PICKLES_PATH', getcwd() . '/../../pickles/');
|
||||
//define('TEMP_PATH', '/tmp/smarty/' . $_SERVER['SERVER_NAME'] . '/');
|
||||
define('TEMP_PATH', '/home/41938/data/tmp/smarty/' . $_SERVER['SERVER_NAME'] . '/');
|
||||
define('TEMP_PATH', '/tmp/smarty/' . $_SERVER['SERVER_NAME'] . '/');
|
||||
|
||||
function __autoload($class) {
|
||||
$file = PICKLES_PATH . 'classes/' . str_replace('_', '/', $class) . '.php';
|
||||
|
|
16
models/store/category.php
Normal file
16
models/store/category.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class store_category extends store {
|
||||
|
||||
public function __default() {
|
||||
$category = $this->db->getRow('
|
||||
SELECT id, name, permalink, description
|
||||
FROM categories
|
||||
WHERE permalink = "' . $_REQUEST['permalink'] . '";
|
||||
');
|
||||
|
||||
$this->data['category'] = $category;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue