Questions tagged [yii-components]

Yii is an open source, object-oriented, component-based MVC PHP web application framework. Yii is pronounced as "Yee" or [ji:] and it's an acronym for "Yes It Is!"

For more information on Yii components, please see the Yii documentation at:

http://www.yiiframework.com/doc/guide/1.1/en/basics.component

434 questions
0
votes
1 answer

Yii 1.1.21 : is it possible to create two dropdown buttons in the same button group?

I am new to Yii, and I have been LOOKING for documentation on Yii and CMenu. I have used Phalcon and various other frameworks with similar options, but Yii's menu engine is new to me. I am trying to create a button menu with two drop down menu…
UnKulMunki
  • 15
  • 7
0
votes
2 answers

Which folder to add a public accessible file in yii-framework?

I need to upload a public accessible file in yii installation which I can access from url. This is domain verification file. I've uploaded it in /frontend/web folder but it's not accessible directly via url mydomain.com/file.txt As pointed out…
0
votes
0 answers

Yii2 Date I/O Generator their no DatePicker in form

At first I created migrations for table called 'board-directors' and in this table their column his name 'start_date' it's date after I generator with Yii2 I/O Generator their no DatePicker in form this code in board-directors->_form ?=…
0
votes
0 answers

Using input type button that can passing value to model with webcam.js in yii2

I am setting up my web application by implementing webcam.js using yii2 advance. but I can't figure out to passing the value because I am used to uploading the image by using field($model, 'image')->fileInput(['accept' =>…
0
votes
1 answer

How to get URL from the controller and action name (that follows rules from CUrlManager)?

I am currently working on the Yii 1.1 project and I am creating cron command for the sitemap manager. In the main config, I configured URL manager rules (ex. 'home' => 'home/index', where "home" is controller name, and "index" is the action from the…
Scraper321
  • 23
  • 6
0
votes
0 answers
0
votes
1 answer

yii: Append instead of replace items in CListView when using pager

I'm using CListView widget to render by items. But now when I change the page using pagers provided by CListView, it change the data in the _view. I'd like to know if I can obtain the old data (says, page 1) and append the new data (page 2) to it…
Huang Yen-Chieh
  • 635
  • 2
  • 11
  • 24
0
votes
1 answer

Yii 1.1 urlManager .php?param= redirect

I'm having issues figuring out how to process some old URLs in Yii 1.1 that currently return 404. Below a small bit of the config file. 'urlManager' => array( 'class' => 'UrlManager', 'urlFormat' => 'path', …
abreski
  • 81
  • 1
  • 6
0
votes
0 answers

Class Module does not exist

I'm using ut8ia/yii2-content-module for content managing. but I have bellow error when I want to use it: Class \ut8ia\contentmodule\ContentModule does not exist I done as the documentation order. here is my config in backend: 'modules' => [ …
0
votes
1 answer

MaskedInput work at first element only - dynamic form wbraganca - Yii2

I'm using some plugins (yii\widgets\MaskedInput)in dynamic-form, I notice that plugin work only at first element, when adding an option but this normal load but the entry "score" does not validate the entry of only numbers but allows you to enter…
0
votes
0 answers

How can I change language of URL to single language In Yii?

I have website built in Yii 1 framework and I want to change some URLs of website to German language. No multi-language. Sample URL: http://mywebsite.com/products to http://mywebsite.com/Produkte
Bhavesh Nariya
  • 365
  • 2
  • 6
  • 25
0
votes
3 answers

The custom ActiveRecord class not working when i call the find() method from view?

I am overriding the find method and add the where condition globally thats working fine here is my code class Order extends \common\components\ActiveRecord \common\components\ActiveRecord namespace common\components; use Yii; use…
rajwa766
  • 604
  • 13
  • 31
0
votes
1 answer

Yii 2 How add a custom validation check on file upload

I am building a CSV uploader and I want to add a custom validation function that will check the header row of the CSV file to ensure the correct columns are in place. I am trying to put a custom validation rule in the model to do this but failing…
user794846
  • 1,881
  • 5
  • 29
  • 72
0
votes
0 answers

Auto complete for signup form in yii2

Good day!! I need autocomplete in yii2 in one text input. I have two database and I need to connect to the second database to get the value on the table of that database. Can someone please show me how.. Just use an example. Thank you!
0
votes
2 answers

how to connection establish with both database from different database oracle and mysql in yii2

Actually i create a application and please someone say me. how to establish connection with mysql and different oracle server. and how to update if update my mysql field so automatic update my oracle erp system.
U anurag
  • 21
  • 5