Showing 201-220 of 373 items.

Alternative folder structure for a standard Yii app

Created 13 years ago by Trejder Trejder, updated 13 years ago by Trejder Trejder. 4 comments

I found a standard Yii app's protected folder structure nearly perfect. With a few simple moves and a little bit change to the code, I managed to bring it to the level, which I found as fully perfect. I want to share my point of view, in case someone would like to use this structure as well.

3 0
9
Viewed: 24 607 times
Version: 1.1
Category: How-tos

Using Grunt for deploying client scripts

Created 13 years ago by Chris83 Chris83, updated 13 years ago by Chris83 Chris83. 8 comments

For a long time I have struggled to find a suitable tool for doing server tasks such as compiling LESS files, concatenating and minifying of JavaScript files and copying the minified JavaScript files. While most of these tasks can be done with Yii extensions I would still not recommend using them because it requires you to include these extensions in your project, and therefore also deploying them...

8 0
7
Viewed: 28 643 times
Version: 1.1
Category: How-tos

Open Dialog from ajax content

Created 13 years ago by Touzas Touzas, updated 13 years ago by Touzas Touzas. 1 comment

This is the code in the View.

<?php echo CHtml::link('MyDialog', Yii::app()->createUrl('site/page'), array('class' => 'openDlg divDialog')); ?>
<?php
$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id'=>'divDialog',
	'options'=>array( 'title'=>Yii::t('Dialog Title', 'autoOpen'=>false, 'modal'=>true, 'width'=>600)));
?>
	<div class="divForForm"></div>
<?php
$this->endWidget(...
3 1
5
Viewed: 26 823 times
Version: 1.1
Category: How-tos

Using Bootstrap with LESS

Created 13 years ago by Chris83 Chris83, updated 13 years ago by Chris83 Chris83. 1 comment

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...

11 0
14
Viewed: 60 618 times
Version: 1.1
Category: How-tos

Kickstart development with Yii-App

Created 13 years ago by Chris83 Chris83, updated 13 years ago by Chris83 Chris83. 25 comments

I recently created a project called Yii-App on GitHub to kickstart my development of smaller Yii applications. The main goal of the project is to provide a ready-to-use application template that includes my bootstrap extension and many other useful extensions. After reading this article you will be able to use...

14 0
40
Viewed: 45 695 times
Version: 1.1
Category: How-tos

Turn Web HTML Into Newsletter

Created 13 years ago by yasen yasen, updated 13 years ago by yasen yasen. 1 comment

These newsletters have always been hard to create as regular web HTML is not properly read by web email interfaces and email clients. I thought that the simplest solution would be to use a web page that would serve as a web version of the newsletter and turn it somehow into newsletter HTML.

6 0
9
Viewed: 19 956 times
Version: 1.1
Category: How-tos

Handling Bootstrap active tabs in Yii via URL

Created 13 years ago by JamesBarnsley JamesBarnsley, updated 10 years ago by JamesBarnsley JamesBarnsley. 17 comments

I (www.jamesbarnsley.com) found that when using the Yii Bootstrap tabs component you will sometimes want to direct the user to a specific tab and not necessarily the first tab. Yii Bootstrap already provides the "active" variable so you can define whether the tab is the active tab or not in PHP. I generally find though that a PHP solution to...

3 0
7
Viewed: 44 753 times
Version: 1.1
Category: How-tos