Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CException
- Categories does not have a method named "beginWidget".
- /home/soul/yii/base/CComponent.php(266)
- 254 public function __call($name,$parameters)
- 255 {
- 256 if($this->_m!==null)
- 257 {
- 258 foreach($this->_m as $object)
- 259 {
- 260 if($object->getEnabled() && method_exists($object,$name))
- 261 return call_user_func_array(array($object,$name),$parameters);
- 262 }
- 263 }
- 264 if(class_exists('Closure', false) && $this->canGetProperty($name) && $this->$name instanceof Closure)
- 265 return call_user_func_array($this->$name, $parameters);
- 266 throw new CException(Yii::t('yii','{class} does not have a method named "{name}".',
- 267 array('{class}'=>get_class($this), '{name}'=>$name)));
- 268 }
- 269
- 270 /**
- 271 * Returns the named behavior object.
- 272 * The name 'asa' stands for 'as a'.
- 273 * @param string $behavior the behavior name
- 274 * @return IBehavior the behavior object, or null if the behavior does not exist
- 275 * @since 1.0.2
- 276 */
- 277 public function asa($behavior)
- 278 {
- Stack Trace
- #0
- + /home/soul/yii/db/ar/CActiveRecord.php(213): CComponent->__call("beginWidget", array("COutputCache", array("duration" => 120, "id" => "getCategoriesDropDown")))
- #1
- unknown(0): CActiveRecord->__call("beginWidget", array("COutputCache", array("duration" => 120, "id" => "getCategoriesDropDown")))
- #2
- + /home/soul/yii/web/CBaseController.php(249): Categories->beginWidget("COutputCache", array("duration" => 120, "id" => "getCategoriesDropDown"))
- #3
- – /home/soul/beta_html/protected/models/Categories.php(291): CBaseController->beginCache("getCategoriesDropDown", array("duration" => 120))
- 286
- 287 public function getCategoriesDropDown($categoryId = 0, $includeChildren = true, $emptyString = 'No Parent') {
- 288
- 289 if ( !is_numeric($categoryId) ) return false;
- 290
- 291 if(CController::beginCache('getCategoriesDropDown', array('duration'=>120))) {
- 292
- 293 $arr_return = array();
- 294 if ($emptyString) $arr_return[0] = $emptyString;
- 295
- 296 $cats = Categories::model()->findAll( 'parentid=:parentid', array(':parentid'=>$categoryId) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement