Re: share views between actions?

2007-12-28 Thread nate
If you don't like Chris's style, then don't respond. He's been on this list a long time, and there are only two people here who have fielded more questions than him, I'm one of them. So if he gets out of line (which in this thread he hasn't) *I'll* let him know. For the record, the only person

share views between actions?

2007-12-27 Thread subtropolis
CakePHP 1.2.x, PHP 5.1.4, Postgres8.1 I've a controller for an archive for which i need to make the default view display the data for the present month. The view action displays certain data given a date (for clarity's sake, i'll call my view action foo here): Everything aside from the

Re: share views between actions?

2007-12-27 Thread Chris Hartjes
On Dec 27, 2007 1:41 PM, subtropolis [EMAIL PROTECTED] wrote: CakePHP 1.2.x, PHP 5.1.4, Postgres8.1 I've a controller for an archive for which i need to make the default view display the data for the present month. The view action displays certain data given a date (for clarity's sake,

Re: share views between actions?

2007-12-27 Thread Pablo Viojo
Try: $this-autoRender=false; $this-render('foo'); in your controller action Also, see the render definition[1] Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net [1] http://api.cakephp.org/1.2/class_controller.html#90046e6b62c91452a987c9573372c2ac On Dec 27, 2007 3:41 PM,

Re: share views between actions?

2007-12-27 Thread subtropolis zijn
On Dec 27, 2007 2:07 PM, Chris Hartjes [EMAIL PROTECTED] wrote: Let be the first person to say to you... huh?!? I'm assuming you want to get the output of your foo() class into a view? You need this in your index() action if you are determined to not use a view: function index() {

Re: share views between actions?

2007-12-27 Thread subtropolis zijn
On Dec 27, 2007 4:07 PM, Chris Hartjes [EMAIL PROTECTED] wrote: On Dec 27, 2007 3:07 PM, subtropolis zijn [EMAIL PROTECTED] wrote: My controller: function index() { $this-autoRender=false; $this-set('publish_date', date('Y-M')); $this-render('view'); }

Re: share views between actions?

2007-12-27 Thread subtropolis zijn
On Dec 27, 2007 3:52 PM, Chris Hartjes [EMAIL PROTECTED] wrote: On Dec 27, 2007 2:45 PM, subtropolis zijn [EMAIL PROTECTED] wrote: Let me be the first to respond that that does not work. In any case, no, I do not have a foo class. See the Missing View error part of my query. *sigh*

Re: share views between actions?

2007-12-27 Thread Chris Hartjes
On Dec 27, 2007 2:45 PM, subtropolis zijn [EMAIL PROTECTED] wrote: Let me be the first to respond that that does not work. In any case, no, I do not have a foo class. See the Missing View error part of my query. *sigh* It was simply an example of how to output something in an action in a

Re: share views between actions?

2007-12-27 Thread Chris Hartjes
On Dec 27, 2007 3:07 PM, subtropolis zijn [EMAIL PROTECTED] wrote: My controller: function index() { $this-autoRender=false; $this-set('publish_date', date('Y-M')); $this-render('view'); } function view() { $this-pageTitle = 'The Archive: ' . $this-publish_date;

Re: share views between actions?

2007-12-27 Thread Chris Hartjes
The Cake documentation is rather limited, IMHO. In any case, if you'd paid more attention to what I was asking you'd immediately understand why these replies of yours are off-base. I have been paying attention and still couldn't figure out what you are trying to do. But that's probably