Stuntsnippets - stuntsnippets.com - StuntCoders

Latest News:

Apache enable htaccess 20 Aug 2013 | 10:14 pm

If .htaccess is not working on your Apache it is possible that it is not enabled. To enable .htaccess on Apache edit following file: Locate following line: and replace it with: Finally – run follow...

JavaScript email validation 11 Jul 2013 | 04:43 pm

Although front end validation is not an only form of validation you should do, you’d still want to validate forms on front end. As forms usually have email address of the person filling it in, it coul...

Magento: force redirect to 404 15 Apr 2013 | 09:04 pm

If you ever find a need to, as a result of your custom action, display the 404 page to customer, you can do it by using the following code inside your controller class This way you’ll be calling the ...

Check if process is running on Linux 2 Mar 2013 | 05:02 pm

If you’d like to check if process is running on Linux OS, you can do it by using code from following snippet:

Zend Registry check if key exists 17 Feb 2013 | 02:39 am

To check if Zend_Registry key exists, you should simply use following snippet:

Run Rails server in production mode 18 Oct 2012 | 02:00 pm

In order to run Rails server in production mode, you need to use following line: However, please notice that Rails assumes that you have your files precompiled for production environment. If you want...

Migrate production 18 Oct 2012 | 12:04 am

Rake migrate doesn’t detect the current environment once you setup app on your production server, so in order to run it with proper profile, you can do following:

Get the array of all attribute options in Magento 11 Oct 2012 | 02:00 pm

Suppose you want to display all the attributes of one product. You can easily get the id of the value by call the unversal method where color is the name of the attribute. If you’ve already loaded th...

BitNami restart Apache 10 Oct 2012 | 01:09 pm

So – you have a BitNami stack on your server, and would like to restart Apache? There is a simple way to restart apache on your BitNami installation. Just use a following snippet. BitNami restart Ap...

Magento load product by SKU 2 Sep 2012 | 02:00 pm

Sometimes you need to get product by its attribute SKU. To do this, you can simply use following snippet and you will have Magento to load product by SKU.

Recently parsed news:

Recent searches: