This is the yii-extension that lets you embedd a portfolio to your website which is a collection of images and their description.
Yii 1.1.10 or above
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/'.
Total 2 comments
Thanks for the concern....I have updated the zip file.
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 login to leave your comment.