Author |
Message |
Topic: Announcement: GoogleMapAPI 1.0 |
jaey
Replies: 9
Views: 14043
|
Forum: Add-ons Posted: Tue Dec 13, 2005 6:21 am Subject: Documentation errors |
I noticed 2 small errors in the documentation:
setControlSize($size)
---------------------
This sets the map control size. Relevant only if map controls are
enabled. la ... |
Topic: Newlines -- CR vs LF |
jaey
Replies: 3
Views: 6135
|
Forum: General Posted: Wed Aug 10, 2005 9:22 pm Subject: Newlines -- CR vs LF |
I had a similar situation where I wanted an export file generated with Smarty to display properly under a windows application. My solution was to do something in my template like:
{$data} ... |
Topic: Banded Report Generator |
jaey
Replies: 90
Views: 258810
|
Forum: Plugins Posted: Thu Jun 23, 2005 1:51 pm Subject: Banded Report Generator |
...the $ is somehow being interpreted as a backreference -- but I am fairly certain this is incorrect behaviour. If someone can verify that, it should be reported as a PHP bug, I think. I could unders ... |
Topic: Section number loop |
jaey
Replies: 6
Views: 9619
|
Forum: General Posted: Fri Jun 10, 2005 2:58 pm Subject: Section number loop |
http://www.phpinsider.com/smarty-forum/viewtopic.php?t=3703 |
Topic: [problem] with nesting sections? |
jaey
Replies: 7
Views: 10261
|
Forum: General Posted: Fri May 06, 2005 2:15 pm Subject: [problem] with nesting sections? |
It would be helpful to see the contents of the arrays you're passing to your template by using the print_r() function in your PHP code. Also, an example of the template output you're expecting would ... |
Topic: Smarty to create MS Word documents. |
jaey
Replies: 10
Views: 43844
|
Forum: Tips and Tricks Posted: Thu Feb 10, 2005 11:58 pm Subject: Smarty to create MS Word documents. |
Reading through the comments of the following PHP documentation pages might provide some helpful information to resolve your issue:
http://www.php.net/function.readfile
http://www.php.net/manual/e ... |
Topic: nested section |
jaey
Replies: 4
Views: 7658
|
Forum: General Posted: Thu Jan 20, 2005 7:26 pm Subject: Re: nested section |
The $sdate keeps on incrementing for 7 days (a week) So this become like a 2 dimensional array.
Based on the code you posted, the above statement is incorrect.
for($i=0;$i<=6;$i++)
& ... |
Topic: Is user accessing page via https or http |
jaey
Replies: 26
Views: 90177
|
Forum: Smarty Development Posted: Thu Jan 20, 2005 6:27 pm Subject: Is user accessing page via https or http |
It only works in auth.php itself so I think I see what you mean, probably as it goes on the next page it unsets it. Do you know anyway to get around this?
Sure, as I said in an earlier post, use $H ... |
Topic: Is user accessing page via https or http |
jaey
Replies: 26
Views: 90177
|
Forum: Smarty Development Posted: Thu Jan 20, 2005 6:15 pm Subject: Is user accessing page via https or http |
I do know that $_SERVER
Is your "echo" statement before or after this line:
require "./auth.php"; |
Topic: Is user accessing page via https or http |
jaey
Replies: 26
Views: 90177
|
Forum: Smarty Development Posted: Thu Jan 20, 2005 4:57 pm Subject: Is user accessing page via https or http |
Based on some of the code snippets you posted, it looks like you're trying to add code to an existing application named "X-Cart". I know that "X-Cart" has a specific list of global variables it allow ... |
Topic: nested section |
jaey
Replies: 4
Views: 7658
|
Forum: General Posted: Wed Jan 19, 2005 5:12 pm Subject: nested section |
I see a problem in the template you posted. For the second "section" you reference "$event_titles_title[day]". |
Topic: How does one make Nested Arrays and Sections play well? |
jaey
Replies: 4
Views: 7658
|
Forum: General Posted: Sun Jan 16, 2005 2:57 am Subject: How does one make Nested Arrays and Sections play well? |
You have a few mistakes in the array references in your template. For example:
{$Campaigns[campaignlist][itemlist].ID}
should be:
{$Campaigns[campaignlist& ... |
Topic: array looping with single element |
jaey
Replies: 6
Views: 20787
|
Forum: Smarty Development Posted: Fri Nov 05, 2004 2:40 am Subject: array looping with single element |
The problem is you're using two different array structures. For example, when there is a single review, the "Content" field is referenced as:
$item['CustomerReviews']['Review'] ... |
Topic: Calling Pages - methodology |
jaey
Replies: 3
Views: 9979
|
Forum: Smarty Development Posted: Tue Sep 28, 2004 3:13 am Subject: Calling Pages - methodology |
if ( $smarty->template_exists( $_GET
I would be careful using this code as it could be used to read arbitrary files on the server. For example: http://myserver/index.php?page=/etc/passwd |
Topic: Newbie: html_select_date doesn't give correct output |
jaey
Replies: 1
Views: 4060
|
Forum: General Posted: Fri Sep 17, 2004 4:16 pm Subject: Newbie: html_select_date doesn't give correct output |
The "month_value_format" attribute only affects the value passed to your PHP script when someone submits your form. If you want to change what is displayed in the web browser, you should use the "mon ... |
|