Losing $_POST and $_SESSION when calling (include() function) a (child) controller within a controller ---> Please help

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Losing $_POST and $_SESSION when calling (include() function) a (child) controller within a controller ---> Please help

Jeunejean Pierre
Dears,

In the following code, within the HyaWorkspaceController, I call another
(child) controller with the following code

include ("http://" . $_SERVER['HTTP_HOST'] .
                     "/HyaForm/edit/full_class_name/" .
$this->_getParam('full_class_name') .
                     "/UID/" . $this->_getParam('UID') .
                   
 "/objects_composition_parent_reference_attribute_name/" .
$this->_getParam('objects_composition_parent_reference_attribute_name') .
                     "/parent_UID/" . $this->_getParam('parent_UID'));

It work fine but the big problem is that I lose the $_POST array (which
is normal since my include is calling another URL).

So I did try putting the $_POST into $_SESSION, but I have the same
problem as I also lose the $_SESSION between the parent controller and
the child controller.

Any idea on how to solve this problem.
Is it not possible to have this kind of controllers hierarchy.

Thanks a lot,

Pierre

----------------

class HyaWorkspaceController extends Zend_Controller_Action {
   
    public function indexAction () {
        //Create the view
        $workSpaceView = new Zend_View();
       
$workSpaceView->setScriptPath(Application::HYA_MVC_DIRECTORY_PATH .
Application::HYA_VIEWS_DIRECTORY_NAME);
        //Register $_POST in session to be available to other controllers
        if(!isset($_SESSION))
        {
            session_start();
        }
        $post = $_POST;
        $_SESSION['post'] = $post;
       
        echo $workSpaceView->render('HyaWorkspaceTop.php');
       
        if($this->_getParam('table') == 'display') {
           
            include ("http://" . $_SERVER['HTTP_HOST'] .
                     "/HyaObjectsTable/index/full_class_name/" .
$this->_getParam('full_class_name'));
        }
        if($this->_getParam('HyaForm') == 'edit') {
            include ("http://" . $_SERVER['HTTP_HOST'] .
                     "/HyaForm/edit/full_class_name/" .
$this->_getParam('full_class_name') .
                     "/UID/" . $this->_getParam('UID') .
                   
 "/objects_composition_parent_reference_attribute_name/" .
$this->_getParam('objects_composition_parent_reference_attribute_name') .
                     "/parent_UID/" . $this->_getParam('parent_UID'));
        }
        if($this->_getParam('HyaForm') == 'create') {
            include ("http://" . $_SERVER['HTTP_HOST'] .
                     "/HyaForm/create/full_class_name/" .
$this->_getParam('full_class_name') .
                   
 "/objects_composition_parent_reference_attribute_name/" .
$this->_getParam('objects_composition_parent_reference_attribute_name') .
                     "/parent_UID/" . $this->_getParam('parent_UID'));
        }
       
        if($this->_getParam('HyaForm') == 'save') {
            include ("http://" . $_SERVER['HTTP_HOST'] .
                     "/HyaForm/save/full_class_name/" .
$this->_getParam('full_class_name') .
                   
 "/objects_composition_parent_reference_attribute_name/" .
$this->_getParam('objects_composition_parent_reference_attribute_name') .
                     "/parent_UID/" . $this->_getParam('parent_UID'));
        }
        include ("http://" . $_SERVER['HTTP_HOST'] . "/HyaClassPicker/");
        echo $workSpaceView->render('HyaWorkspaceBottom.php');
    }
   
}


class HyaFormController extends Zend_Controller_Action {

  ...
 
    public function saveAction () {
        Propel::init(Application::HYA_APPLICATION_DIRECTORY_PATH .
'ola_lu-conf.php');  
        $criteria = new Criteria();
        $criteria->add(HyaFormPeer::FULL_CLASS_NAME,
$this->_getParam('full_class_name'));
        $results = HyaFormPeer::doSelect($criteria);
        $hyaForm =  new HyaForm();
        $hyaForm = $results[0];
        if(!isset($_SESSION))
        {
            session_start();
        }
        if(!isset($_SESSION)) session_start();
        var_dump($_SESSION['p']);
        $hyaForm->defaultSave(new Zend_InputFilter($_POST),
$this->_getParam('full_class_name'));
    }
}

--
sincerely yours,
mit freundlichen Grüßen,
cordialement,

Pierre Jeunejean

A D N E X U S
Interactive Media Agency

Rue Patenier, 38
B- 4000 Liege (bureau)

