Welcome Guest, Not a member yet? Register   Sign In
Codeigniter Datamapper - multilevel page navigation
#1

[eluser]Unknown[/eluser]
I am using "DataMapper, OverZealous Edition" for my current project. I have to make multilevel sub-page navigation in my project, i.e like

Page-A
- Page-A1
- Page-A2
- Page-A22
Page-B

Presently there is no sub-page concept in my project. Previously I have created "pages" table. The page table have also a relationship with "users" table to determine the user permission to access this page.

Here are the current "users" and "pages" table structures as follows:

users
- id
- name
- email
- password


pages_users
- id
- user_id
- page_id


pages
- id
- pg_name
- pg_status


Table Relationship:

users
$has_many = array('page');

pages
$has_many= array('user');

Any help in this regard will be highly appreciated.




Theme © iAndrew 2016 - Forum software by © MyBB