Subversion Repositories SmartDukaan

Rev

Rev 13595 | Rev 14434 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13595 Rev 14401
Line 146... Line 146...
146
		}
146
		}
147
		$options = array('conditions' => array('UserUrl.' . $this->UserUrl->primaryKey => $id));
147
		$options = array('conditions' => array('UserUrl.' . $this->UserUrl->primaryKey => $id));
148
		$this->set('userUrl', $this->UserUrl->find('first', $options));
148
		$this->set('userUrl', $this->UserUrl->find('first', $options));
149
	}
149
	}
150
 
150
 
-
 
151
	public function admin_by($userId = null) {
-
 
152
		$options = array('conditions' => array('UserUrl.user_id' => $userId),'order'=>array('id'=>'desc'),'limit' => 100);
-
 
153
		$this->Paginator->settings = $options;
-
 
154
		$userUrls = $this->Paginator->paginate();		
-
 
155
		$this->set(compact('userUrls'));
-
 
156
	}
151
/**
157
/**
152
 * admin_add method
158
 * admin_add method
153
 *
159
 *
154
 * @return void
160
 * @return void
155
 */
161
 */