Link Error (Cexception) When Using Cdetailview To See Individual View

Hello,

I am currently trying to view an individual entry in my DB using the link in CGDetailView. However, I get error messages when redirected to the view page which is supposed to be for a single id. I have been trying to solve this issue for almost two weeks now, and haven’t found anything through searches. If someone could help me out with this issue, it would be GREATLY appreciated!!

The problem is, I get the following error:

[b]"Not Found

The requested URL /yii/site/index.php/drug/id was not found on this server."[/b]

In my search bar, I’ve noticed that the url changes to redirect me, but a bunch of random #'s and symbols (ex. %) are inserted into the url (ex. index.php/i%3A%d. Placing the url from the error message (/yii/site/index.php/drug/id) in my search bar, it does not direct me to the right page, but then Yii steps in to provide the following error:

“throw new CException(Yii::t(‘yii’,’{class} and its behaviors do not have a method or closure named “{name}”.’,”




yii/framework/base/CComponent.php(265)


253     public function __call($name,$parameters)

254     {

255         if($this->_m!==null)

256         {

257             foreach($this->_m as $object)

258             {

259                 if($object->getEnabled() && method_exists($object,$name))

260                     return call_user_func_array(array($object,$name),$parameters);

261             }

262         }

263         if(class_exists('Closure', false) && $this->canGetProperty($name) && $this->$name instanceof Closure)

264             return call_user_func_array($this->$name, $parameters);

265         throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".',

266             array('{class}'=>get_class($this), '{name}'=>$name)));

267     }



Thank you in advance for your help!

Tanya