Re: Warning: Illegal offset type in
| From: | Joe Rice | Date: | Mon, 25 Mar 2002 17:00:37 +0000 |
| Subject: | Re: Warning: Illegal offset type in | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3335@lists.php.net to get a copy of this message | ||
man do i look stupid with egg on my face.
thank you...this fixed everything.
joe
Andrei Zmievski(andrei@ispi.net)@Mon, Mar 25, 2002 at 10:37:59AM -0600:
> On Mon, 25 Mar 2002, Joe Rice wrote:
> >
> >
> > Hi,
> > I have just tried chasing down the array.
> > with no luck, i just redefined the array:
> >
> > $search_results = array("0" => "joe rice");
> > $t->assign("RESULTS",$search_results);
> > echo "<pre>";print_r($search_results);echo "</pre>";
> > $t->display("searchresults.tpl");
> >
> > searchresults.tpl now only contains 3 lines:
> > {section loop=r name=$RESULTS}
> > {$RESULTS[r]}
> > {/section}
>
> I see the problem. Your attributes are swapped, they should be:
>
> {section loop=$RESULTS name=r}
>
> -Andrei
>
> 'Any given program, when running correctly, is obsolete.'
> - First Law of Computer Programming
--
How do i get rid of those words in my screen that are coming from you?