Wirtzfeld, 3A
B- 4760 Büllingen

GSM +32 (0)478 55 65 86
tel +32 (0)4 225 20 84
Skype user name: jeunejeanpierre
[hidden email]

BE 863.696.611

Reply | Threaded
Open this post in threaded view
|

Re: Losing $_POST and $_SESSION when calling (include() function) a (child) controller within a controller ---> keep session between action call

Jeunejean Pierre
Hi again,

Did not get any response, but ...
I partially could resolve my problem by posting data to the child
controller "/HyaForm/save/"
and then use the _forward() method to forward to the parent controller.

But still, I will now do further test on how $_SESSION is keept between  
controller calls.

Pierre Jeunejean (Adnexus) wrote:

> Dears,
>
> In the following code, within the HyaWorkspaceController, I call
> another (child) controller with the following code
>
> include ("http://" . $_SERVER['HTTP_HOST'] .
>                     "/HyaForm/save/full_class_name/" .
> $this->_getParam('full_class_name') .
>                     "/UID/" . $this->_getParam('UID') .
>                    
> "/objects_composition_parent_reference_attribute_name/" .
> $this->_getParam('objects_composition_parent_reference_attribute_name') .
>                     "/parent_UID/" . $this->_getParam('parent_UID'));
>
> It work fine but the big problem is that I lose the $_POST array
> (which is normal since my include is calling another URL).
>
> So I did try putting the $_POST into $_SESSION, but I have the same
> problem as I also lose the $_SESSION between the parent controller and
> the child controller.
>
> Any idea on how to solve this problem.
> Is it not possible to have this kind of controllers hierarchy.
>
> Thanks a lot,
>
> Pierre
>
> ----------------
>
> class HyaWorkspaceController extends Zend_Controller_Action {
>      public function indexAction () {
>        //Create the view
>        $workSpaceView = new Zend_View();
>        
> $workSpaceView->setScriptPath(Application::HYA_MVC_DIRECTORY_PATH .
> Application::HYA_VIEWS_DIRECTORY_NAME);
>        //Register $_POST in session to be available to other controllers
>        if(!isset($_SESSION))
>        {
>            session_start();
>        }
>        $post = $_POST;
>        $_SESSION['post'] = $post;
>              echo $workSpaceView->render('HyaWorkspaceTop.php');
>              if($this->_getParam('table') == 'display') {
>                      include ("http://" . $_SERVER['HTTP_HOST'] .
>                     "/HyaObjectsTable/index/full_class_name/" .
> $this->_getParam('full_class_name'));
>        }
>        if($this->_getParam('HyaForm') == 'edit') {
>            include ("http://" . $_SERVER['HTTP_HOST'] .
>                     "/HyaForm/edit/full_class_name/" .
> $this->_getParam('full_class_name') .
>                     "/UID/" . $this->_getParam('UID') .
>                    
> "/objects_composition_parent_reference_attribute_name/" .
> $this->_getParam('objects_composition_parent_reference_attribute_name') .
>                     "/parent_UID/" . $this->_getParam('parent_UID'));
>        }
>        if($this->_getParam('HyaForm') == 'create') {
>            include ("http://" . $_SERVER['HTTP_HOST'] .
>                     "/HyaForm/create/full_class_name/" .
> $this->_getParam('full_class_name') .
>                    
> "/objects_composition_parent_reference_attribute_name/" .
> $this->_getParam('objects_composition_parent_reference_attribute_name') .
>                     "/parent_UID/" . $this->_getParam('parent_UID'));
>        }
>              if($this->_getParam('HyaForm') == 'save') {
>            include ("http://" . $_SERVER['HTTP_HOST'] .
>                     "/HyaForm/save/full_class_name/" .
> $this->_getParam('full_class_name') .
>                    
> "/objects_composition_parent_reference_attribute_name/" .
> $this->_getParam('objects_composition_parent_reference_attribute_name') .
>                     "/parent_UID/" . $this->_getParam('parent_UID'));
>        }
>        include ("http://" . $_SERVER['HTTP_HOST'] . "/HyaClassPicker/");
>        echo $workSpaceView->render('HyaWorkspaceBottom.php');
>    }
>   }
>
>
> class HyaFormController extends Zend_Controller_Action {
>
>  ...
>
>    public function saveAction () {
>        Propel::init(Application::HYA_APPLICATION_DIRECTORY_PATH .
> 'ola_lu-conf.php');          $criteria = new Criteria();
>        $criteria->add(HyaFormPeer::FULL_CLASS_NAME,
> $this->_getParam('full_class_name'));
>        $results = HyaFormPeer::doSelect($criteria);
>        $hyaForm =  new HyaForm();
>        $hyaForm = $results[0];
>        if(!isset($_SESSION))
>        {
>            session_start();
>        }
>        if(!isset($_SESSION)) session_start();
>        var_dump($_SESSION['p']);
>        $hyaForm->defaultSave(new Zend_InputFilter($_POST),
> $this->_getParam('full_class_name'));
>    }
> }
>


--
sincerely yours,
mit freundlichen Grüßen,
cordialement,

Pierre Jeunejean

A D N E X U S
Interactive Media Agency

Rue Patenier, 38
B- 4000 Liege (bureau)

Wirtzfeld, 3A
B- 4760 Büllingen

GSM +32 (0)478 55 65 86
tel +32 (0)4 225 20 84
Skype user name: jeunejeanpierre
[hidden email]

BE 863.696.611

Reply | Threaded
Open this post in threaded view
|

Re: Losing $_POST and $_SESSION when calling (include() function) a (child) controller within a controller ---> keep session between action call

Chris Hartjes
Maybe I am misunderstanding something, but I don't quite understand
how you can "lose" a session between controllers.  If you are not
initiating a new page load, the session information should still be in
there.

Unless the mechanics of redirecting from one controller to another is
automatically wiping out the session within the code itself.  From my
own experience with workng extensively with sessions, as long as the
first thing you do before anything gets outputted to the screen is do
a "session start" the session superglobal is available in any scope.

My appologies again if I misunderstand the problem.

On 6/1/06, Pierre Jeunejean (Adnexus) <[hidden email]> wrote:

> Hi again,
>
> Did not get any response, but ...
> I partially could resolve my problem by posting data to the child
> controller "/HyaForm/save/"
> and then use the _forward() method to forward to the parent controller.
>
> But still, I will now do further test on how $_SESSION is keept between
> controller calls.
>

--
Chris Hartjes

"The greatest inefficiencies come from solving problems you will never have."
-- Rasmus Lerdorf

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard
Reply | Threaded
Open this post in threaded view
|

Re: Losing $_POST and $_SESSION when calling (include() function) a (child) controller within a controller ---> keep session between action call

cyberlot
I would be willing to bet something is happening in his setup that is
causing start_session to be skipped for some reason.

You should first focus on session_start and make 100% sure it is being
called every page load.

Richard Thomas - CEO
Cyberlot Technologies Group Inc.
507.398.4124 - Voice


Chris Hartjes wrote:

> Maybe I am misunderstanding something, but I don't quite understand
> how you can "lose" a session between controllers.  If you are not
> initiating a new page load, the session information should still be in
> there.
>
> Unless the mechanics of redirecting from one controller to another is
> automatically wiping out the session within the code itself.  From my
> own experience with workng extensively with sessions, as long as the
> first thing you do before anything gets outputted to the screen is do
> a "session start" the session superglobal is available in any scope.
>
> My appologies again if I misunderstand the problem.
>
> On 6/1/06, Pierre Jeunejean (Adnexus) <[hidden email]> wrote:
>
>> Hi again,
>>
>> Did not get any response, but ...
>> I partially could resolve my problem by posting data to the child
>> controller "/HyaForm/save/"
>> and then use the _forward() method to forward to the parent controller.
>>
>> But still, I will now do further test on how $_SESSION is keept between
>> controller calls.
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: ActionsChain [fw-general] Losing $_POST and $_SESSION when calling (include() function) a (child) controller within a controller ---> keep session between action call

Jeunejean Pierre
Points 3) = the problem I had & point 4) How I resolved this (with a
king of Actions Chain)


1) many thanks for your answers :-)

2) no problem with session_start

3) What I wanted actually, is to have a parent controller
HyaWorkspaceController (the main workspace of a CMS)
rendering 2 views & calling several childs controllers:
    - HyaWorkspaceTopView -> to display the top of the workspace,
    - HyaClassPickerController -> a select to select class to display
the class objects in a table/datagrid,
    - HyaObjectsTable -> to display all objects of Class in a pagined
table,
    - HyaFormController (with edit, create, save actions)  displays
automatically a generated form to edit, create, save an object,
    - HyaWorkspaceBottomView -> to display  the bottom  of the workspace
 
!!! But I wanted "HyaWorkspaceController" to decided when to display a
child Controller depending on params passed to it.

