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...
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 ...
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...
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...
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...
It's introduction is here:
http://www.yiiframework.com/demos/
But what's that virtual server image for ?
...
Did they implement it themselves?
...
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 ...
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...
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?
Thx
...
How to get response as json format(application/json) in 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.
...
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 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)...
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 about its position, css, template?
...
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 ...
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 ...
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'),
...