Hello, I downloaded the timepicker v3 at http://www.yiiframework.com/extension/timepicker/, and I just extracted all of its contents to /framework/zii/widgets/timepicker. However, when I try to call an instance of it with
it gives me the error: The asset “/var/prmm/framework/zii/widgets/timepicker/assets” to be published does not exist. I’m guessing I’m supposed to make an assets folder inside the timepicker folder but I’m not sure which files to put in there, or even if this is the right widgets folder. The installation instructions are horrible (“Extract the release file”). There are .js, .css, .php files, and some images in the zip. Any help is appreciated, thanks.
Please note that extension are not part of the Yii core… you can ask questions about an extension on the extension page as a comment… or in the extensions section of this forum…
Have you added the component to the config file to auto load it? You may need to also subclass the /zii/widget and use the Yii::import() function at the top of the file placed in /components.
<?php
Yii::import('zii.widgets.CPortlet');
Yii::import('widgets.timepicker.timepicker');
class UserMenu extends CPortlet
{
...
public function init()
{
...
return parent::init();
}
}
?>
i was getting the error because I extract the files in the extension folder but i corrected my foolish mistake by extracting the entire timepicker folder in the extension folder
It works fine. But I have a bunch more validators I wrote. How would I define the "application.extensions.mc" in the config so I can shorten each call to: