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 ¶
Unzip the 'Portfolio.zip' file.
Copy the 'portfolio' folder to the directory 'Application-Path/protected/extensions/'.
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.*',**
),
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')),** ));
Copy the file 'portfolio.php' to the directory 'Application-Path/protected/views/site/pages/'.
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.
Zip File Updated
Thanks for the concern....I have updated the zip file.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.