Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 406 matches
Smarty Forum Index
Author Message
  Topic: [HLEP!]How can I clear register_resource!
Hielke Hoeve

Replies: 5
Views: 7729

PostForum: General   Posted: Wed Jun 13, 2007 7:17 pm   Subject: [HLEP!]How can I clear register_resource!
$smarty-> clear_cache("db"). Does this mean you have the cache in the database? You will have to clear it yourself by emptying the table.

If you have the cache on disk, you have to cl ...
  Topic: Does really nobody knows???
Hielke Hoeve

Replies: 2
Views: 4682

PostForum: General   Posted: Wed Jun 13, 2007 7:12 pm   Subject: Does really nobody knows???
what does the debug tell you about the variables? Are they filled? I dont use {html_checkboxes} so dunno if the prob is there.
  Topic: $_from = $from
Hielke Hoeve

Replies: 13
Views: 18171

PostForum: Smarty Development   Posted: Wed Jun 13, 2007 7:08 pm   Subject: $_from = $from
i have quite many nested foreach loops, and it works fine... which loop would you reckon it breaks?

{foreach from=1|@range:3 item=row}
{foreach from=1|@range:3 item=col ...
  Topic: why it doesn't work?
Hielke Hoeve

Replies: 11
Views: 10900

PostForum: General   Posted: Wed Jun 13, 2007 7:05 pm   Subject: why it doesn't work?
Are you sure that the value of activated is 1 and not "1"?
  Topic: Wrong Parameter count for array_slice()
Hielke Hoeve

Replies: 3
Views: 7806

PostForum: General   Posted: Thu Jun 07, 2007 6:38 am   Subject: Wrong Parameter count for array_slice()
Check the php doc [1] and read the bit just below the function definition. Especially the part in bold.


[1] http://www.php.net/manual/en/function.array-slice.php
  Topic: Smarty if statement for blank strings?
Hielke Hoeve

Replies: 2
Views: 52100

PostForum: General   Posted: Thu Jun 07, 2007 6:36 am   Subject: Smarty if statement for blank strings?
{if !empty($somevariable)}

{/if}
or
{if $somevariable != ""}

{/if}
etc etc etc.
  Topic: How To Create Dynamic Includes Using Smarty
Hielke Hoeve

Replies: 6
Views: 9410

PostForum: General   Posted: Thu Jun 07, 2007 6:35 am   Subject: How To Create Dynamic Includes Using Smarty
You could check if the tpl file exists [1] if not then use the standard error.tpl (you have to make this ofcourse) if it does exist use the code boots provided.


[1] http://www.php.net/manual/en/f ...
  Topic: Print from a php function within a Smarty template?
Hielke Hoeve

Replies: 2
Views: 5731

PostForum: General   Posted: Tue Jun 05, 2007 11:35 am   Subject: Print from a php function within a Smarty template?
This is a php problem rather than a Smarty problem, but here is a link to the php manual where it explains a bit about catching print() and echo's into a stream. You can use that to catch the output o ...
  Topic: How To Loop Data
Hielke Hoeve

Replies: 7
Views: 11472

PostForum: General   Posted: Tue Jun 05, 2007 11:29 am   Subject: How To Loop Data
its called rtfm.

I have read the f'n manual. Thanks for the smarty-ass comment though.

You asked about looping and that's what is described in the manual.

Celeb gave u an example for mysql re ...
  Topic: >php 5.2.2, smarty->display() fails silently...
Hielke Hoeve

Replies: 7
Views: 14886

PostForum: Installation and Setup   Posted: Mon Jun 04, 2007 9:18 pm   Subject: >php 5.2.2, smarty->display() fails silently...
Can you look into your webserver logs (apache at /varlog/apache). I had the same some time ago and my error was in the logs instead of in the html.
  Topic: smarty cycle?
Hielke Hoeve

Replies: 6
Views: 9179

PostForum: General   Posted: Mon Jun 04, 2007 9:13 pm   Subject: smarty cycle?
You could open the php file and post the bit that causes the problem. Or perhaps see the problem yourself.
  Topic: How To Loop Data
Hielke Hoeve

Replies: 7
Views: 11472

PostForum: General   Posted: Mon Jun 04, 2007 9:12 pm   Subject: How To Loop Data
its called rtfm.
  Topic: dynamic var in template
Hielke Hoeve

Replies: 3
Views: 6441

PostForum: General   Posted: Mon May 14, 2007 11:15 am   Subject: dynamic var in template
use an intermediate variable to create this.
  Topic: show hide section
Hielke Hoeve

Replies: 3
Views: 6416

PostForum: General   Posted: Mon May 14, 2007 11:15 am   Subject: show hide section
surround it by an if statement. if you provide a section with an empty array it will not do anything.
  Topic: Error immediate help needed
Hielke Hoeve

Replies: 2
Views: 5940

PostForum: Installation and Setup   Posted: Sat May 05, 2007 7:07 pm   Subject: Error immediate help needed
use require_once if you want to include classes. this will check if reincludes appear. Only use include() for files that have 'flat' code (no classes or functions).
 
Page 1 of 28 Goto page 1, 2, 3 ... 26, 27, 28  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP