Jump to content

What is the relationship between the view, the controller and the action in the controller exactly?


Recommended Posts

Hi, I think I'm slightly confused about how all of these pieces fit together. 

These are my files and I've included the output. 

application/controllers/ReportsController.php: 
http://bin.cakephp.org/view/1278364199

application/views/scripts/reports/date-custom-report.html: 
http://bin.cakephp.org/view/821235364

And this is the output that I get when I run it from this URL [ http://host.com/project/reports/date-custom-report ]: 
http://bin.cakephp.org/view/2092353700

I've shortened the Zend_Debug::dump($this->view) output in the controller. 

But basically, why is none of the stuff (like "Hello world!") in my view not being displayed?  Am I doing something very silly/stupid? 

Thanks in advance for all help that you guys give, I'd really appreciate it.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.