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 ¶
- Configure your database connection in /protected/config/main.php
- Create the SQL table using the included "sql.sql" file.
- Place the Yii framework into the empty "framework" folder
- Go to http://localhost/
- Login with admin/admin (or change the default password in /protected/components/UserIdentity.php )
- Enjoy !
(Please note that the menu can't display more than 3 submenus because of a CSS limit)
- More infos (official CSS menu page) : http://qrayg.com/experiment/cssmenus/
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
.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
@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
, findurlManager
part and comment-out (or delete) lines 19 ('urlFormat' => 'path',
) and 20 ('showScriptName' => false,
). Then the application should work fine (assuming that you have pointedindex.php
to correct path, where you haveyii.php
, that you have created tabledb
in your database and that you filled it with data stored insql.sql
).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
orCreate Root
brings no effect. I've added some menu position via DB and it appeared on site, but treeview inManage Menus
remains empty. So I think, author has published not yet finished example and need to further work over it.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.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.