yii-components Questions
10
Solved
Yii1.1 had a CComponent class that had a CBaseController which was the base class for CController. There was a /protected/components/Controller.php class which enabled any function in that class to...
Post asked 27/7, 2015 at 11:14
2
Solved
I have few migrations files.How can I run single migration down or up, if this migration isn't the newest, but some steps in the migrations history?
When I run yiic migrate up 1, it runs the lates...
Dickman asked 22/2, 2014 at 8:27
3
I have developed Angular & Yii2 REST service. Have problem in cross domain.
Here below add my angular & Yii2 REST Code.
AngularJs : (like 'http://organization1.example.com','http://organi...
Longsuffering asked 12/2, 2016 at 9:47
3
Solved
As you know in Yii2 the core messages are available in 26 languages. I want to change yii core message language to display validation message in my language.
I added this line to my config file:
...
Clorindaclorinde asked 18/7, 2014 at 5:22
3
Solved
Yii provides sorting functionality for listing. How can I disable sorting so that my records will not get sorted when clicked on column header?
Kattie asked 1/10, 2012 at 6:34
5
Solved
I want to get the current controller name that handles the current action.
but the in my case I will look for the current controller in my main.php in my layout files.
this is my small view of my ...
Cicely asked 6/3, 2012 at 10:55
6
How to validate email using Yii Model validation rules function code.
Also how to check email exist or not using Model validation rules function in Yii.
Armidaarmiger asked 8/10, 2012 at 8:55
5
Solved
I am creating a website which runs on https.. But when i create absolute url using
echo Yii::app()->createAbsoluteUrl('site/index');
it always return http://mydomainname.com/site/index.
my e...
Elke asked 4/11, 2013 at 4:34
2
Solved
I have a massive query that is generated using CDbCriteria as shown below:-
$schema = Yii::app()->db->schema;
$builder = $schema->commandBuilder;
// how to echo out this query?
$command ...
Demott asked 26/10, 2015 at 11:7
4
Solved
I am using yii 2.0 Framework.
How i can make options from my database.
I found this, but it's yii 1.1:
<?php echo CHtml::dropDownList('listname', $select,
array('M' => 'Male', 'F' => '...
Skijoring asked 27/10, 2014 at 18:12
3
I have two project in yii framework and I want to use both project using SimpleSAMLphp with SSO. The condition, I need is if I login from the first project, i want access to the second project.
Tha...
Humoresque asked 3/4, 2014 at 6:2
3
Solved
I want to get multiplie instance of the same model in my controller. I saw this wiki for Yii 1.1 and tried like that but in my code only last instance in form was acceble from controller my code is...
Fomentation asked 19/7, 2014 at 6:32
2
Solved
I'd like to use a couple of attributes from within a model as textField. Something like this:
$form->dropDownList(
$formModel,
'ref_attribute',
CHtml::listData(
User::model()->findAll(...
Yah asked 14/3, 2012 at 10:49
2
I have a problem with CJuiDatePicker in the module JQRelcopy on Yii framework.
I use this module as I have a form with a datepicker field to be copied as many times as the user wishes.
The module w...
Devious asked 29/11, 2012 at 13:50
3
Solved
what is the benefit of below code that is two events.
what its actually doing ??
require_once($yii);
$app = Yii::createWebApplication($config);
Yii::app()->onBeginRequest = function($event)
{
...
Revocable asked 11/6, 2012 at 7:20
3
Solved
I want to display CGridView component with all records as a link to its related Update page.
I want the functionality of edit button at the end of every row, applied to whole row.
If I click anyw...
Dittmer asked 3/1, 2012 at 13:48
2
Solved
I am new to Yii framework, and just came across module, extension & component inside protected folder.
Can anyone please differentiate all these theoretically as well as practically also.
Scorpius asked 3/1, 2013 at 13:4
1
Solved
I have edited Url manager to provide SEO friendly urls but getting problem when the url have values with special characters such as . or () or - or any other special character
http://localhost/nbn...
Catenane asked 15/12, 2012 at 15:59
1
Solved
I have the following Models :
User with columns {id,user_name,password,user_type}
Admin with columns {id,user_id,full_name,.....etc}
Editor with columns {id, user_id,full_name,...etc}
and the r...
Gadid asked 6/5, 2012 at 17:40
2
Solved
From this page,
http://www.yiiframework.com/wiki/23/how-to-create-a-breadcrumb-widget/
It seems it suggests that we should put the files in the component folder. But if my widget contains javascr...
Detwiler asked 30/12, 2011 at 11:25
3
Solved
I want to know what is the difference in between modules and components in Yii Framework. I have googled so much but not got any good results. So can some one will help me out to know that. Any hel...
Niello asked 8/12, 2011 at 14:41
1
Solved
I'm a little bit confused about the purpose of components and extensions folders in protected/
Please clarify.
Caducous asked 8/12, 2011 at 4:29
2
Solved
Commando need's help from you.
I have a controller in Yii:
class PageController extends Controller {
public function actionSOMETHING_MAGIC($pagename) {
// Commando will to rendering,etc from he...
Hydromel asked 14/6, 2011 at 22:13
1
© 2022 - 2024 — McMap. All rights reserved.