Typically, the "HyaWorkspaceController" has to first call the
"HyaClassPickerController" (& its view)
then both "HyaClassPickerController" & "HyaObjectsTable"  (& their  view)
then when the user choose to edit an object from the objectsTable show
the edit form with "HyaFormController"  "edit" action
and so on ...

So as you can see  in  the following code  (my  first  implementation ),
the mistake was to call child controllers with this syntax
include ("http://" . $_SERVER['HTTP_HOST'] .
                     "/HyaObjectsTable/index/full_class_name/" .
$this->_getParam('full_class_name'));

"http://" . $_SERVER['HTTP_HOST'] -> This means several new request
going through the webserver the the Front controller and so ...
So the $_POST or more  important  the $_SESSION

// BEGINS FIRST IMPLEMENTATION
class HyaWorkspaceController extends Zend_Controller_Action {
   
    public function indexAction () {
       
        echo $workSpaceView->render('HyaWorkspaceTop.php');
       
        include ("http://" . $_SERVER['HTTP_HOST'] . "/HyaClassPicker/");
       
        if($this->_getParam('table') == 'display') {
           
            include ("http://" . $_SERVER['HTTP_HOST'] .
                     "/HyaObjectsTable/index/full_class_name/" .
$this->_getParam('full_class_name'));
        }
        if($this->_getParam('HyaForm') == 'edit'
        || $this->_getParam('HyaForm') == 'create'
        || $this->_getParam('HyaForm') == 'save') {
            include ("http://" . $_SERVER['HTTP_HOST'] .
                     "/HyaForm/" . $this->_getParam('HyaForm') .
"/full_class_name/" . $this->_getParam('full_class_name') .
                     "/UID/" . $this->_getParam('UID') .
                     
"/objects_composition_parent_reference_attribute_name/" .
$this->_getParam('objects_composition_parent_reference_attribute_name') .
                     "/parent_UID/" . $this->_getParam('parent_UID'));
        }

        echo $workSpaceView->render('HyaWorkspaceBottom.php');
}

// ENDS FIRST IMPLEMENTATION
 
4)  So realizing  that  having  a kind of controllers hierachy (parent
controller calling child controller dynamically depending on params) was
not possible,
I tried to used to use the Zend_Controller_Action->_forward () action,
which keeps nicelly the $_SESSION between the forwarding controller &
the forwared controller.
But the problem is that a controller can only forward to ONE another
controller (which make sense),
but in my case in needed to have a serie (a loop) of forwarding but with
not the same child controllers  or  not the same numbers  of  child  
controllers  called each time.

So been in a hurry (project to deliver soon) not having time to go
trough Zend code yet,
I did a quick (& dirty ?! :-) ) implement of a sort of Actions Chain
(probably not the best way but will do it for now),

here is first the new implementation the parent controller
HyaWorkspaceController
and then  implement of the ActionsChain class (which could maybe give
some better ideas to persons working on Zend Framework, or show a needed
feature)

class HyaWorkspaceController extends Zend_Controller_Action {
   
    public function indexAction () {
       
        ActionsChain::reset();
        ActionsChain::addAction(array('HyaWorkspaceTop', 'index'));
        ActionsChain::addAction(array('HyaClassPicker', 'index'));
        if($this->_getParam('table') == 'display') {
            ActionsChain::addAction(array('HyaObjectsTable', 'index'));
        }
        if($this->_getParam('HyaForm') == 'edit') {
            ActionsChain::addAction(array('HyaForm', 'edit'));
        }
        if($this->_getParam('HyaForm') == 'create') {
            ActionsChain::addAction(array('HyaForm', 'create'));
        }
        ActionsChain::addAction(array('HyaWorkspaceBottom', 'index'));
   
        $nextAction = ActionsChain::getNextAction();
        if($nextAction != null) {
            $this->_forward($nextAction[0], $nextAction[1],
$this->_getAllParams());
        }

    }

Each controllers has the following code after the $view->render() :
        $nextAction = ActionsChain::getNextAction();
        if($nextAction != null) {
            $this->_forward($nextAction[0], $nextAction[1],
$this->_getAllParams());
        }

So here is the ActionsChain class

<?php
class ActionsChain {
   
    /**
     * An array (2 dimensions) containing actions. Each entry is a 2
elements array containing
     * as first value the controller name & second value the controller
action name.
     * @var array
     */
    private static $chain = array();
    /**
     * An index incremented each time an action of the chain has been
forwarded.
     * Incremented by the getNextAction().
     * @var integer
     */
    private static $chainIndex = 0;
   
