Zend menu generator

Here I present you a menu generator for Zend applications. The key feature is the integration with ACL rules.

It is composed  of three files :

  • menu.ini, contain menu description;

  • showMenu.php, helper to display menu;

  • menu.css, CSS stylesheet.

Menu.ini

; Patient

patient.name = Patient
patient.controller = patient
patient.action = show-list
patient.sub.add.name = Register new
patient.sub.add.controller = patient
patient.sub.add.action = add
patient.sub.list.name = Manage patients
patient.sub.list.controller = patient
patient.sub.list.action = show-list
patient.sub.quittance.name = Register quittance
patient.sub.quittance.controller = quittance
patient.sub.quittance.action = add

; Test
test.name = Test
test.controller = test
test.action = show-list
test.sub.add.name = Register new
test.sub.add.controller = test
test.sub.add.action = add
test.sub.list.name = Manage tests
test.sub.list.controller = test
test.sub.list.action = show-list

ShowMenu.php

It is the helper. Download it.

menu.css

This is the css for a css only menu. It is included in the ShowMenu.zip file. I found it on a website, but I don't remember the name. Sorry.

I hope you will enjoy. You are free to modify this code. If you do, I will appreciate to know it.


Hello am new to zend framework
am ask to build up a menu generation .
Can u make your tutorial on menu generator more self-explanatory for a beginner like me please.
Thank you.

How do u make ur helper communicate with your fast controller?

In the controller I have :

$menu = new Zend_Config_Ini('menu.ini');
$this->view->menu = $menu->toArray();

Then, the helper retrieve the menu and display it.

Thanks u:)
the menu works now
Je vous souhaite une bonne continuation et merci encore

Thanks

Special ebooks mega search system can help you find your favorite books in electronic edition in no time.

Very good post, thanks a lot.

Hello,I love your blog! I think you've got a nice mix going actually.

It's so lucky for me to find your blog! So shocking and great! Just one suggestion: It will be better and easier to follow if your blog can offer rrs subscription service.

Correctly accomplished custom essay writing will give people a possibility to have A+. Nevertheless, custom research papers creating would use some free time. Therefore it should be executable to buy essay paper to preclude that.

Thanks for this css, I'll try it as soon as I get home :D

Valium is meant to be a short term anxiety solution as prolonged use can result in physical dependence of the substance.
valium 10 mg

This is why the user should set a plan of action in which they will seek to eliminate their anxiety in 3 months or less.
28052010node

Hello! kefkgdg interesting kefkgdg site!

Your posting is very good and theme base for which it is liking to every people. Thanks a lot!!!

thank you for sharing ~!~wansantg1zxl

Hello! gcddede interesting gcddede site!

I really enjoy reading your blog! There are very interesting posts and my insight is widen through them. Thanks!

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h3> <h4> <abbr>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
Spam control
3 + 7 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.