Tagged: PHP, Programming Date: 7th, November 2008
Some time ago I wrote this useful smarty plugin wich will enable you to call method of any php class from smarty html template.
It’s very simple and it goes:
/**
* @author Vladimir Cvetic < vladimir[at]ferdinand.rs >
*/
function smarty_function_module($params, &$smarty)
{
/* Check if required params are valid */
if (!isset($params['class']))
{
$smarty->trigger_error(’Module name is not defined!’);
return false;
}
if (!isset($params['method']))
{
$smarty->trigger_error(’Method name is [...]
Tagged: JavaScript, PHP Date: 6th, October 2008
So here is one very simple php class. In past it has proven to be very useful in cases where you need to load multiple javascript files or on large project with a lot of modules (especially if those modules are developed by different persons).
It will help you to avoid double js file loads, it [...]
Tagged: Wordpress Plugins Date: 8th, September 2008
I have just finished first public release of Wordpress plugin “Wordbook“.
Wordbook is Wordpress plugin desinged to integrate Facebook in your blog and your blog in Facebook.
Some of the features include Facebook gallery on your blog, both as a widged and full featured gallery, blog posts appear on Facebook Mini-Feed, display almost anything from your Facebook [...]
Tagged: PHP Date: 12th, August 2008
I have just been reading up meeting notes from PHP Dev team and I found few very interesting conclusions. One of them regards introducing GOTO in PHP (remember GOTO 10?).
There has been a lot of discussion on GOTO statements during the years most of them citing “Goto considered harmful” [uri]. Even with all those [...]
Tagged: Ubuntu Date: 8th, August 2008
There is a bug in current version of AWN (Avant Window Navigator 0.3.1), theme manager is broken. After some time I found out that there is a very simple solution for this problem.
AWN doesn’t make permissions for config folder like it should, owner is root instead of you (the rightful owner). Quick fix is:
sudo chown [...]