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

How to call yii component useridentity class from controller

I am trying to create a simple login using Yii Here is my auth controller class AuthController extends Controller { /** * Declare class-based actions. */ public function actionLogin() { $model = new LoginForm; …
Prabhakaran
  • 3,900
  • 15
  • 46
  • 113
0
votes
1 answer

yii framework : How to access a class inside a layout(/protected/views/layout) file?

I have a class with some static helper methods. I want to use these methods from the layout file. These methods contain some common code used by all layout files. Even putting the class in 'components' folder does not solve the problem.
Anish Singh
  • 881
  • 1
  • 13
  • 33
0
votes
2 answers

CGridView limited to 90 records

Yii 1.1.14 When my table holds more than 90 records, CGridView will fail to load the newest records. When I delete some records, and bring the total below 90, it will again show me the most recent records. How do I get CGridView to show the newest…
Ivo Renkema
  • 2,188
  • 1
  • 29
  • 40
0
votes
2 answers

How can integrate login form of YII user module in layout/main.php

How can integrate login form of YII user module in layout/main.php I would like to know how can use login form and registration form in Yii user module into layouts/main.php like facebook index page.If anyone can please give me the details.. Thanks…
0
votes
1 answer

Username instead of id in URL - yii-user

I am using "yii-user" (modules/user), now the user url is mysite.com/user/user/view/id/1 and I want change to mysite.com/profile/username User controller is : public function actionView() { $model = $this->loadModel(); …
Swissa Yaakov
  • 186
  • 3
  • 15
0
votes
1 answer

Edit profile page with 3 tables - Yii frameworks

I am new on Yii framework, so please i need some help where to start. What i need is, action and module to display a form to a user, which his will be able to edit is own profile (with profile picture), so i have 3 table user_account ||…
0
votes
1 answer

Install Jquery files in yii

I searched all over internet and I still don't have a clue how to install it, I used the calls to jquery files but doesn't work, I have found in many places that you have to use registerscriptcore('jquery'); I put it in my layout but still doesn't…
Oscar Reyes
  • 4,223
  • 8
  • 41
  • 75
0
votes
1 answer

Yii assigning foreign key value using user Identity object

In my web application I have 3 tables user types named producer_offer,consumer_req,admin, and a user table, producer,consumer . The relationship user.id=producer_offer.offered_by user.id=consumer_req.requested_by Basically based on the user logged…
user2492854
  • 401
  • 2
  • 12
  • 32
0
votes
1 answer

How to use CHtml::link(); inside "
  • " in Yii?

    I need to use CHtml::link() inside " ". Here is my existing code: $html .="
  • \n ".$menu['items'][$itemId]['label']." \n"; $html .=…
  • user3273871
    • 53
    • 1
    • 5
    0
    votes
    2 answers

    Create CDBcriteria in yii

    How to create cdbcriteria fo the query like : select * from table_name where 'profile_type'='*'OR 'profile_type'=$usertype AND 'location'='*'OR 'location'=$country
    0
    votes
    1 answer

    Managing user files on Yii

    I have been using Yii for a few months. I am working on a mid-size project that handles users, groups and some interaction between users (By example, users can make proposals in their groups, other users can comment on proposals, there are group…
    jeanc
    • 4,563
    • 4
    • 22
    • 27
    0
    votes
    1 answer

    Yii generate xml and show in html formatted

    I need to generate sitemap for one of my Yii website. There is only 3 controller that needs to show in xml, Productscontroll,Blogscontroll,Categorycontroll, what is a best way to generate exml and show in html?
    Muhammad Shahzad
    • 9,340
    • 21
    • 86
    • 130
    0
    votes
    2 answers

    Loading indicator in yii form submit

    In yii form submit i would like to add a loading indicator till the form submission. Now the form contain file field and can't use ajaxsubmit button. How can i add loading indicator in normal form submit button? Thanks form code
    user2198047
    • 9
    • 1
    • 6
    0
    votes
    2 answers

    How change the url query in the controller

    I want to change the address of the page requested from the controller. For example: when prompted site / edit return site/edit/12 where 12 - is a number of model. Of course I can use the redirect, but can be a way to do it is not use a…
    gregman
    • 332
    • 1
    • 11
    0
    votes
    2 answers

    I've installed EOAUTH extension, i can authenticate with google, but I'm wondering how to get user information after that

    Wishing You a Happy New year I start with my first problem of the year here's what I do in login method of user controller: Yii::import('ext.eoauth.*'); $ui = new EOAuthUserIdentity( array( …
    sonorita
    • 771
    • 2
    • 8
    • 20