Dear all,
I am new to yii, I have heard its a great framework and apparently very popular. well some say its only popular in Russia and eastern Europe but that’s besides the point
I guess, just like any other opensource software, its a pain to get it to work
can someone please explain to me how do I get the yii strap and yii bootstrap extensions to work.
it appears to be simple installation. however, it refers to /extensions directory whereas I have vendor directory in yii2. it refers to main.php where as I have web.php. Am I looking at some old extension for yii1?
When I install the extension and run this example
$this->widget(‘yiiwheels.widgets.grid.WhGridView’, array(
-
‘filter’=>$person,
-
‘fixedHeader’ => true,
-
‘headerOffset’ => 40, // 40px is the height of the main navigation at bootstrap
-
‘type’=>‘striped bordered’,
-
‘dataProvider’ => $gridDataProvider,
-
‘template’ => “{items}”,
-
‘columns’ => $gridColumns,
9.));
I get this error
Unknown Method – yii\base\UnknownMethodException
Calling unknown method: yii\web\View::widget()
-
in C:\wamp\www\timesheets\vendor\yiisoft\yii2\base\Component.php at line 285
public function __call($name, $params)
{
$this->ensureBehaviors(); foreach ($this->_behaviors as $object) { if ($object->hasMethod($name)) { return call_user_func_array([$object, $name], $params); } } throw new UnknownMethodException('Calling unknown method: ' . get_class($this) . "::$name()")
I have spent way too much time getting this to work I can’t find a way out and it is extremely frustrating. Given the fact that this is “very easy” to use.
Please help me its making me go crazy
Thanks
baz