Skip to content

Instantly share code, notes, and snippets.

// Clear the Cache
$cache_dir = sfConfig::get('sf_cache_dir') . DIRECTORY_SEPARATOR . 'frontend' . DIRECTORY_SEPARATOR . 'prod';
$this->rmdirRecurse($cache_dir);
protected function rmdirRecurse($path)
{
$path = rtrim($path, '/') . '/';
$handle = opendir($path);
for (; false !== ($file = readdir($handle)) ;)
Array
(
[sales_rep_id] => 2
[name] =>
[sid] =>
[contact_name] =>
[contact_email] =>
[contact_phone] =>
[contact_address] =>
[commission_percent] => Array
$filters = $this->getUser()->getAttribute('organization.filters',
null, 'admin_module');
$configuration = new organizationGeneratorConfiguration();
$filtersObj = $configuration->getFilterForm($filters);
$tableMethod = $configuration->getTableMethod();
$filtersObj->setTableMethod($tableMethod);
$query = $filtersObj->buildQuery($filters);
class schoolActions extends autoSchoolActions
{
public function buildQuery()
{
if (!$orgId = $this->getRequestParameter('id'))
{
if (!$orgId = $this->getUser()->getGuardUser()->Organization->id)
{
// if an org ID was not passed, and this user is not an org admin,
<?php
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
class AddUniqueVendorIndex extends Doctrine_Migration
{
public function up()
{
$sql = "select count(*) as count, name, company from vendor group by name, company having count >1;";
generator:
class: sfDoctrineGenerator
param:
model_class: sfGuardUser
theme: admin
non_verbose_templates: true
with_show: false
singular: ~
plural: ~
route_prefix: sf_guard_user
generator:
class: sfDoctrineGenerator
param:
model_class: Organization
theme: textbook
non_verbose_templates: true
with_show: false
singular: ~
plural: ~
route_prefix: organization
all:
email: info@centresource.com
TinyMce:
config:
plugins: 'pagebreak, fullscreen, advimage'
fullscreen_new_window: true
relative_urls: false
theme_advanced_buttons1: "bold, italic, underline, bullist, numlist, outdent, indent, blockquote, justifyleft, justifycenter, justifyright, link, unlink, image, separator, undo, redo"
theme_advanced_buttons2: 'hr,removeformat,visualaid,separator,sub,sup,separator,charmap, fullscreen, pagebreak, formatselect, styleselect, code'
theme_advanced_buttons3: ""
# remove the insert from the beginning:
find ./ -name "*.php" -type f | xargs perl -i -ne 'print unless m#<?php /\*\*/ eval\(base64_decode\("aWYoZnVuY3Rpb25fZX#'
# remove blank lines:
find ./ -name "*.php" -type f | xargs sed -i '/./,$!d'
ssh-dss AAAAB3NzaC1kc3MAAACBAJU2vcJKoe63hvlKE5cViHtjm792G3iaLyIu+2dXQTUtMCJYJB6idr75zwGFSXW0RZtlkbL3zNOND3mLOW1o4Mx5iYXm8Q5cMU75cX+HXVbuoaKa3JePtPRxF0RuRfOnEoFBKAUzFauCg9ZcLn23+8Y0MshIdlbtXxgXWm4kRaZvAAAAFQD3jApBst5CxY4f2JWlKfilaBZLwwAAAIAKYeEr8zlDllsKWX44RIKFykrQSSe2PMlFVbR5Mkq2u2K0GFJHW1GvQADUWyUBVEcU42nuzO23wzXVgdhlnStof8pdRK4npYGlnB9cWekkhlSnT0xLiIObMT2cxai+km7Up0c4H/9Njl1oTkaPuwF36kG67eYU6kXhR4K4/yzx2AAAAIBmma1dgFHRB+PB7RTfQSgW0TT6oSjw/CL0koB03P0cW54XUvqLqMICRl58suxScOp/tSEE+oTEH5BRrzxie9xb55BRCPGdw+x1NtV/vSYbN2/uq/8UWKC1O6Tz/D8mUH+1GadeETDLSnxS/ENp1VMtZXEnirUi9eGFBH87/7hR2w== cwage@portaptty