View previous topic :: View next topic |
Author |
Message |
Ralle Smarty Rookie
Joined: 11 Nov 2005 Posts: 6
|
Posted: Fri Nov 11, 2005 5:20 pm Post subject: It doesn't work?? |
|
|
Hello!
I am new to this template stuff. And I was wondering why it wont work?
I took many of the scripts on the smarty site just to have something to start on. And none of the worked. I don't know why...I used the scripts at http://smarty.php.net/manual/en/language.variables.php. I have a webserver on my own computer and on my internet host. it doesn't work on any of them. can you write a very small scrit that says like assign 'cow' 'rasmus' and then output {$cow} ??? |
|
Back to top |
|
reynier Smarty Pro
Joined: 12 Apr 2005 Posts: 104 Location: Cuba
|
|
Back to top |
|
Ralle Smarty Rookie
Joined: 11 Nov 2005 Posts: 6
|
Posted: Fri Nov 11, 2005 7:30 pm Post subject: |
|
|
I've read all that crap but it doesnt work... cant you please write a VERY small script just to start me off?? |
|
Back to top |
|
Ralle Smarty Rookie
Joined: 11 Nov 2005 Posts: 6
|
Posted: Fri Nov 11, 2005 7:44 pm Post subject: |
|
|
where do I get Smarty.Class.php ??? |
|
Back to top |
|
kills Smarty Elite
Joined: 28 May 2004 Posts: 493
|
|
Back to top |
|
Sergey Romanov Smarty n00b
Joined: 13 Nov 2005 Posts: 4
|
Posted: Sun Nov 13, 2005 12:18 pm Post subject: |
|
|
I also just downloaded it and getting crazy with it. I thought that I am absolutely stuped but it turns out that some bug. I downloaded latest version one day ago. My post I submitted just before I read this one
http://www.phpinsider.com/smarty-forum/viewtopic.php?t=6630 |
|
Back to top |
|
Ralle Smarty Rookie
Joined: 11 Nov 2005 Posts: 6
|
Posted: Sun Nov 13, 2005 12:32 pm Post subject: |
|
|
I think it's strange..
I am making my website on phpbb. I mean that I include the phpbb files.
Every time I use the command 'assign' it doesn't work-.. I can use assign_vars which works but when I make arrays, it also doesn't work...
Also.. That smarty.class.php,, where is it in phpbb?? I can't seem to find it.. Do you need one to run smarty?? why does my phpbb work then??
I mean..
phpBB work on this computer and phpBB uses smarty but smarty doesn't work outside phpBB..
strange...
Smarty >< Smart if you can't make it work |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Sun Nov 13, 2005 6:34 pm Post subject: |
|
|
@ralle: Its not strange, you just don't know what you are doing and you aren't following directions. For example, the smarty class is obviously available in the standard download package.
@Sergey: That's no bug. That is exactly how the docs say it works.
Come on guys, try a bit harder before throwing your arms up and pointing fingers. |
|
Back to top |
|
Ralle Smarty Rookie
Joined: 11 Nov 2005 Posts: 6
|
Posted: Sun Nov 13, 2005 9:18 pm Post subject: |
|
|
I'm sorry.. I just noticed that phpBB uses their own version of Smarty.. the standard command assign doesn't exist. It's assign_var or assign_vars. I am trying to get help in the phpBB forums but they are damn lazy.. sends me links to the knowledge base which I already read...
Thanks for trying to help me!
I hope I will learn the phpbb version of smarty soon
RalleBalle |
|
Back to top |
|
Sergey Romanov Smarty n00b
Joined: 13 Nov 2005 Posts: 4
|
Posted: Mon Nov 14, 2005 3:59 am Post subject: |
|
|
@boost: I think that the more complex softvare the mose simple ther interface. That is not about SMARTY. I feal stupy when try to use it even when do simple things hough I have big experiance in programming.
The simple thing that I would do in my PHP script I have to transfer to templates with it's limited functionality.
No one answered my simple question
http://www.phpinsider.com/smarty-forum/viewtopic.php?t=6629
I canot fetch it normaly in PHP code and I cannot do it in template's either. |
|
Back to top |
|
|