Skip to content

Instantly share code, notes, and snippets.

@yuya-matsushima
Created September 2, 2011 12:12
Show Gist options
  • Save yuya-matsushima/1188466 to your computer and use it in GitHub Desktop.
Save yuya-matsushima/1188466 to your computer and use it in GitHub Desktop.
codeigniter用のvimスニペット
snippet cc
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class `Cucfirst(expand("%"))` extends MY_Controller {
public function __construct()
{
parent::__construct();
}
public function index()
{
}
}
/* End of file `expand("%")` */
/* Location: `CiFilePos(expand("%:p"))` */
snippet cm
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class `Cucfirst(expand("%"))` extends MY_Model {
public function __construct()
{
parent::__construct();
}
public function fname()
{
}
}
/* End of file `expand("%")` */
/* Location: `CiFilePos(expand("%:p"))` */
snippet ctest
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* `expand("%")`
*
*/
class `Cucfirst(expand("%"))` extends TEST_Controller {
public function __construct()
{
parent::__construct();
}
public function fname()
{
$test = '';
$expected = '';
$this->unit->run($test, $expected);
}
}
/* End of file `expand("%")` */
/* Location: `CiFilePos(expand("%:p"))` */
snippet cclass
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class `Cucfirst(expand("%"))` {
public function __construct()
{
parent::__construct();
}
public function index()
{
}
}
/* End of file `expand("%")` */
/* Location: `CiFilePos(expand("%:p"))` */
snippet loc
/* Location: `CiFilePos(expand("%:p"))` */
snippet eof
/* End of file `expand("%")` */
snippet end
/* End of file `expand("%")` */
/* Location: `CiFilePos(expand("%:p"))` */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment