Tuesday, December 30, 2014

Remove index.php from url YII

Standard
create .htaccess under www-->yiisitename  add following code on .htaccess Options +FollowSymLinks IndexIgnore */* RewriteEngine on # if a directory or a file exists, use it directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # otherwise forward it to index.php RewriteRule...

Wednesday, December 17, 2014

Tuesday, December 16, 2014

create CSV report in DB data YII

Standard
hi guys this is my testing code about yii  CSV report i created data table name as deal  and i created Deal control & crud this is my data table CREATE TABLE IF NOT EXISTS `deals` ( `DealId` int(11) NOT NULL AUTO_INCREMENT, `DealName` varchar(255) NOT NULL, `Dealdescription`...

Monday, December 8, 2014

YII ACCESS RULES from data base

Standard
this is represent haw add user access for specific users in to page i have 2 table  1.user table 2.user level table user table CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(20) NOT NULL, `password` varchar(128) NOT NULL, `email`...

Friday, December 5, 2014

Yii User access rules

Standard
this for YII USER MODULE Load and store the user's data every time a page is requested. To do this, modify the Controller class as follows: i added this on  compound controller becouse  All controller classes for this application should extend from this base class. public...

Thursday, December 4, 2014

YII Send Email & get Template content from database Part -2

Standard
see part-1 i created template folder on view & create file name as user_registation.php sample email template by channa smcs add add this site controll In code comment u can get basic undestand about what i did public function actionEmail() { // echo ''.(print_r($_POST,1)).' '; ...

YII Send Email & get Template content from database Part -1

Standard
in priviouse blog  make send user email & admin email . in this blog i coding sent email using email template  & get email content from data base . 1.create email template table to insert email data CREATE TABLE IF NOT EXISTS `emailtemplate` ( `id` int(11) unsigned...

Monday, December 1, 2014