Nested set
This extension allows AR models to work with nested sets tree. http://www.yiiframework.com/extension/nestedsetbehavior/ Can be used with...
View ArticlePrint_R()
Hi frined, If u do not use this echo "<pre>"; print_r($arr); echo "</pre>"; then u can use this below function put your common file function p($ob, $f=1) { print "<pre>";...
View ArticleRules() -> Safe -> Opinion!
Hello guys, i need some clarification/opinion about the 'safe' rule on attributes. I'm seeing some people using 'safe' on created/updated attributes for insert/update scenarios. As you know, we should...
View ArticlePartial Render View from Module to main directory
Problem 1 I want to renderPartial a view from modules. Actual directory structure is protected/modules/staff/views/myplacedeals/create.php is the file that needs to be rendered in...
View ArticleBinding Urls With Action
Hi all, I am trying to create CRUD operations to a table with composite keys, In my controller i have overridden the conventional set of functions to accept two parameters. The create action gets...
View ArticleDropdown Multiselect Values How To Save
in my application i used two dropdown multiselect option iam using how to save in controller side please help anybody
View ArticleВопрос Про Renderpartial
Для чего вьюхи подключаемые этим способом обычно именуют начиная с _ ? $this->renderPartial('_topMenu')
View ArticleTables Joining Without Relationship
Hi all., can we join 2 tables without relationship..?? i have tbl_a(id, name)(model name=one) tbl_b(did,name) (model name=two) when i try to create 1 record in model one ., i should fetch names from...
View ArticleAdd Datepicker In Cform
Hi, All, I want to add a datepicker (like CJuiDatePicker) into one element in CForm. public function getForm() { $return=new CForm(array( 'showErrorSummary'=>true, 'elements'=>array(...
View ArticleUpdate After Save (Infinitive Loop)
Hi I have a model related by another one the schema's are: model1: id, default_model2_id (null is permitted) model2: id, model1_id (is required!) I want to save them but there is a problem If the first...
View ArticleUse Widget Without View
Hi, I am a newbie at Yii. I am trying to create a widget which gets the RSS feed. It is working fine, but I want to know am I doing it the right way? /protected/components/TestWidget.php class...
View ArticleFilter And Sort A Column Fed By A Many_Many Relation
Hi all, I try to implement possibilities for user to sort and filter columns displaying field from a many_many relation. I try to follow this wiki...
View ArticleTrouble With Createcommand And Now()
hello forum! i want to execute this query $query = 'INSERT INTO Pedidos (OrdenCompra, Cliente, Fecha, Anulado) VALUES (' . (int)$id . ', ' . Yii::app()->user->id . ', NOW(), 0)'; $query =...
View ArticleDoes This Work With Phpstorm?
Does this work with phpStorm? I currently have a plugin for Yii installed in my installation of phpstorm, but it does not include a lot of what is available with this plugin. Can I install this with...
View ArticleNewbie: Render Json Of A Model In Controller Action
Hello, well I am new to Yii and have a problem: I am sending a ajax POST request (with firstname and lastname parameters) from a Jquery Mobile app to the Yii WorkerController's actionJSON() function....
View ArticleHow To Use Yii Cauthmanager ,cphpauthmanager
Hi, I have waste my lots of time to clearing , how to use Yii CAuthManager ,CPhpAuthManager but not get any idea, How can i start this,where I can put this code: $ Auth = Yii :: app () ->...
View Article[EXTENSION] simpleWorkflow
Hi all, have you ever had to handle a 'status' attribute in one of your model ? And how many values this 'status' could have :2, 5, 42 ? The Yii blog Demo application uses 3 statuses for its Post...
View ArticleHow can I give all dropDownList the same width?
Hello, I need to give all dropDownList in _form and _search the same width. How can I do that? Thanks.
View ArticleYiibooster: Tbactiveform Related
I am using Yiibooster and want to place more than one form elements on a single row. What is the method for that?
View Article