    /**
     * Add an action to the chain
     * @param array $action, the array must contains 2 entries,
     * as first value the controller name & second value the controller
action name.
     * ie: HyaActionsChain::addAction(array('MyControllerName',
'ItsActionName'))
     * @return void
     */
    static public function addAction($action) {
        array_push(self::$chain, $action);
    }
   
    /**
     * Gets the next action in the chain, and then increments the
$chainIndex,
     * so the next action will be return when calling this method again.
     * Resets the array to zero length when all actions in chain have
been returned
     * @return array with 2 entries
     * as first value the controller name & second value the controller
action name.
     * ie: HyaActionsChain::addAction(array('MyControllerName',
'ItsActionName'))
     */
    static public function getNextAction () {
        /* We have no actions in the $chain */
        if (count(self::$chain) == 0) {
            return null;
        }
       
        if (!isset(self::$chain[self::$chainIndex])) {
            /* We reached the end of the $chain,
             * so we reset the $chain and its $chainIndex
             */
            self::$chain = array();
            $chainIndex = 0;
            return null;
        }
       
        $nextAction = self::$chain[self::$chainIndex];  
        self::$chainIndex ++;
        return $nextAction;
    }
   
    /**
     * Reset the chain
     */
    static public function reset () {
        self::$chain = array();
        $chainIndex = 0;      
    }
   
    /**
     * Gets the all chain
     *
     * @return array the chain of actions
     */
    static public function getChain () {
        return self::$chain;
    }
   
}


Richard Thomas wrote:

> I would be willing to bet something is happening in his setup that is
> causing start_session to be skipped for some reason.
>
> You should first focus on session_start and make 100% sure it is being
> called every page load.
>
> Richard Thomas - CEO
> Cyberlot Technologies Group Inc.
> 507.398.4124 - Voice
>
>
> Chris Hartjes wrote:
>
>> Maybe I am misunderstanding something, but I don't quite understand
>> how you can "lose" a session between controllers.  If you are not
>> initiating a new page load, the session information should still be in
>> there.
>>
>> Unless the mechanics of redirecting from one controller to another is
>> automatically wiping out the session within the code itself.  From my
>> own experience with workng extensively with sessions, as long as the
>> first thing you do before anything gets outputted to the screen is do
>> a "session start" the session superglobal is available in any scope.
>>
>> My appologies again if I misunderstand the problem.
>>
>> On 6/1/06, Pierre Jeunejean (Adnexus) <[hidden email]>
>> wrote:
>>
>>> Hi again,
>>>
>>> Did not get any response, but ...
>>> I partially could resolve my problem by posting data to the child
>>> controller "/HyaForm/save/"
>>> and then use the _forward() method to forward to the parent controller.
>>>
>>> But still, I will now do further test on how $_SESSION is keept between
>>> controller calls.
>>>
>>
>
>


--
sincerely yours,
mit freundlichen Grüßen,
cordialement,

Pierre Jeunejean

A D N E X U S
Interactive Media Agency

Rue Patenier, 38
B- 4000 Liege (bureau)

Wirtzfeld, 3A
B- 4760 Büllingen

GSM +32 (0)478 55 65 86
tel +32 (0)4 225 20 84
Skype user name: jeunejeanpierre
[hidden email]

BE 863.696.611

Reply | Threaded
Open this post in threaded view
|

Re: ActionsChain [fw-general] Losing $_POST and $_SESSION when calling (include() function) a (child) controller within a controller ---> keep session between action call

Chris Hartjes
/me puts on his pragmatic programmer robes (which are, of course, flame proof)

This seems incredibly complicated to me, and the pragmatic programmer
in me wants to understand WHY you are doing it this way.  Wouldn't it
be easier to do it this way:

HyaWorkspaceController grabs whatever data it needs from the models
and forwards the data to HyaClassPickerController, which does it's own
work, in turn passing the data to HyaFormController, which then calls
HyaEverythingView, which displays everything in it's glory with
conditionals based on the data being presented.

I remember being able to do this sort of thing (passing data from one
controller to another) when I did some work with the Mojavi framework.
  Rails also uses the concept of "partials", which are smaller HTML
fragments that are called by a template.  Logic in your template can
determine what partial should be displayed.  Remember, it is okay to
have logic in your views.

Also, the pragmatic programmer in me notes that using pre-release code
for a functional site isn't always a good idea either. :)

The Action chaining thing is interesting.  Personally I would never
have thought of doing it. :)

On 6/1/06, Pierre Jeunejean (Adnexus) <[hidden email]> wrote:

