My CMS supports multiple sites using one code base therefore the db connection can only be configured by detecting the site's domain.
My CMS supports multiple sites using one code base therefore the db connection can only be configured by detecting the site's domain.
I have had to do this a couple of times now so I figured I would share it with the community. I am going to keep this short because I really hope that you are familiar with jQueryUI's Sortable class before starting this tutorial.
Something a good application cant miss is documentation, and what would be better than some nice formatted HTML documentation that can be auto-generated from your code, we know several tools that already do this like phpDocumentor, but today we are introducing Yii Docs Generator...
The easiest way to customize look and behaviour of them is to use series of CButtonColumn properties, like: updateButtonImageUrl (path to image for update button), updateButtonLabel (label for the update button; not HTML-encoded), updateButtonOptions (HTML options for this button, used in the way as many htmlOptions property for many widgets) and updateButtonUrl (a PHP expresion th...
In this article I will show you how to implement a secure password hashing mechanism in your Yii projects using a bCrypt class.
Since version 1.0.4, Yii developers can make use of the image gallery provided by Sebastian Tshan, a great javascript developer that has created some true gems like the jquery file upload plugin.
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.
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.
Sometimes the right place to store application data is in a join table. For example, movie viewers either like or don’t like the movies they watched.
Some times the core validation rules provided by Yii won't satisfy all your needs, so you'll need to create your very own validation rule.
So here is my complete solution - note that I'm using the 'short' date format throughout.
If you use yiic to generate webApplication there will be a layout folder under the protected/views/, and the Controller class under protected/components which will use by default these layouts files.
This will call the controller function using AJAX instead of redirecting the user to the url using GET parameters.
First things first,follow the instructions in fr0d0z's article to set up WordPress.Regarding the WpController,I did not use an index view.So the code for WpController is
class WpController extends Controller
{
public function init()
{
// note that we disable the layout
$this->layout = false;
parent::init();
}
Here I am describing how you can install and update Yii in WAMP sever.
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
In this article, we introduce an approach that allows automatic hyphenation of the route part in URLs.