Welcome Guest, Not a member yet? Register   Sign In
An easy way to execute a method from the view ..
#11

[eluser]mvdg27[/eluser]
Wiredesignz, thanks for your reply as well. I can see your point. The reason I'm asking here is exactly that I'd like to explore the possibilities and to see what makes coding and not.

The thing is, that I want to offer several, easy to access functions to designers to display several elements in the template. The examples I mentioned above are just some I could think of right away. An example of a helper function, I'm experimenting with now:

Code:
top_menu(array('section'=>1, 'format'=>'list', 'id'=> 'menu', 'class'=>'my_menu'));

This way a designer can easily get the right menu structure printed on screen, with minimal coding. That's what I'm after. And it works perfectly, I must say.

The method you proposed I understand completely, and this is usually the the way I work with CI. However, if I have a collection of 100 different functions, and all of these functions are going to be executed, this will affect the loading times in the end. Or am I mis interpretating something in your code?

If you have any other suggestions, please share them!! I'm in no way stuck to this approach, so if there are better options, by all means!

Cheers, Michiel


Messages In This Thread
An easy way to execute a method from the view .. - by El Forum - 07-31-2008, 05:33 AM
An easy way to execute a method from the view .. - by El Forum - 07-31-2008, 05:45 AM
An easy way to execute a method from the view .. - by El Forum - 07-31-2008, 05:55 AM
An easy way to execute a method from the view .. - by El Forum - 07-31-2008, 06:00 AM
An easy way to execute a method from the view .. - by El Forum - 07-31-2008, 06:05 AM
An easy way to execute a method from the view .. - by El Forum - 07-31-2008, 06:16 AM
An easy way to execute a method from the view .. - by El Forum - 07-31-2008, 06:26 AM
An easy way to execute a method from the view .. - by El Forum - 07-31-2008, 06:40 AM
An easy way to execute a method from the view .. - by El Forum - 07-31-2008, 06:50 AM
An easy way to execute a method from the view .. - by El Forum - 07-31-2008, 06:58 AM
An easy way to execute a method from the view .. - by El Forum - 07-31-2008, 07:19 AM
An easy way to execute a method from the view .. - by El Forum - 07-31-2008, 07:24 AM
An easy way to execute a method from the view .. - by El Forum - 07-31-2008, 07:35 AM
An easy way to execute a method from the view .. - by El Forum - 07-31-2008, 07:39 AM
An easy way to execute a method from the view .. - by El Forum - 07-31-2008, 07:44 AM
An easy way to execute a method from the view .. - by El Forum - 07-31-2008, 07:54 AM
An easy way to execute a method from the view .. - by El Forum - 07-31-2008, 08:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB