| Re: php troubles |
| by CS_Swan on 2009/9/25 12:55:14 Thank you again Ghia , |
| Re: php troubles |
| by ghia on 2009/9/25 7:43:52 See Smarty manual at the Smarty site. For finding the correct available names look in the PHP code or the list in debug Smarty. For having more data available in the template, it has to be added to the photo array by the PHP code. |
| Re: php troubles |
| by CS_Swan on 2009/9/25 2:08:44 Thank you Ghia, I have two more questions in regards to this problem .. first where do I find a list of the available codes ?? second , I would also like to place the username associated with this picture .. <{photo.uid}> and <{photo.uname}> dont' work. |
| Re: php troubles |
| by ghia on 2009/9/25 0:02:32 Try: le="color: #000000"><?php <{$photo.photo_date|date_format:"%A, %B %e, %Y"}> In PHP you could also assign a formatted string to it, with eg date_format($datetime, 'jS, F Y') . |
| php troubles |
| by CS_Swan on 2009/9/24 23:29:58 photo.photo_date produces an 11 digit number ... how do I change it to a standard date. ? I have tried using <{date(photo.photo_date}> in the template and tried a number of combinations in the php files nothing is working please help. |