Gii provides us normally with the following code on the 'actionCreate':
public function actionCreate()
{
$model=new ModelName;
Gii provides us normally with the following code on the 'actionCreate':
public function actionCreate()
{
$model=new ModelName;
This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.
I discovered Twitter Bootstrap almost two years ago. After trying it out for a while I fell in love with it. It didn't take long before I realized that it would be great to write an extension that allowed developers to start using Bootstrap in their Yii projects. One night I sat down and started writing what later became my now popular [bootstrap extension](http://ww...
I've seen many tickets regarding how to show friendly delete confirmation using CGridView's CButtonColumn in ajax request. If you are using relational database, after producing CRUD functionality when you try to delete a record in ajax mode which has child record it can't be deleted and you can see the ajax loader forever. By this way you can't show the users if a record has been successfully dele...
If you like the things to be short and clear, then you can skip right to a short summary of instructions at the end of this article.
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
class Post extends CActiveRecord {
...
}
`
When you list Authors in grid you would like to print the count of posts in column, allow sorting on this column and probably filtering by the count.
Using CActiveRecord->updateAll() and CActiveRecord->deleteAll() with scopes and criteria requires some tricks that are explained in this article. While findAll() , find() and some other methods use scopes automatically, updateAll() and deleteAll() do not.
If in your application you have to proceed to a complex SQL query that is not associated to a model, you will use CDbDataReader like it is described in the Yii documentation. An example could be
All done, now we can call all the actionProvider actions as controllerID/actionPrefix.actionID. Here is the example:
Assalamualaikum wr.wb Hello yii people i'm Muhammad Fahmi Azain this is tutorial about forgot password in yii framework, and i'm sorry if it does not comply with code standards yii. okay let's begin
Hi Friends, In this tutorial you can use the eajaxupload-extension ,
In this How-To I'll show you:
I was looking around wiki and found that was no approach as the one I did so I guessed this is worth to write.
My goal here is to Open bootstrap modal and load ANY content using ajax response.
Let's say you have an internal messaging system in your webapp, and you want to display messages dynamically and real-time to the relevant recipients.
We can use a CJuiDatePicker for a CGridView inline filter.
I had created one controller file which can create sitemap.xml file(which is used for seo, google crawler and many other puropse) dynamically with one run.
This had me stumped for a while so I figured it would be nice to share here to avoid others the grief.