Yii 1.1: portfolio

yii-extension for portfolio integration to your application
3 followers

This is the yii-extension that lets you embedd a portfolio to your website which is a collection of images and their description.

Requirements

Yii 1.1.10 or above

Usage

  1. Unzip the 'Portfolio.zip' file.

  2. Copy the 'portfolio' folder to the directory 'Application-Path/protected/extensions/'.

  3. Import the extension within the 'Application-Path/protected/config/main.php' file in the import section like this :-

    'import'=>array( 'application.models.', 'application.components.', 'application.extensions.portfolio.*', ),

  4. Open the file 'Application-Path/protected/views/layouts/main.php' and add your array item to the widget like this :-

    $this->widget('zii.widgets.CMenu',array( 'items'=>array( array('label'=>'Home', 'url'=>array('/site/index')), array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')), array('label'=>'Contact', 'url'=>array('/site/contact')), array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest), array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)), array('label'=>'Portfolio', 'url'=>array('/site/page', 'view' => 'portfolio')),

        ));
  5. Copy the file 'portfolio.php' to the directory 'Application-Path/protected/views/site/pages/'.

Total 2 comments

#9236 report it
Pankaj@Browsewire at 2012/07/31 01:14am
Zip File Updated

Thanks for the concern....I have updated the zip file.

#9223 report it
KingYes at 2012/07/30 06:35am
Your welcome, But..

I see in the first release, you added ALL your temp files (by gedit?), Please ignore that's from your release. And fix your page. :)

Thanks.

Leave a comment

Please to leave your comment.

Create extension
Downloads