Changeset 51

Show
Ignore:
Timestamp:
07/18/07 01:52:32 (18 months ago)
Author:
aarkerio
Message:

Helps added

Location:
trunk/app
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/controllers/podcasts_controller.php

    r50 r51  
    1616   public $helpers    = array('Html', 'Javascript', 'Ajax', 'Form', 'User', 'Gags'); 
    1717    
    18    public $components = array('Portal', 'Security'); 
     18   public $components = array('Portal', 'Security', 'Mypagination'); 
    1919    
    2020   public function index($username=null, $entry_id=null) 
     
    9191    } 
    9292     
    93 /***********====ADMIN SECTION====***/     
     93/***********====ADMIN SECTION==== *************/     
    9494 
    9595    public function admin_listing() 
     
    119119    $this->Sanitize = new Sanitize; 
    120120     
    121     $this->Sanitize->cleanArray($this->data); //Hopefully this is enough 
     121    $this->Sanitize->cleanArray($this->data["Podcast"]);  
    122122     
    123123    /* SUBMITTED INFORMATION - use what you need 
     
    228228    /** delete the temporary uploaded file **/ 
    229229   unlink($podfile); 
     230}  
     231else 
     232{ 
     233    $this->set('subjects', $this->Podcast->Subject->generateList(null, 'title')); 
    230234} 
    231235 
  • trunk/app/models/podcast.php

    r15 r51  
    11<?php 
    2 /**  MM GPLv3 **/ 
     2/**   
     3  Chipotle Software MM GPLv3 
     4  2002-2007 
     5**/ 
     6 
    37class Podcast extends AppModel { 
    4    public $name = 'Podcast'; 
    58    
    6    public $belongsTo = 'User'; 
     9    
     10       public $belongsTo  = array( 
     11                                  "User" => array( 
     12                                  "className" => "User" 
     13                                   ), 
     14                                   "Subject" => array( 
     15                                   "className" => "Subject" 
     16                                   ) 
     17                          ); 
     18 
     19    
     20   public $validate = array( 
     21      'login' => '/[a-z0-9\_\-]{3,}$/i', 
     22      'password' => VALID_NOT_EMPTY, 
     23      'username' => VALID_NOT_EMPTY, 
     24      'email' => VALID_EMAIL 
     25   );  
    726} 
    827?> 
  • trunk/app/models/user.php

    r8 r51  
    44class User extends AppModel { 
    55     
    6     // Its always good practice to include this variable. 
    7     public $name       = 'User'; 
    86    public $belongsTo  = array( 
    97             "Group" => array( 
  • trunk/app/views/helps/admin_display.thtml

    r43 r51  
    11 
    2 <div class="title_section">Centauro Help</div> 
     2<div class="title_section">Karamelo Help</div> 
    33 
    44<div> 
  • trunk/app/views/podcasts/admin_add.thtml

    r50 r51  
    3838  echo "<br />"; 
    3939   
    40   echo $html->selectTag('Podcast/subject_id', $optionElements, null, null, null, false); 
     40  echo $html->selectTag('Podcast/subject_id', $subjects, null, null, null, false); 
    4141?> 
    4242