hi!
this is my method for auto complete

protected function gettsMilestoneStatusesOrCreate($id = 'id')
  {
    if (!$this->getRequestParameter($id))
    {
      $ts_milestone_statuses = new tsMilestoneStatuses();
      $ts_milestone_statuses->setCreatedAt(time());
    }
    else
    {
      $ts_milestone_statuses =
tsMilestoneStatusesPeer::retrieveByPk($this->getRequestParameter($id));

      $this->forward404Unless($ts_milestone_statuses);
    }

    return $ts_milestone_statuses;
  }

Where i need to use defauls values into inputs, i just inherit in my action
class the "get[modulename]OrCreate"
and in the "$this->var = new Object()" syntax i write what do i need for
autocomplete ...
[the code that i have pasted here, would be soon realesed into the
"alTsTicketingSystem" plugin]
Alecs


On Tue, Jan 27, 2009 at 5:06 PM, Ian P. Christian <[email protected]>wrote:

>
> I've been looking though the code, and I can't see a way to do this.
> I'm almost certain I must be missing something though, as it seems odd
> that it's not possible with the admin gen.
>
> I'm trying to link to the 'new' action providing a value, for example,
> linking to something like this:
>
> .../mail_dspam_user/new?mail_dspam_user[mail_user_id]=2247
>
> Has anyone done this before?
>
> Thanks,
>
> Ian
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to