Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 6th, 2012  |  syntax: None  |  size: 4.22 KB  |  views: 120  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. CException
  2.  
  3. SearchForm and its behaviors do not have a method or closure named "tableName".
  4.  
  5. C:\xampp\htdocs\yii\framework\base\CComponent.php(266)
  6.  
  7. 254     public function __call($name,$parameters)
  8. 255     {
  9. 256         if($this->_m!==null)
  10. 257         {
  11. 258             foreach($this->_m as $object)
  12. 259             {
  13. 260                 if($object->getEnabled() && method_exists($object,$name))
  14. 261                     return call_user_func_array(array($object,$name),$parameters);
  15. 262             }
  16. 263         }
  17. 264         if(class_exists('Closure', false) && $this->canGetProperty($name) && $this->$name instanceof Closure)
  18. 265             return call_user_func_array($this->$name, $parameters);
  19. 266         throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".',
  20. 267             array('{class}'=>get_class($this), '{name}'=>$name)));
  21. 268     }
  22. 269
  23. 270     /**
  24. 271      * Returns the named behavior object.
  25. 272      * The name 'asa' stands for 'as a'.
  26. 273      * @param string $behavior the behavior name
  27. 274      * @return IBehavior the behavior object, or null if the behavior does not exist
  28. 275      */
  29. 276     public function asa($behavior)
  30. 277     {
  31. 278         return isset($this->_m[$behavior]) ? $this->_m[$behavior] : null;
  32. Stack Trace
  33. #0     
  34. +  C:\xampp\htdocs\yii\framework\db\ar\CActiveRecord.php(2262): CComponent->__call("tableName", array())
  35. #1     
  36. +  C:\xampp\htdocs\yii\framework\db\ar\CActiveRecord.php(2262): SearchForm->tableName()
  37. #2     
  38. +  C:\xampp\htdocs\yii\framework\db\ar\CActiveRecord.php(379): CActiveRecordMetaData->__construct(SearchForm)
  39. #3     
  40. +  C:\xampp\htdocs\yii\framework\web\CActiveDataProvider.php(75): CActiveRecord::model("SearchForm")
  41. #4     
  42. –  C:\xampp\htdocs\cookumber\protected\views\searchForm\SearchResult.php(3): CActiveDataProvider->__construct("SearchForm")
  43. 1 <?php
  44. 2
  45. 3 $dataProvider=new CActiveDataProvider('SearchForm');
  46. 4
  47. 5 $this->widget('zii.widgets.grid.CGridView', array(
  48. 6     'dataProvider'=>$dataProvider,
  49. 7 ));
  50. 8
  51. #5     
  52. +  C:\xampp\htdocs\yii\framework\web\CBaseController.php(127): require("C:\xampp\htdocs\cookumber\protected\views\searchForm\SearchResul...")
  53. #6     
  54. +  C:\xampp\htdocs\yii\framework\web\CBaseController.php(96): CBaseController->renderInternal("C:\xampp\htdocs\cookumber\protected\views\searchForm\SearchResul...", array("dataProvider" => CSqlDataProvider), true)
  55. #7     
  56. +  C:\xampp\htdocs\yii\framework\web\CController.php(870): CBaseController->renderFile("C:\xampp\htdocs\cookumber\protected\views\searchForm\SearchResul...", array("dataProvider" => CSqlDataProvider), true)
  57. #8     
  58. +  C:\xampp\htdocs\yii\framework\web\CController.php(783): CController->renderPartial("SearchResult", array("dataProvider" => CSqlDataProvider), true)
  59. #9     
  60. –  C:\xampp\htdocs\cookumber\protected\controllers\SearchFormController.php(33): CController->render("SearchResult", array("dataProvider" => CSqlDataProvider))
  61. 28     ),
  62. 29     'pagination'=>array(
  63. 30         'pageSize'=>10,
  64. 31     ),
  65. 32 ));
  66. 33              $this->render('SearchResult',array('dataProvider'=>$dataProvider,));
  67. 34         }
  68. 35          else{
  69. 36             $this->render('SearchForm',array('model'=>$model));
  70. 37         }
  71. 38     }
  72. #10    
  73. +  C:\xampp\htdocs\yii\framework\web\actions\CInlineAction.php(50): SearchFormController->actionSearch()
  74. #11    
  75. +  C:\xampp\htdocs\yii\framework\web\CController.php(309): CInlineAction->runWithParams(array("r" => "SearchForm/Search"))
  76. #12    
  77. +  C:\xampp\htdocs\yii\framework\web\CController.php(287): CController->runAction(CInlineAction)
  78. #13    
  79. +  C:\xampp\htdocs\yii\framework\web\CController.php(266): CController->runActionWithFilters(CInlineAction, array())
  80. #14    
  81. +  C:\xampp\htdocs\yii\framework\web\CWebApplication.php(276): CController->run("Search")
  82. #15    
  83. +  C:\xampp\htdocs\yii\framework\web\CWebApplication.php(135): CWebApplication->runController("SearchForm/Search")
  84. #16    
  85. +  C:\xampp\htdocs\yii\framework\base\CApplication.php(162): CWebApplication->processRequest()
  86. #17    
  87. –  C:\xampp\htdocs\cookumber\index.php(13): CApplication->run()
  88. 08 defined('YII_DEBUG') or define('YII_DEBUG',true);
  89. 09 // specify how many levels of call stack should be shown in each log message
  90. 10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
  91. 11
  92. 12 require_once($yii);
  93. 13 Yii::createWebApplication($config)->run();
clone this paste RAW Paste Data