CakePHP requestAction() alternative option w/ element?

This does not work. But thanks for the idea anyhow. – OldWest Jul 21 at 7:02 It must be something else that goes wrong.

I pass data to elements all the time. Try logging the data at each step to see where you lost it. – Anh Pham Jul 21 at 7:54 I tested my controller vars and they contain the proper array structures and data.It's being lost at the element layer.

The element does not seem to retrieve the passed value. – OldWest Jul 21 at 8:02 did you test the $bird_elmnt again right before echo the element? – Anh Pham Jul 21 at 8:06 Ok the variable is passed just fine, but only if it is sent from the index() action.

I created a element_array_pass() action, and I am trying to pass the value that action, but using the index. Ctp view.So I am trying to access the passed value from a function that is not set to the current view. Do you see what I mean?

My goal with all of this was to create an independent action that returned an array which I could use for my element in any view. – OldWest Jul 21 at 8:09.

You are able to pass additional data to an element through the 2nd argument of the element() method. Echo $this->element('birds_paginator_element', array( 'bird_elmnt_var' => $bird_elmnt )); // In element var_dump($bird_elmnt_var); Also have a read of this article from Mark Story.

This does not work. And I read Mark's notes as well prior to this post, and they were not effective in Cake 1.3. But thanks for the ideas. – OldWest Jul 21 at 7:02 The API for 1.3 says that it still takes a second argument as extra parameters for a element, except for the two special params which are cache & plugin: api.cakephp.

Org/class/view#method-Viewelement – Stoosh Jul 21 at 7:23 Not sure but it's certainly not working that's all I know at this point. Still trying various things. – OldWest Jul 21 at 7:26 Are you getting an undefined variable error?

– Stoosh Jul 21 at 10:22.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions