NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

PHP Error

Missing argument 2 for CHtml::label(), called in /var/www/dev.palbin.com/www/admin/views/product/_form.php on line 189 and defined

/var/www/dev.palbin.com/yii/framework/web/helpers/CHtml.php(521)

509 * @param string $for the ID of the HTML element that this label is associated with.
510 * If this is false, the 'for' attribute for the label tag will not be rendered (since version 1.0.11).
511 * @param array $htmlOptions additional HTML attributes.
512 * Starting from version 1.0.2, the following HTML option is recognized:
513 * <ul>
514 * <li>required: if this is set and is true, the label will be styled
515 * with CSS class 'required' (customizable with CHtml::$requiredCss),
516 * and be decorated with {@link CHtml::beforeRequiredLabel} and
517 * {@link CHtml::afterRequiredLabel}.</li>
518 * </ul>
519 * @return string the generated label tag
520 */
521 public static function label($label,$for,$htmlOptions=array())
522 {
523 if($for===false)
524 unset($htmlOptions['for']);
525 else
526 $htmlOptions['for']=$for;
527 if(isset($htmlOptions['required']))
528 {
529 if($htmlOptions['required'])
530 {
531 if(isset($htmlOptions['class']))
532 $htmlOptions['class'].=' '.self::$requiredCss;
533 else

Stack Trace
#0

/var/www/dev.palbin.com/www/admin/views/product/_form.php(189): CHtml::label("Impuesto <span class="required">*</span>")

184 </div>
185 </div>
186 </div><!-- end variants -->
187 <div class="row span-4 alpha suffix-8">
188 <?php
189 echo CHtml::label($product->getAttributeLabel('tax_id') . CHtml::$afterRequiredLabel);
190 ?>
191 <?php echo $form->dropDownList($product,'tax_id', CHtml::listData(Tax::model()->findAll(),'tax_id','valueAndName'), array('title'=> Yii::t('admin', 'Choose what tax do you apply to this product, remember you can configure taxes in Configuration->Taxes'), 'id' => "Product_tax_id")); ?>
192 <?php //$this->widget('application.components.Relation', array('model' => $product, 'relation' => 'tax', 'showAddButton'=>true,'fields' => array('name','value')));?>
193 <?php echo $form->error($product,'tax_id'); ?>
194 </div>

#1
+
/var/www/dev.palbin.com/yii/framework/web/CBaseController.php(119): require("/var/www/dev.palbin.com/www/admin/views/product/_form.php")
#2
+
/var/www/dev.palbin.com/yii/framework/web/CBaseController.php(88): CBaseController->renderInternal("/var/www/dev.palbin.com/www/admin/views/product/_form.php", array("product" => Product, "image" => Image), true)
#3
+
/var/www/dev.palbin.com/yii/framework/web/CController.php(866): CBaseController->renderFile("/var/www/dev.palbin.com/www/admin/views/product/_form.php", array("product" => Product, "image" => Image), true)
#4

/var/www/dev.palbin.com/www/admin/views/product/create.php(33): CController->renderPartial("_form", array("product" => Product, "image" => Image))

28 echo Yii::t('admin', 'When you insert a new product all the demo products will be removed for your convenience.');
29 echo CHtml::closeTag('div');
30 }
31 ?>
32 </div>
33 <?php echo $this->renderPartial('_form', array('product'=>$product, 'image'=>$image)); ?>
34 </div>

#5
+
/var/www/dev.palbin.com/yii/framework/web/CBaseController.php(119): require("/var/www/dev.palbin.com/www/admin/views/product/create.php")
#6
+
/var/www/dev.palbin.com/yii/framework/web/CBaseController.php(88): CBaseController->renderInternal("/var/www/dev.palbin.com/www/admin/views/product/create.php", array("product" => Product, "image" => Image), true)
#7
+
/var/www/dev.palbin.com/yii/framework/web/CController.php(866): CBaseController->renderFile("/var/www/dev.palbin.com/www/admin/views/product/create.php", array("product" => Product, "image" => Image), true)
#8
+
/var/www/dev.palbin.com/yii/framework/web/CController.php(779): CController->renderPartial("create", array("product" => Product, "image" => Image), true)
#9

/var/www/dev.palbin.com/www/admin/controllers/ProductController.php(152): CController->render("create", array("product" => Product, "image" => Image))

147 }
148
149 $this->render('create',array(
150 'product'=>$product,
151 'image'=>new Image(),
152 ));
153 }
154
155 /**
156 * Updates a particular model.
157 * If update is successful, the browser will be redirected to the 'view' page.

#10
+
/var/www/dev.palbin.com/yii/framework/web/actions/CInlineAction.php(50): ProductController->actionCreate()
#11
+
/var/www/dev.palbin.com/yii/framework/web/CController.php(300): CInlineAction->runWithParams(array())
#12
+
/var/www/dev.palbin.com/yii/framework/web/filters/CFilterChain.php(134): CController->runAction(CInlineAction)
#13
+
/var/www/dev.palbin.com/yii/framework/web/filters/CFilter.php(41): CFilterChain->run()
#14
+
/var/www/dev.palbin.com/yii/framework/web/CController.php(1144): CFilter->filter(CFilterChain)
#15
+
/var/www/dev.palbin.com/yii/framework/web/filters/CInlineFilter.php(59): CController->filterAccessControl(CFilterChain)
#16
+
/var/www/dev.palbin.com/yii/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(CFilterChain)
#17
+
/var/www/dev.palbin.com/yii/framework/web/CController.php(283): CFilterChain->run()
#18
+
/var/www/dev.palbin.com/yii/framework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array("accessControl"))
#19
+
/var/www/dev.palbin.com/yii/framework/web/CWebApplication.php(277): CController->run("create")
#20
+
/var/www/dev.palbin.com/yii/framework/web/CWebApplication.php(136): CWebApplication->runController("product/create")
#21
+
/var/www/dev.palbin.com/yii/framework/base/CApplication.php(158): CWebApplication->processRequest()
#22
+
/var/www/dev.palbin.com/www/adminIndex.php(18): CApplication->run()
2011-07-14 21:56:34 Apache/2.2.14 (Ubuntu) Yii Framework/1.1.8
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.