Welcome Guest, Not a member yet? Register   Sign In
doubt with controllers
#1

[eluser]kmil0[/eluser]
Hi guys!


I am creating an application to understand how
CodeIgniter works, and I doubt has arisen.

Suppose that the application has a menu and a dynamic main <div>, in the menu the links are read
from a database, and this menu is constant except when it adds a new link from a form.

every time you reload the page (whatever the controller), I suppose that the menu should be read what is new in the database. but, how can I do this if CodenIgniter just let me load one controller?

can I execute a external function from the template (the main view) to show the "links" ?

something like.

<template>
<menu>
&lt;?php showLinks(); ?&gt;
</menu>

<dynamicdiv>
// dynamic content
</div>
</templte>

thanks for help.
excuse my bad englishSmile


Messages In This Thread
doubt with controllers - by El Forum - 06-11-2008, 12:29 AM
doubt with controllers - by El Forum - 06-11-2008, 01:11 AM
doubt with controllers - by El Forum - 06-11-2008, 01:26 AM
doubt with controllers - by El Forum - 06-11-2008, 01:36 AM
doubt with controllers - by El Forum - 06-11-2008, 01:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB