2amigos / yiiwheels

Widget extension library for the YiiStrap extension
http://yiiwheels.2amigos.us
Other
133 stars 77 forks source link

Fatal error: Access to undeclared static property: TbHtml::$inputs #25

Closed vasiliy-pdk closed 11 years ago

vasiliy-pdk commented 11 years ago

Hi, I have gotten an error

Fatal error: Access to undeclared static property: TbHtml::$inputs in /var/www/aes/common/lib/vendor/2amigos/yiiwheels/helpers/WhHtml.php on line 45 Call Stack: 0.0002 642192 1. {main}() /var/www/aes/frontend/www/index.php:0 /var/www/aes/common/lib/vendor/yiisoft/yii/framework/web/CBaseController.php:95 0.0238 5053040 14. require('/var/www/aes/frontend/modules/userAccount/views/registration/registration.php') /var/www/aes/common/lib/vendor/yiisoft/yii/framework/web/CBaseController.php:126 0.0345 8741584 15. WhActiveForm->row() /var/www/aes/frontend/modules/userAccount/views/registration/registration.php:17 0.0353 9040864 16. WhHtml::validInputs() /var/www/aes/common/lib/vendor/2amigos/yiiwheels/widgets/form/WhActiveForm.php:123

When running this code:

<?php $form = $this->beginWidget('yiiwheels.widgets.form.WhActiveForm', array( 'id'=>'verticalForm', 'htmlOptions'=>array('class'=>'well') )); ?>

<?php echo $form->row('textField', $model, 'identity', array('class'=>'span3')); ?> <?php echo $form->row('passwordField', $model, 'password', array('class'=>'span3')); ?> <?php $this->endWidget(); ?>

I looked into TbHtml and it has no any $input static property there.

I am using yiiwheels in conjuction with yiistrap which was delivered with Yiinitializr intermediate template

tonydspaniard commented 11 years ago

The nature of TbHtml changed... fixing