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
3 answers

How to create Yii form field which shouln't appear in Database

I'm using Yii MongoDbSuite. I need to create form field for password repeat validation, which shouldn't appear in MongoDB. Because of I'm using yii forms, all fields which i want to add in view i should declare as public in my model. But my model…
user1279525
  • 539
  • 1
  • 6
  • 12
0
votes
2 answers

Fetch Username from database and display on index page

i have database table client_info(id,first_name,last_name,email,passowrd).I login in to my site using email and password. on the top right in header section of index/home page ..first_name should display of same user whose email is entered...i:e…
0
votes
1 answer

Different layout for login page in yii framework

I have login page that i want to call after index.but login and index have same layout. My requirement is that when i run locathost/demo/index.php all tha login and other related pages display on same index.php layout.But i want to run only single…
0
votes
3 answers

View another attribute of related table - yii

I want to display country name instead of country id in user profile view( country id is FK in user profile tbl) . anyone can help me with this ? This is my view controller/action in which I have Country model as well: public function…
Shumaila Khan
  • 91
  • 1
  • 5
  • 19
0
votes
2 answers

how to add a parent table value CGridView using yii

Currently my CGridView gives following result. http://imageshack.us/a/img821/2391/44264318.png Here City is actually CityID From a parent table. City table has one-to-many relationship with Campus table. I want to show city.cityname instead of…
ali asad
  • 1,329
  • 4
  • 17
  • 23
0
votes
2 answers

Yii set not beign called before beforeSave?

Small issue.. I have a table that stores some system varables as a serialized array.. In my model i have to functions for setting and getting this field into a readable form. they are: public function setoptPramasString($value){ …
Tom T
  • 432
  • 1
  • 7
  • 21
0
votes
0 answers

Yii::app()->getModule('user') is not returning the right value view/layout/main.php

Yii::app()->getModule('user') is not returning the right value in view/layouts/main.php I am using Yii-User YII-User Extension to manage the User related features. When I Yii::app()->getModule('user')->loginUrl, I get Trying to get property of…
indianwebdevil
  • 4,879
  • 7
  • 37
  • 51
0
votes
1 answer

Yii CActiveForm CheckBox not displayed correctly

I'm new using Yii framework. I show a list a checkbox. But it's not displayed correctly. Here is what I want: http://imageshack.us/photo/my-images/703/checkboxgood.png But, here is what I get:…
rahmat
  • 1,727
  • 16
  • 35
0
votes
1 answer

"Unable to resolve the request" after moving to a new directory

I have a website that's running correctly, now to setup a beta environment I copied the whole structure into a subfolder. So instead of var/www I have var/www/beta/. This worked on my old server but on my new one its throwing me the "Unable to…
xStoryTeller
  • 51
  • 1
  • 7
-1
votes
6 answers

How to check is it a backend URL

'urlManagerBackend' => [ 'class' => 'yii\web\urlManager', 'baseUrl' => 'http://backend.test', 'enablePrettyUrl' => true, 'showScriptName' => true, ], then I want to display the image saved under uploads…
-1
votes
1 answer

How to make reusable code in yii 1.1 between controller and command?

What is the best way to reuse code between controller and command? I have some use where the very same logic should be executed inside controller and in command as well. What is the best approach to share code? To create a component and the call…
gandra404
  • 5,727
  • 10
  • 52
  • 76
-1
votes
1 answer

How to select subcategory items with a category name in php MYSQL

This is my Code I am using yii framework. how do I show all the Sub category with category_name for the Category table ? [This is the Category Table with the items][1] [This is the Sub Category Table with the items it has the cat_id and merchant_id…
joe mrema
  • 1
  • 6
-1
votes
1 answer

how to use mail function in yii

I am a newbie in Yii Framework and creating a first yii app. I am trying to send a mail in yii 1.1.14 but not understand how to use in yii.
Daniyal
  • 184
  • 5
  • 24
-1
votes
1 answer

Dynamically Show View in yii2 advance

Hello i am working on web application in yii2 advance.i am new in yii2 development. In this project i want to show some part of body refreshed ajax request like in facebook when we click on Home just post area refresh, In my application i want…
-1
votes
1 answer

use another language message from dektrium yii2 users

I want use another language message in dektrium yii2 users this plugin have "fa_IR' language messege but i cant change language message from english to another language I think i must change language from here but dosnt work : 'user' => [ …
Saltern
  • 1,305
  • 2
  • 16
  • 42
1 2 3
28
29