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
Show hidden characters
| { | |
| "scope": "source.php - variable.other.php", | |
| "completions": | |
| [ | |
| { "trigger": "HTML::anchor", "contents": "HTML::anchor(${1:uri}, ${2:title = NULL}, ${3:attributes = NULL}, ${4:protocol = NULL})" }, | |
| { "trigger": "HTML::attributes", "contents": "HTML::attributes(${1:attributes = NULL})" }, | |
| { "trigger": "HTML::chars", "contents": "HTML::chars(${1:value = NULL}, ${2:double_encode = TRUE})" }, | |
| { "trigger": "HTML::email", "contents": "HTML::email(${1:email})" }, | |
| { "trigger": "HTML::entities", "contents": "HTML::entities(${1:value}, ${2:double_encode = TRUE})" }, |
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 | |
| Route::set('project_add', 'project/add/<section>', | |
| array( | |
| 'section' => '(link)', | |
| )) | |
| ->defaults(array( | |
| 'controller' => 'project', | |
| 'action' => 'add_{$section}', | |
| )); |
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 | |
| // Data to send | |
| $res = array('success' => TRUE); | |
| // Disable auto_render | |
| $this->auto_render = FALSE; | |
| // Return JSON | |
| $this->response |
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 | |
| // ORM request | |
| $v = ORM::factory('user')->where('activated', '=', 1); | |
| // Checks the number of results | |
| $x = clone $v; | |
| var_dump($x->count_all()); | |
| // Operations that would change the number of results |
NewerOlder