Welcome to MVCForge!
A social news site written by programmers for programmers who build applications using MVC Frameworks like CodeIgniter, CakePHP, Ruby on rails, Django and more.

4

When to use element() and when to requestAction()

http://www.endyourif.com

Several times a week it seems, someone at my office is asking, “Jamie, should I use $this->element() or $this->requestAction()?”

Every time they ask, I ask them back, “What do you need to do?”

There are a few simple ways to determine if using an element is better or a request action is better.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Best published articles