Yii 1.1: yet-another-testdrive

Another testdrive with admin menu management (Thanks to Spiros Kabasakalis)
5 followers

Yet another Testdrive (to quick start with Yii) that include :

  • new default theme (thanks to http://yiithemes.mehesz.net)
  • Menu management @ admin panel (Thanks to Spiros Kabasakalis)

Requirements

  • Yii 1.1 or above
  • An SQL database
  • Apache mod_rewrite enabled

Usage

  1. Configure your database connection in /protected/config/main.php
  2. Create the SQL table using the included "sql.sql" file.
  3. Place the Yii framework into the empty "framework" folder
  4. Go to http://localhost/
  5. Login with admin/admin (or change the default password in /protected/components/UserIdentity.php )
  6. Enjoy !

(Please note that the menu can't display more than 3 submenus because of a CSS limit)

Screenshot

Total 5 comments

#12857 report it
saegeek at 2013/04/16 06:01am
Use the tiny shop instead

Hi,

Just forget this extension and use my "Tiny paypal shop" instead because its Javascripts are more updated :

http://www.yiiframework.com/extension/tiny-paypal-shop/

You will have to delete the controllers, views and models that conrresponds to shopping pages.

#12856 report it
Trejder at 2013/04/16 05:50am
Is this working?

The other thing is, that example SQL file does not contains any demo menu structure and the entire module seems to be not working at all. Clicking on Refresh or Create Root brings no effect. I've added some menu position via DB and it appeared on site, but treeview in Manage Menus remains empty. So I think, author has published not yet finished example and need to further work over it.

#12850 report it
Trejder at 2013/04/15 03:30pm
@Txomin

This .htaccess file is not required by this extension specificaly, but by any Yii application, that uses this set of parameteres in CUrlManager:

'urlFormat'=>'path',
'showScriptName'=>false

So, the only author's problem is forcing user to use such CUrlManager configuration.

In other words, after installing (unzipping) this example application, go to protected/config/main.php, find urlManager part and comment-out (or delete) lines 19 ('urlFormat' => 'path',) and 20 ('showScriptName' => false,). Then the application should work fine (assuming that you have pointed index.php to correct path, where you have yii.php, that you have created table db in your database and that you filled it with data stored in sql.sql).

#8915 report it
Txomin at 2012/07/07 03:37am
.htaccess is missing

Thanx for this demo project.

The config expects the index.php to be gone from the URL. A .htaccess file needs to be added to the project root or nothing works. For those as lost as I am, this is what the .htaccess file needs to look like:

RewriteEngine on
 
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
 
# otherwise forward it to index.php
RewriteRule . index.php
#8003 report it
drumaddict at 2012/05/03 03:18am
Great Job!

You've got to be kidding me!I am writing a menu management system for my cms right now too,based on my nestedsetadmingui extension ,I was just surfing in the extensions and ran on to this!Weird-creepy!Thanks for giving me credit,and let's not forget the author of nestedsetbehavior...Cheers

Leave a comment

Please to leave your comment.

Create extension
Downloads