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
On Dec 27, 2007 7:45 PM, subtropolis zijn <[EMAIL PROTECTED]> wrote:
> Now please, if you really must continue acting like an ass, take it to your
> crappy blog where ~7200 developers don't have to watch if they don't want
> to.
As you wish.
--
Chris Hartjes
My motto for 2007: "Just build it,
On Dec 27, 2007 4:38 PM, Chris Hartjes <[EMAIL PROTECTED]> wrote:
>
> I have been paying attention and still couldn't figure out what you
> are trying to do. But that's probably because I would never try to do
> it the way you've been trying. Which makes me dumb I guess.
Then perhaps you might
>
> 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 b
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->rende
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-
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.
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
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
On Dec 27, 2007 2:06 PM, Pablo Viojo <[EMAIL PROTECTED]> wrote:
> Try:
>
> $this->autoRender=false;
> $this->render('foo');
>
> in your controller action
>
> Also, see the render definition[1]
>
>
>
Ah, autoRender--forgot about that. But I want to pass a parameter to the
view action from the index
Resolved. When I made changes I forgot that the route passes the
publish_date in the params array instead of setting the class var directly.
I decided to forget about using a class var since set() is only really meant
(I think) for passing vars to the view.
So, I restored the parameter to the view
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, subtrop
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
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 di
14 matches
Mail list logo