Tag Archives: Menu

CakePHP: CakeMenu plugin

I am using it for a while, but today I’ve decided to publish in the github.com.

What this plugin does?

The plugin is complete solution to add menu in your applications. It uses the nifty Superfish – jQuery menu plugin. You can find more info for it at http://users.tpg.com.au/j_birch/plugins/superfish/

Cakemenu can work with multilevel menus and reduces the database calls by caching the menu nodes. The plugin working with Authake plugin if you need to apply filter to menu nodes (user need to see only allowed locations)

Cakemenu working with CakePHP 1.2 but it’s tested with Cakephp 1.3 (RC3) and it would not have any problems with the future releases so far.


  • CakePHP 1.3 (of course)
  • jQuery in the head tag
  • Authake (optional) if you require your menu nodes to be filtered when user with limited privileges is logged in. Actually it’s possible to use other authorization class, but you have to extend it.

I believe that’s it. Check the large README file in the project’s directory.

CSS Menu builder

Today I found a new service which could help to designers and developers while they creating the menus for their projects. The site is: www.cssmenubuilder.com and as far I can check from the site’s blog it’s quite new – about a month, but it provide very good service to it’s visitors.

So what is it? As the domain says it’s an online menu generator. The site provide 3 main types of menus: Horizontal and Vertical Menus as well as Breadcrumbs bars. The combinations are unlimited – see what the author said:

Please check out our 30+ horizontal menus, our 700+ vertical menus combinations and our breadcrumb menus that consist of more than 200+ combinations, in total the site offers more than 1000 menu combinations not including the endless color combinations.

Briefly what I like and what I miss in that site:

  • Great service for people which are too busy to spend hours for building menus. I could say I am one of them 🙂
  • It’s free, no need to register.
  • Ability for live preview of the menu while doing it.

There is only one thing which missing and it’s multilevel menus, let’s hope this functionality will be available soon.

I definitely will use this service for my future projects. Why don’t you try yourself?
The site: www.cssmenubuilder.com

CakePHP and Layout – secret of data passing through

In my current project I need to deal with the Layout more than adding some header, static menu and footer in it. I need to have dynamic menu loaded from the database plus additional blocks which will contain some data related to the main content. For example YouTube.com /and many other sites/ has some blocks which appear all over the site like related movies block from the right depending from the tags related to the main movie. There are a lot examples.

Well, searching in the CakePHP Manual, CakePHP Google Group or Bakery doesn’t satisfy my understanding how to solve the case. Apart from $anything_for_layout: Making HTML from the View available to the layout article I didnt find anything on this topic. And this one sounds like a hack rather than a complex solution.
Continue reading