Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 371 372 373 374 375 ... 552
0 1443 posted 17 years ago by lexx
0 1818 posted 17 years ago by lexx
Hey everyone, I was noticing that there are a lot of ways that people are using to write their own string truncation functions wit the use of other functions like 'substr_replace', but it kinda seemed like a lot of them went a bit too far out to make...
1 1988 posted 17 years ago by Admiral
nothing special :)
0 2150 posted 17 years ago by adamcoulombe
Add snippet in BaseFormPropel.class.php
1 2516 posted 17 years ago by skwok
0 1911 posted 17 years ago by ajbatac
2 1745 posted 17 years ago by sennesaelium
Image files are: header_1 , header_2, header_3, header_4
0 1505 posted 17 years ago by donatkinson
0 1776 posted 17 years ago by aadsm
Put the following in your controller to define the content-type for *that* specific controller.
0 1687 posted 17 years ago by chrisamini
0 1841 posted 17 years ago by donatkinson
1 1460 posted 17 years ago by jnbn
1 2012 posted 17 years ago by fris
2 2003 posted 17 years ago by quickredfox
[Credit - Sam Allen, Dot Net Perls](http://dotnetperls.com/remove-html-tags)
2 2694 posted 17 years ago by jasonseney
1 2034 posted 17 years ago by jasonseney
A style of code reuse. Breaking methods (in this case MVC controller) into very small reusable atomic chunks that either perform an operation then return an ActionResult OR return null, then using with the null-coalescing operator.
0 1933 posted 17 years ago by jmcd
0 1682 posted 17 years ago by sennesaelium
This code allows you to track each step of Magento's One Page Checkout in Google Analytics. I installed it at the bottom of my `checkout/onepage.phtml` template file. Once installed, you can set up a funnel for the following: * `/checkout/onepage/...
0 1934 posted 17 years ago by jdbartlett
Example markup: <p>This is the first part of the text <a class="toggle">[+]</a><span>this part is hidden until clicking the toggle link.</span></p> The script will show and hide text when the toggle link is c...
1 1791 posted 17 years ago by mikemetcalf
1 ... 371 372 373 374 375 ... 552