How to pass variables from a model to another model? |
[eluser]Juan Velandia[/eluser]
Hello every one. I've working on this for a while, but i decided to ask for help. I'm working on this site menu: http://190.146.3.147/assa-seguros.com/ I have a database with: cms_article cms_section they both have a field url_section wich works as an ID for the table cms_section. and I need to show the name of the article that belongs to the section in the menu: here's the model to get the sections Code: function show_section() Code: function get_article_list() Code: <ul class="menu" id="menu"> I think need to pass the url_section from the first model to the second to discriminate wich article bolong to wich section, but I I'm sotocked here, i only get to show all the records from cms_article Any ideas?? thanks a lot in advance! |
Messages In This Thread |
How to pass variables from a model to another model? - by El Forum - 07-17-2010, 11:55 AM
How to pass variables from a model to another model? - by El Forum - 07-17-2010, 06:34 PM
How to pass variables from a model to another model? - by El Forum - 07-17-2010, 07:21 PM
How to pass variables from a model to another model? - by El Forum - 07-18-2010, 12:41 PM
How to pass variables from a model to another model? - by El Forum - 07-18-2010, 01:49 PM
How to pass variables from a model to another model? - by El Forum - 07-19-2010, 06:24 AM
How to pass variables from a model to another model? - by El Forum - 07-19-2010, 08:01 AM
How to pass variables from a model to another model? - by El Forum - 07-19-2010, 08:17 AM
How to pass variables from a model to another model? - by El Forum - 07-19-2010, 03:00 PM
How to pass variables from a model to another model? - by El Forum - 07-20-2010, 09:26 AM
|