2013
Rendering a module inside a component
$document = &JFactory::getDocument(); $renderer = $document->loadRenderer(‘module’); $params = array(‘style’=>$style); echo $renderer->render(JModuleHelper::getModule(‘mod_login’), $params);
Ubuntu delete files/folders
If you want to remove file and folder from terminal you can use rm <filename>delete folder rm -rf <foldername>
ubuntu cp omitting directory
Couple of things here: 1. Don’t use “sudo”. you don’t need it, you already have the permissions to write stuff in your own home directory. 2. You can easily view hidden files and directories in the graphical file manager by selecting View/Show Hidden Files from the menu. Or by pressing Ctrl-H. 3. You need to […]
How to set the env variable for PHP?
You May use set keyword for set the path set path=%path%;c:/wamp/bin/php/php5.3.0 if all the path are set in path variables If you want to see all path list. you can use set %path% you need to append your php path behind this path. This is how you can set environment variable.
Printing Batch file results to a text file
For showing result of batch file in text file, you can use this command chdir > test.txt This command will redirect result to test.txt. When you open test.txt you will found current path of directory in test.txt
wordress Plugin Install Asks for FTP Details
Please use in wp-config.php define(‘FS_METHOD’, ‘direct’);This statement solve my issue.
PHP Fatal error: Allowed memory size
I am receiving the following error whilst trying to download huge size file from live php serve php Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1705654 bytes) Here are some options to increase PHP memory allocation If you can edit or override the system php.ini file, increase the memory limit. […]
How do you run executable files on Windows 7 using the command prompt?
We have Just write the file path of executable file into the command prompt and press enter, like this: c:/pathoffile/fileName.exe
jQuery UI Virtual Keyboard Plugin Example
Here is jQuery UI virtual keyboard plugin. This plugin will provide features like 1) An on-screen virtual keyboard embedded within the browser window which will popup when a specified entry field is focused.2) The user can then type and preview their input before Accepting or Canceling.3) Add custom keyboard layouts easily.4) Add up to four […]
How to Add javascript in Joomla
There are three ways to add javascript Inline JavaScript 1: <?php 2: $document = JFactory::getDocument(); 3: $document->addScriptDeclaration(‘ 4: window.event(“domready”, function() { 5: alert(“An inline JavaScript Declaration”); 6: }); 7: ‘); 8: ?> External JavaScript There are two ways to include a JavaScript file 1: <?php 2: $document = JFactory::getDocument(); 3: $document->addScript(‘/media/system/js/sample.js’); 4: ?> The second […]