TIP: Use Markdown or, <pre> for multi line code blocks / <code> for inline code.
These forums are read-only and for archival purposes only!
Please join our new forums at discourse.kohanaframework.org
Copy article
  • Hi

    I have contorller CRM_Messages extends Controller_Template

    I have

    public function action_addemail() which add new email message

    And now I want to create new message with copy from prev version from action_index.

    But problem is:

    public function action_copy() {

        $message = ORM::factory('crmmessage', $this->request->param('id'));
    
        if ($message->crm_type_id == 2) //рассылка для email
        {
            $this->redirect('crm/message/addemail');
        }
    
    }
    

    If I redirect to crm/message/addemail how i can get variables from $message and copy this to action_addemail() ?

    I cant redirected and send post data from action_copy() ?

    Alec

  • That's what sessions are for?