Re: PHP & smarty - nested queries and arrays
| From: | Matthew Weier O'Phinney | Date: | Thu, 11 Aug 2005 22:03:25 +0000 |
| Subject: | Re: PHP & smarty - nested queries and arrays | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-220484@lists.php.net to get a copy of this message | ||
* Amanda Hemmerich <ahemmeri@indiana.edu>:
> I'm using PHP and Smarty to try to build an array of arrays using the
> results from nested queries. I am just learning about nested arrays,
> and I'm not sure what I'm doing wrong.
>
> I am hoping someone can give me a hint as to what I am doing wrong. I
> looked on php.net, but still couldn't figure it out.
>
> If I remove the PHP foreach loop, it works fine, except, of course, no
> sub projects show up. The error must be in there, but I'm just not
> seeing it.
>
> I get the following error with the code below:
>
> Warning: Smarty error: unable to read resource: "welcome/Object.tpl" in
> /usr/local/lib/php/Smarty/Smarty.class.php on line 1088
Actually, this error indicates it either cannot find or open the
template file. make sure you have a 'welcome' directory in your
templates directory, and an Object.tpl file within -- and that they have
permissions such that the web server can open them.
--
Matthew Weier O'Phinney
Zend Certified Engineer
http://weierophinney.net/matthew/