Feeds:
Posts
Comments

What I should Say… its not special for CodeIgniter to hide notice or warning. rather its a PHP thing. I used the following code in my controller.

error_reporting(E_ALL ^ (E_NOTICE | E_WARNING));
so my controller looked like:
function MyController()
 {
 parent::Controller();    
 error_reporting(E_ALL ^ (E_NOTICE | E_WARNING));
 }

you can also do this from your PHP settings. But as I was working on my local machine, I had several works in my PC. and obviously some had different settings. So, I used this technique.

Usually I work with Joomla and WordPress for creating websites. But these CMSs are not that handy to create new a fully customized web-based system. Few weeks back I had to give a quick internal release for our company. So, I had to choose a MVC framework.

I searched for the suitable framework which was easy to learn and provide fast development time. among the popular frameworks like Zend, CakePHP, CodeIgniter, Symphony I chose CodeIgniter. It looked easy to me to start with. and also its faster. Though its not fully Object Oriented, but its well documented with was very important for me.

Bangla in Joomla

Dear Friends… You can create Bangla site with Joomla.

tinyBN is the tinyMCE plugin. get more information in http://ekushey.org/?page/Bangla-TinyMCE

Google transliterate plugin informatics is here:

http://amiworks.co.in/talk/akindicplugin-transliteration-in-indian-lanuguages-for-tinymce/

http://amiworks.co.in/talk/akindicplugin-for-tinymce-and-joomla/

thanks to http://ekushey.org/ and http://amiworks.co.in for their support :)

Wrapper is used in joomla to use some external page in Joomla site. Sometimes we need to pass some joomla variables to the wrapper page. We can do it by slightly editing the wrapper component’s default.php. It is found in:Your_joomla_root/components/com_wrapper/views/wrapper/tmpl/default.php

around line 25 you will find the source of the wrapper. just pass your desired variable in the source and easily you can retrive them using GET method. for example:

you will find near line 25

src=”<?php echo $this->wrapper->url; ?>”

you can change it like:

src=”<?php echo $this->wrapper->url.”?username=”.$user.”&email=”.$email ?>”

you are done. enjoy coding ;)

I know its a old thing to php gigs but I’ve recently learned it. the PHP programmers [like me] learn to code with PHP5. Few days back I registered a domain and uploaded some works. I figured out something wrong in the live server but they were working fine in my localhost. I checked PHP version and found its PHP4. I searched in the google and found a solution to switch php version using .htaccess file.

Add [any]one of the three lines at the end of your current .htaccess file. actually you can test one after one to find which one works best for your host.

AddType x-mapp-php5 .php
AddHandler application/x-httpd-php5 .php
AddHandler cgi-php5 .php

For more info please visit the link below.

Source: http://forum.joomla.org/viewtopic.php?t=100045

last couple of days I was trying to publish feed user actions in friends’ news feed but failed. there is a FBJS function Facebook.showFeedDialog which is used to publish news. the example in the facebook developers’ wiki says to use it like:

var user_message_prompt = “What do you think of this book?”;
var user_message = {value: “write your review here”};
var continuation = function() { //your code here… };

Facebook.showFeedDialog(template_bundle_id, template_data, body_general, 563683308, continuation, user_message_prompt, user_message);

but the problem I faced: I couldn’t use more than one (1) friends ID in the function and it only published to one friends wall.

I talked to a senior app developer [Junal vai] and he provided me a working example. then I found out what I was missing ;) . Just put nothing in the target_id place[in the given example its: 563683308]. put a blank string[ '' ] and you are done. i mean its like:

Facebook.showFeedDialog(template_bundle_id, template_data, body_general, ”, continuation, user_message_prompt, user_message);

Then it will publish in the user’s[actor] profile & to his/her friends news feed. cheers :D

Follow

Get every new post delivered to your Inbox.