Author |
Message |
Topic: Compress! Compress!! Compress!!! |
chishikinohito
Replies: 10
Views: 45304
|
Forum: Tips and Tricks Posted: Wed Dec 10, 2014 7:03 am Subject: Compress! Compress!! Compress!!! |
Thank you, that is really fast-forward solution! |
Topic: Compress! Compress!! Compress!!! |
chishikinohito
Replies: 10
Views: 45304
|
Forum: Tips and Tricks Posted: Tue Dec 09, 2014 6:36 pm Subject: Compress! Compress!! Compress!!! |
How do you use it with display or fetch, could you give it an example please? |
Topic: Compress! Compress!! Compress!!! |
chishikinohito
Replies: 10
Views: 45304
|
Forum: Tips and Tricks Posted: Tue Dec 09, 2014 12:32 pm Subject: Thanks, this is nice |
It's really cool to out put everything as single line rather than structured content.
Is anybody aware if it's possible to refrain from doing it in every template though?
I would rather put it ... |
Topic: Smarty Class using in OOP way - Works but looks ugly. Help.. |
chishikinohito
Replies: 20
Views: 29031
|
Forum: General Posted: Sun Sep 16, 2012 8:00 pm Subject: Smarty Class using in OOP way - Works but looks ugly. Help.. |
I see now!! Thank you for your help a lot and good luck to you! Cheers!! |
Topic: Smarty Class using in OOP way - Works but looks ugly. Help.. |
chishikinohito
Replies: 20
Views: 29031
|
Forum: General Posted: Sun Sep 16, 2012 7:26 pm Subject: Smarty Class using in OOP way - Works but looks ugly. Help.. |
I didn't create instances! I will keep learning OOP! Is it always so hard at the beginning with OOP?
You mean design of the code or design of the site (user side)?? ) |
Topic: Smarty Class using in OOP way - Works but looks ugly. Help.. |
chishikinohito
Replies: 20
Views: 29031
|
Forum: General Posted: Sun Sep 16, 2012 7:02 pm Subject: Smarty Class using in OOP way - Works but looks ugly. Help.. |
OHH. Finally. It's cool. Working!
Why does it work this way? Where is __constructor? If I use __constructor I should create an instance?
Will it be slower or something? |
Topic: Smarty Class using in OOP way - Works but looks ugly. Help.. |
chishikinohito
Replies: 20
Views: 29031
|
Forum: General Posted: Sun Sep 16, 2012 6:42 pm Subject: Smarty Class using in OOP way - Works but looks ugly. Help.. |
Ahhh. I see now!! OK! |
Topic: Smarty Class using in OOP way - Works but looks ugly. Help.. |
chishikinohito
Replies: 20
Views: 29031
|
Forum: General Posted: Sun Sep 16, 2012 6:31 pm Subject: Smarty Class using in OOP way - Works but looks ugly. Help.. |
How do you use yours?
I use mine as Template::assign('var', $var); |
Topic: Smarty Class using in OOP way - Works but looks ugly. Help.. |
chishikinohito
Replies: 20
Views: 29031
|
Forum: General Posted: Sun Sep 16, 2012 6:01 pm Subject: Smarty Class using in OOP way - Works but looks ugly. Help.. |
Will it impact performance?
Just out of curiosity could anyone please provide me with an example of working code, based on my very first post, but without using global $Smarty?
Please? I'm not l ... |
Topic: Smarty Class using in OOP way - Works but looks ugly. Help.. |
chishikinohito
Replies: 20
Views: 29031
|
Forum: General Posted: Sun Sep 16, 2012 5:41 pm Subject: Smarty Class using in OOP way - Works but looks ugly. Help.. |
I just want to use, for example:
Template::assign('user_message', $user_message); |
Topic: Smarty Class using in OOP way - Works but looks ugly. Help.. |
chishikinohito
Replies: 20
Views: 29031
|
Forum: General Posted: Sun Sep 16, 2012 5:23 pm Subject: Smarty Class using in OOP way - Works but looks ugly. Help.. |
@douglassdavis Unfortunately your solition still returns the same error? Why it's not a good idea? |
Topic: Smarty Class using in OOP way - Works but looks ugly. Help.. |
chishikinohito
Replies: 20
Views: 29031
|
Forum: General Posted: Sun Sep 16, 2012 4:50 pm Subject: Smarty Class using in OOP way - Works but looks ugly. Help.. |
I think no. I just used the above example and then:
Template::assign('var', $var);
When I used the initial example (with my first post) everything worked fine when I used Template::assign('var', ... |
Topic: Smarty Class using in OOP way - Works but looks ugly. Help.. |
chishikinohito
Replies: 20
Views: 29031
|
Forum: General Posted: Sun Sep 16, 2012 4:36 pm Subject: Smarty Class using in OOP way - Works but looks ugly. Help.. |
Thanks for your advice! I'm just starting OOP and have a lot of misunderstandings!
I have tried the following based on your example and got and error:
"Fatal error: Call to a member function ... |
Topic: Smarty Class using in OOP way - Works but looks ugly. Help.. |
chishikinohito
Replies: 20
Views: 29031
|
Forum: General Posted: Sun Sep 16, 2012 8:41 am Subject: Smarty Class using in OOP way - Works but looks ugly. Help.. |
Hello. I'm really enjoin using Smarty and don't see better way to separate presentation and logic.
I' fairly new to OOP and borrowed the following class to make Smarty work like:
Template: ... |
Topic: combine result from TWO variables |
chishikinohito
Replies: 6
Views: 8274
|
Forum: General Posted: Fri Jan 20, 2012 8:06 pm Subject: combine result from TWO variables |
Thank you very much, again!!
Just got a good news that SOPA and PIPA sucked!!! At least for so far! (sorry for off topic - just glad about it!! I think all of as are!!) |
|