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 23 matches
Smarty Forum Index
Author Message
  Topic: quick question re append()
mgm_03

Replies: 2
Views: 5900

PostForum: General   Posted: Tue Dec 28, 2004 11:11 pm   Subject: quick question re append()
thank you.

what is the array name to which the associative array is being appended? (second example)

thanks for your patience...slow learner here.
  Topic: quick question re append()
mgm_03

Replies: 2
Views: 5900

PostForum: General   Posted: Tue Dec 28, 2004 10:50 pm   Subject: quick question re append()
from the manual:

<?php
// passing name/value pairs
$smarty->append("Name", "Fred");
$smarty->append("Address", $address);

// passing an ...
  Topic: SmartyValidate: assigning err msg to template variable
mgm_03

Replies: 1
Views: 10003

PostForum: Add-ons   Posted: Mon Dec 27, 2004 11:19 pm   Subject: SmartyValidate: assigning err msg to template variable
Now..I have this situation:

Submitting a blank form results in the first form field err message displayed (where I expect it to be). Then, putting a value in that form field and submitting should ...
  Topic: SmartyValidate: assigning err msg to template variable
mgm_03

Replies: 1
Views: 10003

PostForum: Add-ons   Posted: Mon Dec 27, 2004 11:12 pm   Subject: SmartyValidate: assigning err msg to template variable
I've implemented the SmartyValidate plugin and am trying to get the template to assign the error message for each form field to a variable. This way I can display the error message anywhere in the tem ...
  Topic: SmartyValidate : assigning err message to template variable
mgm_03

Replies: 0
Views: 3343

PostForum: General   Posted: Mon Dec 27, 2004 10:51 pm   Subject: SmartyValidate : assigning err message to template variable
***I've moved this to the plugins forum ***

I've implemented the SmartyValidate plugin and am trying to get the template to assign the error message for each form field to a variable. This way I ca ...
  Topic: One .php and one .tpl for a whole site?
mgm_03

Replies: 1
Views: 6432

PostForum: General   Posted: Sat Dec 25, 2004 6:09 am   Subject: One .php and one .tpl for a whole site?
Assuming I am getting the Smarty concept then... I could create a site using one .php file and basically one .tpl (in theory anyway)...yes?

Say index.tpl contained header.tpl, footer.tpl, with m ...
  Topic: *smarty noob*...starting <form>'s
mgm_03

Replies: 1
Views: 4320

PostForum: General   Posted: Sat Dec 25, 2004 2:20 am   Subject: *smarty noob*...starting <form>'s
Someone please correct me if I am wrong but it looks like what I need is here ...http://www.phpinsider.com/php/code/SmartyValidate/
  Topic: *smarty noob*...starting <form>'s
mgm_03

Replies: 1
Views: 4320

PostForum: General   Posted: Sat Dec 25, 2004 12:33 am   Subject: *smarty noob*...starting <form>'s
I am sure there is a much more sophisticated way of doing this but am not an advanced PHP'er yet...(the code is from one of my existing non-smarty projects)... Want to create a basic email form with ...
  Topic: unable to read resource : "services.tpl"
mgm_03

Replies: 2
Views: 5218

PostForum: General   Posted: Wed Dec 22, 2004 7:35 pm   Subject: unable to read resource : "services.tpl"
Can I change my group from Smarty Enthusiast to Smarty Moron?
  Topic: unable to read resource : "services.tpl"
mgm_03

Replies: 2
Views: 5218

PostForum: General   Posted: Wed Dec 22, 2004 5:09 pm   Subject: unable to read resource : "services.tpl"
Could use a tip or suggestion to fix this problem. Given that I'm on OS X, the user:group is www:www for both the cache_dir and compile_dir. It looks like the webserver can't access the template ...if ...
  Topic: Unique CSS problem...did not find answer via search
mgm_03

Replies: 1
Views: 4511

PostForum: General   Posted: Mon Dec 20, 2004 7:24 pm   Subject: Unique CSS problem...did not find answer via search
I've solved this problem with a hack that I tried for the hell of it. I do not understand the reason for the problem but this was the solution:


<style>

{literal}
body{f ...
  Topic: Unique CSS problem...did not find answer via search
mgm_03

Replies: 1
Views: 4511

PostForum: General   Posted: Mon Dec 20, 2004 6:38 pm   Subject: Unique CSS problem...did not find answer via search
My css file is an external style sheet embedded into my template. Smarty is reading it correctly...except that only id's are displayed correctly. In the rules below, both the 'body' and 'h3' rules ar ...
  Topic: include css-files?
mgm_03

Replies: 10
Views: 17356

PostForum: General   Posted: Mon Dec 20, 2004 5:58 pm   Subject: include css-files?
All in all, you don't need several .php files to display a decent template. You have that in one .php (ie index) and you're switching between pages with sending a var through the URL

Could you plea ...
  Topic: It worked !....not sure I understand why
mgm_03

Replies: 2
Views: 7611

PostForum: Smarty Development   Posted: Wed Dec 15, 2004 3:47 am   Subject: It worked !....not sure I understand why
Yes, it does. ... thanks very much.
  Topic: It worked !....not sure I understand why
mgm_03

Replies: 2
Views: 7611

PostForum: Smarty Development   Posted: Tue Dec 14, 2004 10:45 pm   Subject: It worked !....not sure I understand why
Beginner smarty user here...I wanted to display a set of links (grouped by category) from mysql. I found this thread below and used it as a reference for my needs.


$result = mysql_query(&quo ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


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