Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 37 38 39 40 41 ... 147
Or remove the whole line for no link at all!
0 620 posted 12 years ago by xcsteve99
If you are creating an admin module for Magento (learn creating admin module in Magento) then you would surely be asked to create grids (eg. for order listing). Creating grids can be somewhat difficult for the novice Magento programmers, but in this...
0 661 posted 12 years ago by necode
A collection is a Model type containing other Models, it is basically used in Magento to handle product lists (ie. from a category or a bundle option), but not only. TO DO: Explain how Magento Implements a collection - Use this to explain how Mage...
0 617 posted 12 years ago by necode
send mail with attached file examples: http://framework.zend.com/svn/framework/standard/trunk/tests/Zend/Mail/MailTest.php
0 723 posted 12 years ago by necode
Esta funcion limpia un array contra inyección SQL.
0 1028 posted 12 years ago by n19ht
Esta función permite transformar un objeto a un array.
0 558 posted 12 years ago by n19ht
Estas 2 líneas muestran errores en tiempo de ejecución. Pegar donde se inicia el código.
0 669 posted 12 years ago by n19ht
This function validates the URL of a YouTube video. It supports four kinds of URL: ?v=, /v/, #!v=, and the short version (youtu.be). To validate the ID a request to YouTube is made, this is done using a personal class utilizing cURL.
0 778 posted 12 years ago by peckham
Embedding Google’s +1 button is pretty easy and straightforward. All it takes is to include 2 code snippets in your web page. One goes in the header of the page, and the other one goes to wherever where you want the +1 button to render. To do so al...
0 630 posted 12 years ago by necode
Rescatar data desde apprequest
0 651 posted 12 years ago by serialk89
Rol editor con permisos para crear usuarios no pueda tocar al administrador: 1. Solo los roles "Administrator" pueden editar datos de usuarios con rol "Administrator" 2. Cualquier otro perfil con el permiso "edit_users" no puede asignar el rol...
0 529 posted 12 years ago by davidlluna
"Escapa caracteres especiales en la cadena no escapada, teniendo en cuenta el conjunto de caracteres actual de la conexión para que sea seguro usarla en mysql_query(). Si se van a insertar datos binarios, esta función debe ser usada. mysql_real_...
0 1062 posted 12 years ago by skozz
Add the following to your active theme's functions.php file then upload an image named "avatar.jpg" to your active theme's image folder. The image can be named anything you would like but be sure to change it in the code below as well. The last st...
0 576 posted 12 years ago by xcsteve99
Here you see a example to make your table background color fdifferent at last
0 770 posted 12 years ago by Darksider3
A function to make your site title dynamic
0 479 posted 12 years ago by Darksider3
A Class to Logging false logins and more...
0 575 posted 12 years ago by Darksider3
No Comment^^
0 639 posted 12 years ago by Darksider3
Con esto añadirmos un mensaje de alerta en el backend de Wordpress como los de actualizaciones y demás del propio CMS. El código se añade en el archivo function.php del theme.
0 572 posted 12 years ago by skozz
0 462 posted 12 years ago by flexelektro
0 653 posted 12 years ago by resting
Tweaked from the icant.co.uk thumbnail generator
0 627 posted 12 years ago by dillonchr
To check if number is valid Indian Mobile Number.
0 450 posted 12 years ago by mukeshdak
Create a Hello World module in the Magento system Configure this module with routes Create Action Controller(s) for our routes
1 678 posted 12 years ago by necode
Save config: http://inchoo.net/ecommerce/magento/how-to-programmatically-change-magentos-core-config-data/ http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/how_to_add_a_custom_module_for_custom_admin_...
0 518 posted 12 years ago by necode
Every developer has favorite tools and a workflow that’s unique from other developers, so I won’t dictate which specific pieces of software you should use. Instead, for each piece of your development environment, review some choices if you don’...
0 518 posted 12 years ago by necode
1 ... 37 38 39 40 41 ... 147