![]() |
Need some help with PHPTAL
Hi!
I'm wondering what's wrong with this: HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">Code:
Message: Unable to find path images in current scopeThanks in advance! |
Do you set the base path somewhere? Though my real reason for replying isn't specifically about PHPTAL as I've never used it, but just to say that whenever I see PHPTAL it always reminds me of PiHKAL because of the similarity at first glance!
|
You will have to define images somewhere in your PHP script, then send it to the template engine, like this:
PHP Code:
|
Quote:
Quote:
Problem solved :-) |
Okey, so a new problem occured. Not really an error, but a problem.
I got this: HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">So that it produces this: Code:
<tr> |
Anyone?? Please I really need this, and I have no idea how to solve this =/
|
Solved it! Thanks anyways.
|
What was the issue?
|
Quote:
That being said, what was the issue? |
It's funny that you didn't even seem to care before, and now you want to know everything. If I wouldn't have posted that I solved it, noone could care less if I solved it, or not. But now that I did, I get 2 replies almost directly.
The issue(problem) was that I wanted to limit the number of results PER row. And if I placed the repeat in the td tag it would write alot of results on the same row. If I were instead to place the repeat in the tr tag, it would just write alot of results with only 1 result per row. I wanted to limit this so I could have for example 6 results per row. The solution was to use array_chunk:HTML Code:
<table tal:condition="showImages" cellspacing="5px"> |
Quote:
Don't accuse us of not caring, if we didn't care we wouldn't be on this forum. |
If I knew the answer I would've posted, there's not much use in posting in a thread of which the original statement or question you've no knowledge of.
|
Look at it from my point of view. I didn't get any replies(I got replies to my first question, yes. But I meant my second question). My conclusion was that noone was interested, nor cared about it. Then why should I post how I solved it, if I thought noone was interested in it?
And I meant that it didn't seem like you cared BEFORE I solved it. When I solved it, obviously I saw you were interested. But how should I know that before? I couldn't. Hence I didn't post the solution. But now I did. |
if you post a question, and you find the answer yourself, it's just polite to post the answer. a lot of people are reading, but you can't expect everyone who doens't know the answer to say "i care, but i don't know the answer".
more: i just dropped in now, and I find the solution to a problem wihtout having to ask. you just shared vital information with the community, which is great ! |
| All times are GMT. The time now is 11:25 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0