yii

Is there a codeigniter api reference?

whenever using a framework it's so good with a api reference so you could lookup the classes' methods and properties, which class they extend from and so on. is there a api reference for codeigniter similar to yii's excellent api referenc? http://www.yiiframework.com/doc/api/ how else could you know more about the details about the c...

Why each request with activerecord is doing SHOW TABLE?

My test page is processed if believe to trace in 46 ms, while 11 of them I am doing this 20:53:06.111597 system.db.CDbConnection Opening DB connection 20:53:06.118046 system.db.CDbCommand Querying SQL: SHOW COLUMNS FROM `questions` 20:53:06.122476 system.db.CDbCommand Querying SQL: SHOW CREATE TABLE `questions` Is this ...

Facebook failing on XFBML call using Yii Framework

I have used this same call in other IFRAME Facebook apps, but it gives me nothing at all in terms of output. I am trying it on Yii and getting nothing. <script type="text/javascript"> window.onload = function() { FB_RequireFeatures(["XFBML"], function() { FB.init('xxxxxx', 'xd_receiver.htm'); FB.XFBML.Host.get_are...

Update CGridView when a dropdown value changes

I have a CGridView with columns from a table "product" => {'product_id','category_id',...} I have another table "category" => {'category_id','category_name'} category_id is the FK in the product table. Now i want a dropdown list of the category table and on selecting a particular value the CGridView of product should be updated to sho...

Yii PHP Framework- Implementation

I was just curious if Yii is supposed to be compiled into PHP or not. Is it possible to use Yii just by copying the Framework to a folder on the server and then including something (something as in one of the yii files- I am not sure how it works) in the scripts I wish to use the framework for? (Noob when it comes to frameworks and usag...

What's the exact purpose of Yii Appliance?

It's introduction is here: http://www.yiiframework.com/demos/ But what's that virtual server image for ? ...

What's the ORM used by yii?

Did they implement it themselves? ...

yiic webapp problem

hi, i'm still new to yii framework. so, i want to try running yiic so that i could see the structure of the files created. but, i could not run it in console. Does anyone have a solution? thanks. I'm using wamp on win xp. i go to the directory of the yiic framework its in D:\wamp\www\framework\ and run yiic and any other variations ...

Yii framework: Controller/Action url & parameters

In my application I have "ApiController" with "actionUsers", so in Yii the path becomes api/users. Now in order to get certain users info I use the following path api/users/id/10 where 10 is the userID and id part of the path is basically a GET parameter (api/users?id=10). Is there any way to do the same thing without id part of the pat...

Foreign Key Relationships and "belongs to many"

edit - Based on the responses below, I'm going to revisit my design. I think I can avoid this mess by being a little bit more clever with how I set out my business objects and rules. Thanks everyone for your help! -- I have the following model: S belongs to T T has many S A,B,C,D,E (etc) have 1 T each, so the T should belong to each...

How to get SOAP Client Request Header by Yii?

How to get SOAP Client Request Header by Yii? Thx ...

How to get response as json format(application/json) in yii?

How to get response as json format(application/json) in yii? ...

Getting model name from model instance YII

How can i get model name from model instance. For e.x. $model=new State; here, State is model $model is State model instance. I want to get model name i.e State from $model i.e model instance. ...

Calling a method within Portlet when submitting form

I have a Portlet that contains a form. Now what I want to achieve is the following. 1) A Porlet containing a form is called within a page via <?php $this->widget('form'); ?> 2) The user fills in this form and clicks on submit "The submit button should be an ajax button" 3) When submit has been pressed the form should call a method wi...

Yii CRUD acting funky and not working

Yii Crud is ENRAGINGME I did yiic shell "/path/to/my/app" model * crud users I cannot add or update users. I can list them, and delete them. Also I thought I was supposed to see the primary keys and shit wtf homie wtf CREATE TABLE IF NOT EXISTS `users` ( `user_id` int(11) NOT NULL auto_increment, `user_username` varchar(25)...

how to do multi insert and obtain ids

hi, I want to insert some data into a table (id PK autoincrement, val) with use multi insert INSERT INTO tab (val) VALUES (1), (2), (3) Is it possible to obtain a table of last inserted ids? I'm asking becouse I'm not sure if all will in this form: (n, n+1, n+2). I use mysql inodb. ...

How to customize Yii CGridView Pager?

How to customize Yii CGridView Pager about its position, css, template? ...

User settings mechanism for Yii

Hi guys! I need some help with user settings mechanism for my Yii-based application. I've created the following db structure to store user settings: table user with the following fields id | username | email | etc. table settingslist (to store a list of all possible settings with descriptions) with the following fields id | code ...

PHP Frameworks: Codeigniter vs. Yii vs. Custom?

Hi everybody, I have used codeigniter for a some years now. Why I chosed to work with codeigniter back then? Pretty much for the extensive documentation that were available and the big user community. It made me as a totally newbie to the MVC pattern able to get a site up and running really fast. I think what is priorited from my side ...

How to pass arguments to access rules expressions in yii framework controlers

ow to pass arguments to accessRules experessions The code below doesn't work becouse $owner_id is not defined in class where expression is evaluated. Any ideas how to fix it? public function accessRules(){ $owner_id = $this->loadModel()->owner_id; return array( ... array('allow', 'actions'=>array('update'), ...