Created
August 26, 2014 14:56
-
-
Save Arakaki/da6e6ab1da713272e681 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @property CI_Form_validation $form_validation | |
*/ | |
trait PropertyTrait { | |
} | |
class Hoge extends CI_Controller { | |
use PropertyTrait; | |
public function index() { | |
$this->form_validation->alpha(""); | |
echo 'Hello World!'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment