portfolio yii-extension for portfolio integration to your application

  1. Requirements
  2. Usage

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

0 0
3 followers
571 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Tags:
Developed by: Pankaj@Browsewire
Created on: Jul 30, 2012
Last updated: 5 years ago

Downloads

show all