To use this "how-to", you need to install phing in your machine.
To use this "how-to", you need to install phing in your machine.
It is a common case coders often come accross. For example the purpose of these checkbox is to mark records to be deleted
>One-page Web Application built with AngularJS,TypeScript,and Yii framework.
This is a tutorial to work with radioButtonList which will handle enum datatype. Form design and validation both are detailed here.
Hello Yii friends
Many people want to use downloaded extensions in their own way. As for me most of the extensions require me to correct Yii::import()
instructions inside their source code. All these extensions are directory dependent. To avoid the situation described above, I suggest to implement pseudo-anonymous aliases:
// take the curr...
find doubletts by db fields. in this example i will check doublets for 3 tabelfields (col1,col2,col3). so i will get a subquery with the condition, select and grouping of the tablefields. the having with COUNT() > 1 means: find all records more then one result.
$model=new MyModel('search');
$model->unsetAttributes();
After enabling the Gii module in your protected/config/main.php
file and then try to use it with http://example.com/index.php?r=gii
, you get an error:
~~~
Error 403
You are not allowed to access this page.
~~~
This is almost certainly caused by the IP filtering mechanism that Gii uses to protect your system from outsiders - by default it allows localhost
only (both IPv4 and IPv6), and r...
Here you learn to create and set a simple ahref-link to logout the current user.
If you are lucky enough and have the privilege to develop on a Linux based environment, this little tip might boost-up your TDD process (at least the Unit Testing part). Please note, that this should work just fine with Apple computers also, but not tested!
Occasionally one wishes to set systemwide parameters for an application, such as a contact address for email, an application name, or setting an option that guides major behavior. Yii provides for setting of static parameters in the configuration file, and this article talks about how to do it conveniently.
Checkboxes have two possible values, true
and false
, but some applications require that the user select one particular value before proceeding. Examples might be:
When creating web-application projects, you can add a great variety of different extensions, modules, plugins or scripts to your code-base. But maintaining a stable combination and updating certain packages can become a hard task.
When I used CJuiTabs I did something. They are
This page intends to provide an exhaustive guide of how to use Javascript (JS) in Yii. It does not explain how to learn coding in JS, but how to deal with it "the Yii way".
You have to extend the widget class and configure it for user login widget
I've seen a lot of people asking about the logging facilities in Yii and thought I'd share a nice little class I wrote that provides near real-time logging.
Create a folder where to place an Yii app under wordpress folder (mine is "yii')
Sometime we need to display numbers of items per page with their counting as a serial number.
// In Yii 1.x $form = $this->beginWidget('CActiveForm', [
'id' => 'order-search-form',
'method' => 'get',
]);
echo $form->textInput($searchModel, 'id');
echo CHtml::submitButton('Find', ['class' => 'btn btn-primary']);
$this->endWidget();
`