In this article you will find Yii framework extensions enabling you to add various charts/print out buttons etc. to your webapp.
In this article you will find Yii framework extensions enabling you to add various charts/print out buttons etc. to your webapp.
Hi, I was having problems each time I had to test the site or edit something on my local machine, like changing the db connection, change the debug mode to false, the trace level to 0, disable Gii, etc. So I created a class to resolve all my problems, hope to help you in your projects!
Hello ppl. Even though i have a small experience with yii I though of writing this to help people which want to do something similar.
From: http://lacot.org/ and me.
This example uses a MySQL DB with a table named tree
with the fields id
, name
, and parent_id
. The parent_id
will be NULL
for root elements. The SQL is kept simple (no autoinc, no FK, etc).
In this tutorial we will be setting up a content type to be ordered by weight using the JUI Sortable plugin.
p.s. latest version of this tutorial is always available unter the docs/ folder of the User Management Module.
In this post I am going to describe a solution to make your yii-based web application safe from illegal content injections.
A simple trick to get the localized version of a model field is to add this little method to your models.
In this cookbook I will attempt to explain how to use the lightweight version of Role-Based Access Control using a php file. This version does not use database but a php file and is controlled by CPhpAuthManager class.
In this guide I will explain best practise regarding performance in MySQL, PHP and of course our loved Yii Framework. Since this is a complex topic, I will start with some basics and then expand this guide from time to time. Since this wiki can become big, you may click on View history
- there you can see what changes have been made, so you don't miss anything.
Previously there was described a way to build an application with front-end and back-end. I would like to continue this theme and suggest another way to organize directories using WebApplicationEnd behavior.
Yii does not have an LDAP class itself, but its very easy to implement LDAP in the stock UserIdentity class.
Note: Please also take a look at the newer EMenu extension. This works even better that the deprecated CDropDownMenu!
This little tutorial explains a way how you can retrieve more parameters from Yii::app()->user by adding a component that extends CWebUser and retrieves the user information from database table named User.
The purpose of this post is to let anyone quickly find how to accomplish a configuration task, and list here all the posibilities of the config.php file and also link to pages that explain how is each thing implemented.
During development, it's often very handy to have SQL logging and profiling.
This is a reference to be used for Model rule validation and is compiled from the Yii documentation and code. The purpose is to have all the information gathered in one place instead of scattered. This reference is not an intro. See The Definitive Guide to Yii, Declaring Validation Rules for a tutorial.
This guide is for more or less advanced users. If you just started with Yii or didn't worked with any web-framework before, you may should come back later :-)
If we want to set meta tags on a per page (controller-action) basis, we may use the clientScript application component.