Skip to content

Instantly share code, notes, and snippets.

@tobysteward
tobysteward / BlogController.php
Last active Oct 26, 2022
Laravel AJAX Pagination with JQuery
View BlogController.php
<?php
class BlogController extends Controller
{
/**
* Posts
*
* @return void
*/
public function showPosts()
@jmertic
jmertic / gist:6294266
Created Aug 21, 2013
Silent install a package on an instance from the command line in SugarCRM with this script
View gist:6294266
#!/usr/bin/env php
<?php
function usage()
{
print("usage: -i /path/to/instance -p /path/to/expanded/module -z /path/to/zipfile\n");
exit(1);
}
$opts = getopt('i:p:z:');