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
2
votes
1 answer

How to call a function inside yii framework controller from core php file?

I am working in yii framework.I am getting stuck at a point where I have to call a function inside controller in yii framework from core php file. Actually I am going to create html snapshot. my folder structure is seoPravin-- --protected …
Pravin Mane
  • 529
  • 4
  • 13
  • 25
2
votes
1 answer

Yii: difference between access control and filters in controller

What is main difference between these two components in yii. Their purpose seems same to me. If access control is used to restrict some type of users on specific action then filters can also stop execution of an action for specific user i.e. if user…
Ejaz Karim
  • 3,676
  • 6
  • 36
  • 49
2
votes
1 answer

delete image from folder when new image is uploaded for php yiiframework

I am quite new to php yiiframework. I have users model where it takes users basic information including profile image but i have to delete a image file when I updates new image for my profile. I uploaded file by using following method. public…
r15
  • 486
  • 1
  • 8
  • 22
2
votes
1 answer

Why CFormModel::validate needs in tableName?

I have ChangeEmailForm extending CFormModel:
frops
  • 2,196
  • 4
  • 29
  • 42
2
votes
2 answers

Constructing a CComponent

BranchSalaries is a class derived from CComponent. It has get/set methods for month and year properties. The following code does not work (more specifically, does not initialize year and month properties): new…
porton
  • 5,214
  • 11
  • 47
  • 95
2
votes
4 answers

Using $this when not in object context in Yii

Iam getting an error like Fatal error: Using $this when not in object context in ..\controllers\ServiceRequestController.php on line 661 when calling a view file using controller action from EasyTabs extension. Iam calling the controller action like…
anu
  • 458
  • 2
  • 13
  • 36
2
votes
1 answer

Mailchimp API and YII framework

Has anyone used Mailchimp api with YII framework? Is there an well documented extension? I found an extension but it has no documentation https://github.com/jamesmoey/Yii-MailChimp.
2
votes
1 answer

Storing HTTP status code with YII COutputCache

We are using the YII framework, and use the COutputCache for caching the results of a RESTful webservice. RESTful webservices use different HTTP status codes to indicate wether an action was performed successful or not. Unfortunately, HTTP status…
dbroeks
  • 180
  • 1
  • 9
2
votes
1 answer

how to use gii generator with modules in yii framework?

i am using the gii generator to create a module. the issue is when i try to create a form or some model for that module... i can't tell it to generate those files in that module... it only does it in the main application folders. any ideas? thanks.
Patrioticcow
  • 26,422
  • 75
  • 217
  • 337
2
votes
3 answers

Credit card transactions in Yii

How can we implement credit card transactions in Yii?
anu
  • 458
  • 2
  • 13
  • 36
2
votes
1 answer

How to define alias variable in yii?

How to define alias variable in yii? In my yii app their are 3 types of role, super-admin admin, user, super admin can do admin functionalists and some more things, so how can i define a alias role super-admin==admin but not vise-versa
raghul
  • 1,480
  • 6
  • 22
  • 39
2
votes
2 answers

Facing difficulties to activate user registration by email in Yii

I am facing problem to activate an user by click on activation link that sent by email. After click on activation link i.e. http://www.example.com/devtest/index.php?r=user/check&activationcode=bc74873d0e3f684d3e6b99a36169a793ee688406 then it…
user1216487
2
votes
1 answer

How to Split a form in subsections in yii to achieve partial submit of a single form

i have a model with all the fields about user info. and with crud generator i created views and modified the view, form view, as below Here i have hidden the editing profile part and when user clicks on edit it shows popup and editfields options.…
Bipin Chandra Tripathi
  • 2,550
  • 4
  • 28
  • 45
2
votes
4 answers

Firebug error: jQuery is not defined - in yii app

I'm using Yii Framework v1.1.10r3566. I'm noticing in Firebug that the generated code is producing an error. It says "jQuery is not defined" and the line has a function "jQuery(function($)". It is occurring on multiple pages and I believe that it is…
nimble
  • 157
  • 2
  • 7
2
votes
1 answer

Yii user authentication and session not working

I am building a website in Yii and I am stuck at the user authentication step. Whatever i do I am not able to authenticate users or store some value in the session. My UserIdentity component is as follows: class UserIdentity extends CUserIdentity { …
ajaybc
  • 4,049
  • 7
  • 44
  • 57