• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
An easy way to execute a method from the view ..

#1
[eluser]mvdg27[/eluser]
Hi guys,

I have been reading a bit on the forum about this, but didn't really ended up with a good solution.

I'm trying to achieve a very simple thing, I think:

From my view I want to be able to execute some methods that are defined in the controller. For example I want to call "$this->website->menu()", or "$this->website->children(4)" (the subpages of element with id = 4), or "$this->website->users_online()".

The context of this questions is a CMS I'm currently building, where I want to give designers the opportunity to easily retrieve exactly the data they need from the system. Instead of preparing every possible piece of data on the server on a page load, and then see whatever gets used, it sounds smarter to only do the processes that are actually needed.

Does anyone have an idea on how to achieve this?

Thanks!


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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.