I was looking around wiki and found that was no approach as the one I did so I guessed this is worth to write.
I was looking around wiki and found that was no approach as the one I did so I guessed this is worth to write.
Whatever reason, it turns out to be easy enough to add that feature to your application. :)
I have two tables called hospitals and departments. I have a junction table between them which holds the departments in each hospital. But sometimes I need a list of "All hospitals with All possible departments" - regardless of whether they are linked in the junction table or not.
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.
Remember-filters-gridview is one of the must-use extension on all of my project. However, it lacks of storing the page and sort variables of the grid view.
This is a simple example of how we can display images in CGridviews.Imagine that you have an image field in your table ie either a location field or a blob type field used to store the images.
I needed a csv export function for my cgridview and I wanted to export the entire result set of the sorted and filtered cgridview the user was viewing via ajax.
There are scenarios when you work with DVCS (like [Mercurial]( http://mercurial.selenic.com/) or [Git]( http://git-scm.com/)) and CDbMessageSource. To my experience keeping the development database and production database in sync can be very...
Suppose you have an Application in Yii that manages hotels each one has many customers.
There are a couple of ways to achieve this, but the first is preferred.
Normally when we want users to download a file, that file is put in a folder under the web application root and the web server does the rest.
by: Christian Salazar (bluyell, @salazachris74, christiansalazarh@gmail.com)
If you tried this extension with success, maybe you thought how to do it without page submission or ajax calls.
Cookie management in Yii is easy, but may not be so obvious for the beginners to this framework, so I wrote this simple article to clear some doubts out.
Here I am describing how you can install and update Yii in WAMP sever.
A big problem I've hit with the Yii-Bootstrap extension is that all AJAX requests are initializing Bootstrap because of preload. This is a huge waste of resources, especially when using AJAX-based file uploaders that split the file into chunks. Large file uploads using that method could be initializing bootstrap hundreds of times.
An application component is a confortable way for share information among all component of the application
I used another example posted here a while back where the person was modifying the index.php and adding in a switch case for different domains and loading separate config files. This was actually too much for me, because all my portals are the exact same (as far as routes, modules, extensions, etc) and if I ever wanted to add another route it wouldn't be feasible opening up all the config files t...
Stores session data in database and transfer data when session is destroy. Uses for check users online, user's last activity and last ip.