Author |
Message |
Topic: New plugin: SmartyColumnSort! |
TGKnIght
Replies: 89
Views: 189742
|
Forum: Plugins Posted: Tue May 12, 2009 11:24 pm Subject: New plugin: SmartyColumnSort! |
I've created a download section on my website for updated versions of this plugin at http://ideamesh.com/file/7/SmartyColumnSort-0.940.html |
Topic: Setting up MySQL recordset as array to be parsed by Smarty |
TGKnIght
Replies: 6
Views: 81061
|
Forum: Tips and Tricks Posted: Thu Oct 02, 2008 4:36 am Subject: Setting up MySQL recordset as array to be parsed by Smarty |
Yes, the function assign_md_array is meant to be a part of your custom class extending the Smarty class.
The code in the original post doesn't require you to create the custom class if that is the ... |
Topic: How to create a site through one index.php controller file |
TGKnIght
Replies: 16
Views: 98192
|
Forum: Tips and Tricks Posted: Thu Apr 19, 2007 11:35 pm Subject: How to create a site through one index.php controller file |
In the one framework I've built I do it like Celeb's example.
I am currently working on a different framework and have not yet determined how I want to approach it.
The nice thing about having e ... |
Topic: Inserting data from a MySQL database into a Smarty template |
TGKnIght
Replies: 27
Views: 44441
|
Forum: General Posted: Sat Apr 14, 2007 11:30 pm Subject: Inserting data from a MySQL database into a Smarty template |
Would need to see your smarty class, and anywhere you setup paths and smarty related things to help on this.
Try using absolute paths instead of relative ones i.e. "C:/include/" instead o ... |
Topic: Getting assigned variables from the php file |
TGKnIght
Replies: 3
Views: 7210
|
Forum: General Posted: Thu Apr 12, 2007 7:32 pm Subject: Getting assigned variables from the php file |
Either make each of these values elements of an array, assign the whole array to smarty as one variable, then loop through that array.
Or you can always use {if isset($somevar)}{$somevar}{/if} |
Topic: Getting assigned variables from the php file |
TGKnIght
Replies: 3
Views: 7210
|
Forum: General Posted: Thu Apr 12, 2007 4:57 pm Subject: Getting assigned variables from the php file |
Either set $smarty->debugging = 1
http://smarty.php.net/manual/en/variable.debugging.php
or put a {debug} in the template you want to debug
http://smarty.php.net/manual/en/language.functi ... |
Topic: plugin: function.us_state_select.php |
TGKnIght
Replies: 4
Views: 13288
|
Forum: Plugins Posted: Wed Apr 11, 2007 8:00 pm Subject: plugin: function.us_state_select.php |
This one has a few more options that I like
http://smarty.incutio.com/?page=html_select_state |
Topic: Inserting data from a MySQL database into a Smarty template |
TGKnIght
Replies: 27
Views: 44441
|
Forum: General Posted: Tue Apr 10, 2007 1:10 pm Subject: Inserting data from a MySQL database into a Smarty template |
Do you have your smarty debug template up? It should show you all the variables assigned to smarty. From there you can figure out what keys are in the variable.
If there's no debug template appear ... |
Topic: Inserting data from a MySQL database into a Smarty template |
TGKnIght
Replies: 27
Views: 44441
|
Forum: General Posted: Mon Apr 09, 2007 2:21 pm Subject: Inserting data from a MySQL database into a Smarty template |
Arrays are simple, they are variables that have multiple values within them.'
From your PHP file use print_r($varname) to dump the values within the array in question.
You will see the KEYS and ... |
Topic: Inserting data from a MySQL database into a Smarty template |
TGKnIght
Replies: 27
Views: 44441
|
Forum: General Posted: Thu Apr 05, 2007 1:31 pm Subject: Inserting data from a MySQL database into a Smarty template |
Okay well if it's outputting the word Array then that means you ARE getting output... This would be the same behavior as if you echo'd an array. (Which you are) Have you tried accessing any of the e ... |
Topic: Inserting data from a MySQL database into a Smarty template |
TGKnIght
Replies: 27
Views: 44441
|
Forum: General Posted: Wed Apr 04, 2007 9:14 pm Subject: Inserting data from a MySQL database into a Smarty template |
You put that into the beginning of your index.php right?
Make sure to empty out your cache and compiled directories..
Try doing an echo "TEST"; in your index.php?? |
Topic: Code tag in Smarty |
TGKnIght
Replies: 2
Views: 7030
|
Forum: General Posted: Wed Apr 04, 2007 1:25 pm Subject: Code tag in Smarty |
You would do this just as you would in a normal HTML file.
Namely the < and > indicate to a web browser to parse an HTML tag.
To literally display these characters in an HTML file you need ... |
Topic: Inserting data from a MySQL database into a Smarty template |
TGKnIght
Replies: 27
Views: 44441
|
Forum: General Posted: Tue Apr 03, 2007 1:43 pm Subject: Inserting data from a MySQL database into a Smarty template |
Try adding this somewhere in the beginning of your script
ini_set('display_errors',1);
//error reporting is wierd, it represents the setting as a number
//E_ALL = 2047
//E_ALL & ~E ... |
Topic: Downloaded .tar can not be decompressed, has no files |
TGKnIght
Replies: 13
Views: 22065
|
Forum: Installation and Setup Posted: Mon Mar 26, 2007 1:29 pm Subject: Downloaded .tar can not be decompressed, has no files |
Use http://www.7-zip.org/ |
Topic: html_options + css |
TGKnIght
Replies: 1
Views: 6571
|
Forum: General Posted: Mon Mar 19, 2007 6:01 pm Subject: html_options + css |
http://smarty.php.net/manual/en/language.function.html.options.php
All parameters that are not in the list above are printed as name/value-pairs inside the <select> tag. They are ignored if t ... |
|