>>
> 3) What I wanted actually, is to have a parent controller
> HyaWorkspaceController (the main workspace of a CMS)
> rendering 2 views & calling several childs controllers:
>     - HyaWorkspaceTopView -> to display the top of the workspace,
>     - HyaClassPickerController -> a select to select class to display
> the class objects in a table/datagrid,
>     - HyaObjectsTable -> to display all objects of Class in a pagined
> table,
>     - HyaFormController (with edit, create, save actions)  displays
> automatically a generated form to edit, create, save an object,
>     - HyaWorkspaceBottomView -> to display  the bottom  of the workspace
>
> !!! But I wanted "HyaWorkspaceController" to decided when to display a
> child Controller depending on params passed to it.
>
--
Chris Hartjes

"The greatest inefficiencies come from solving problems you will never have."
-- Rasmus Lerdorf

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard
Reply | Threaded
Open this post in threaded view
|

Re: Re: ActionsChain [fw-general] Losing $_POST and $_SESSION when calling (include() function) a (child) controller within a controller ---> keep session between action call

Jeunejean Pierre
First, in my previous mail, I made a typing error, I wanted to type "a
kind of action chain" and not "a king of action chain" :-)

I don't want to hardcode which controller  to forward  to from within
another controller because:
1)  In this case, this is the role/responsability of the parent
HyaWorkspaceController to decide which of its parts (which MVC part
child) to show.
2)  The parent controller may decided to show only 1 child MVC part or
several parts, so the child should not be aware of what next to forward to,
so having a some logic and hardcoded actions forwards in those child MVC
part can becomes quickly messy in this case.
3) I see MVC parts as independent parts of reusable code, so I want as
much as  loose coupling between those parts.
4) I don't see yet any way to call several partial (or actions or ...)
within a view (or within a controller as I expained in previous mail)
except with an include('http://mysite/MyController/MyAction/') which
would result again in losing the session.

 > Also, the pragmatic programmer in me notes that using pre-release code
 > for a functional site isn't always a good idea either. :)
---> true, true :-) but I'm writting my next CMS generation and I want
it with Zend Framework

:-)

Chris Hartjes wrote:

> /me puts on his pragmatic programmer robes (which are, of course,
> flame proof)
>
> This seems incredibly complicated to me, and the pragmatic programmer
> in me wants to understand WHY you are doing it this way.  Wouldn't it
> be easier to do it this way:
>
> HyaWorkspaceController grabs whatever data it needs from the models
> and forwards the data to HyaClassPickerController, which does it's own
> work, in turn passing the data to HyaFormController, which then calls
> HyaEverythingView, which displays everything in it's glory with
> conditionals based on the data being presented.
>
> I remember being able to do this sort of thing (passing data from one
> controller to another) when I did some work with the Mojavi framework.
>  Rails also uses the concept of "partials", which are smaller HTML
> fragments that are called by a template.  Logic in your template can
> determine what partial should be displayed.  Remember, it is okay to
> have logic in your views.
>
> Also, the pragmatic programmer in me notes that using pre-release code
> for a functional site isn't always a good idea either. :)
>
> The Action chaining thing is interesting.  Personally I would never
> have thought of doing it. :)
>
> On 6/1/06, Pierre Jeunejean (Adnexus) <[hidden email]>
> wrote:
>
>>>
>> 3) What I wanted actually, is to have a parent controller
>> HyaWorkspaceController (the main workspace of a CMS)
>> rendering 2 views & calling several childs controllers:
>>     - HyaWorkspaceTopView -> to display the top of the workspace,
>>     - HyaClassPickerController -> a select to select class to display
>> the class objects in a table/datagrid,
>>     - HyaObjectsTable -> to display all objects of Class in a pagined
>> table,
>>     - HyaFormController (with edit, create, save actions)  displays
>> automatically a generated form to edit, create, save an object,
>>     - HyaWorkspaceBottomView -> to display  the bottom  of the workspace
>>
>> !!! But I wanted "HyaWorkspaceController" to decided when to display a
>> child Controller depending on params passed to it.
>>


--
sincerely yours,
mit freundlichen Grüßen,
cordialement,

Pierre Jeunejean

A D N E X U S
Interactive Media Agency

Rue Patenier, 38
B- 4000 Liege (bureau)

Wirtzfeld, 3A
B- 4760 Büllingen

GSM +32 (0)478 55 65 86
tel +32 (0)4 225 20 84
Skype user name: jeunejeanpierre
[hidden email]

BE 863.696.611