youtube

March 31st, 2009 by zhiwei

See this!!

New way to doing a personalization EDM with codeigniter

March 27th, 2009 by zhiwei

Time to time, we have to build customized personalization EDM on our application, as such as thankyou registration email, lost your password , ecard greeting card edm.

Current Approach
——————————————————————–

//retrieve the html template file
$html = file_get_contents(’/home/racer_toolbox/edm/index.html’);
    
$html = $text =  str_replace(’{firstname}’,$firstname,$html);
  
send_email($email_to,$from,$from_name,$reply_to,$return_path,
$subject,$html,$text);

——————————————————————–

Disadvantage : i have the list down all the placeholder variables to be replaced onto for my personalization EDM.
Next thought came to my mind, what if there 10-20 placeholders.  And you miss out 1-2.

 

My New Idea
I came out with a new idea on approaching the implementation of building a personalization EDM

My new idea in words
- Create the email content as part of the template file under views/ folder
- Pass in the data onto the template file which i have just created
- Process the data for display as if i do up the html page for the email
- Assign the content of the email page to a variable ( For example, $html)
- Render the content as html email and send out to the user

New Approach
——————————————————————–

$data['id'] = 1;

//Retrieve user data where id = 1
$data['user_data'] = $this->reg_m->view($data);

//Assign user id 1’s data onto edm.php template and assign the output to $html variable
$html = $this->load->view(’edm.php’,$data,TRUE);
  
 send_email($email_to,$from,$from_name,$reply_to,$return_path,
$subject,$html,$text);

——————————————————————–

Need guide for building multi-player flash game……..

March 27th, 2009 by zhiwei

Need guide for building multi-player flash game…….. (Chess-alike)

Anyone have it?

To be the best developer….

March 26th, 2009 by zhiwei

To be the best developer, you need the following…

- To understand your expertise well and know your stuffs from inside out
- Have passion on the things you do. ( Tiredness kill passion and kill creativity)
- To be a man of ALL trades. ( definitely, you cant survive in the internet world with just one programming skill!! Well, developer are meant to be people who can pick up skill FAST)
- To be part of the open source community
- To able to write whitepapers and educate the world
- To be able to come out with something that no one has…..
- To be able to survive without many day of sleepsss
- Conduct seminars to teach people
- To write your own operating system..
- If you do not have the above, you still far away from an expert =x….

test

February 11th, 2009 by zhiwei

cute_cat

Hello world!

February 11th, 2009 by zhiwei

Welcome to TAC Blogs. This is your first post. Edit or delete it, then start blogging!