catching own DB Table "static_menus" by
ORM::factory("static_menu")
or by
db::build()->select()->from("static_menus")
Where is the magic by catching datas from my own created DB Table
in my own modul "pagemenu" to do this with
ORM::factory("static_menu")
it works only with
db::build()->select()->from("static_menus")
thanks in advance
Fred
Posts: 27300
Does your module have a models directory?
Did you extend the the ORM with a new class?
Look at existing modules to see examples of modules that have tables they have created and you will see all of them have a models directory and a file to extend the ORM.
Hope that helps as I'm a copy - paste type type of
developermodule maker.Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 12
thanks Dave
That is was i need to know
quite simple
Posts: 27300
Since you mentioned menu might I suggest:
http://codex.galleryproject.org/Gallery3:Modules:Pages
or
http://codex.galleryproject.org/Gallery3:Modules:menu_links
Not sure if you are reinventing the wheel or not.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 12
thanks for your attention Dave
no, i don't reinventing the wheel
I am just working on a dynamic page/menu module
for my Project.
and there for, i have two tables
the first one "static_pages" is working with ORM::factory(
bud the second one "static_menus" not.
the models is there
\modules\dynpages\models\static_page.php
thanks in advance
Fred