Phprad Classic -
$to = "admin@example.com"; $subject = "New Post Added: " . $this->title; $message = "A new post has been added by " . $_SESSION['username']; mail($to, $subject, $message);
if (!$this->category_data) $this->category_data = Category::Find($this->category_id); return $this->category_data; phprad classic
$sql = "SELECT * FROM posts WHERE views > :min_views"; return $this->ExecuteSQL($sql, array('min_views' => 100)); $to = "admin@example
// Field configuration 'image' => array( 'type' => 'file', 'upload_dir' => 'uploads/', 'allowed_extensions' => 'jpg,jpeg,png,gif', 'max_size' => 5242880, // 5MB 'thumbnail' => array(150, 150), 'medium' => array(800, 600) ) // pages/posts_add.php public function OnAfterSave() $to = "admin@example.com"
// pages/posts_add.php public function OnBeforeSave()