No in the place of XX, you have to put your template name and in template, you have to include that partial
On Sun, May 9, 2010 at 10:10 PM, MatZ <[email protected]> wrote: > In the place of the XX i have to put the name of my partial?? > for example: > > function execute_Notification(sfWebRequest $request){ > //some code... > $this->Mymsg(); > > } > > > > On Sun, May 9, 2010 at 5:36 PM, Stéphane <[email protected]> wrote: > >> Hi, >> >> You have to call the method in your action ! >> >> >> function executeXX(sfWebRequest $request){ >> //some code... >> $this->Mymsg(); >> } >> >> Cheers, >> >> Before Printing, Think about Your Environmental Responsibility! >> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! >> >> >> 2010/5/9 José Pais <[email protected]> >> >> hi people. i have a problem here. >>> >>> in a module message i create a partial _notification and then in the >>> actions i create a method Mymessage() where i create a query to >>> database, my question is how can i access to the results of my method >>> in the partial?? >>> >>> //method of action >>> >>> public function Mymsg() >>> { >>> $this->autor = Doctrine_Query::create() >>> ->select('b.username') >>> ->from('sfGuardUser b') >>> ->where('b.id = ?', $this->site_noticia- >>> >getSf_guard_user_id()) >>> ->fetchOne(); >>> >>> return $autor; >>> } >>> >>> //in my partial _notification >>> >>> the user is <?php echo $autor ?> >>> >>> but i get an empty variable..what's the problem? >>> >>> -- >>> If you want to report a vulnerability issue on symfony, please send it to >>> security at symfony-project.com >>> >>> 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]<symfony-users%[email protected]> >>> For more options, visit this group at >>> http://groups.google.com/group/symfony-users?hl=en >>> >> >> -- >> If you want to report a vulnerability issue on symfony, please send it to >> security at symfony-project.com >> >> 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]<symfony-users%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/symfony-users?hl=en >> > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > 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]<symfony-users%[email protected]> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- Regards, Dheeraj -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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
