iGeek Blog

Jignesh Patel's Blog

categories

recent posts

recent comments



Its the last day of the year 2008. I m confused, I should be happy or not!
So many things happened for me in the last year. Some of the things from those, I will not get in future.. that's sure. If today one can restart the year 2008, I will be agreed. Doing that I want to enjoy it again, want to fix the mistakes I did in that span of a year. But unfortunately, its not possible.

Today I want to decide, anyhow I will make the year 2009 more enjoyable than the 2008 for me. Bye.. 2008..

Welcome.. 2009. Let me be a part of all happiness you going to give you the world.

Its simple and sober to assign value to a variable in Smarty. However assign an array to a variable in .tpl file is not simply available. You can create ab array in PHP and assign it to the variable to be used in smarty template, but its on PHP side.

But what if you want to do something like this ?

{assign var=$col_width value=array('2%','10%','17%','13%','20%','10%','19%')}

No, we cant do that. For doing the same thing you have to put a compiler.set.php file inside smarty directory. Can be downloaded from here : http://smarty.incutio.com/?page=set
Put it here: smarty/libs/plugins

To create array use the syntax below:

{set var=$col_width value=array('2%','10%','17%','13%','20%','10%','19%')}

Today.. is my day, its my birthday. And I'm happy. The reason is obvious.
But another reason for being happy is the PC release of Grand Theft Auto 4. Yes Its going to be launched on 18th Nov 2008 in North America. I'm waiting for it. Yes, I'm a big fan of the GTA series of games. Now let see in how many days I will get it in India. Cheers.. :)

Congratulations Obama, and America! Obama has been elected the 44th President of the United States. American Dreams will be fulfilled by Obama, dont know very well how, but world is talking like that only.

As I am in IT field, I am interested to know how he will be beneficial to me. Comprehensive immigration reform, including the H1-B visa programme will be a ‘top priority’ of the Barack Obama administration, the Democratic presidential candidate has said. But still the issue of H1-B visas not cleared.

As he said, "I will support a temporary increase in the H-1B visa program as a stopgap measure until we can reform our immigration system comprehensively." He has also talked about creating more jobs for American workers here at home.

Asked about his views on the demand to increase the number of H1-B visas by several US companies including Microsoft, Mr. Obama said he supported comprehensive immigration reform to attract some of the world's most talented people to America.

I'm confused, whether he is beneficial for people like me, who wants to go US for $s.