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
| public function action_test_get($id) | |
| { | |
| $data = array( | |
| 'id' => null, | |
| 'name' => "" | |
| ); | |
| $validate = Validate::factory($data); | |
| echo Kohana::debug($validate->check()); | |
| } |
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
| if ($submitted === FALSE) | |
| { | |
| // Because no data was submitted, validation will not be forced | |
| return FALSE; | |
| } |
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
| GET /km-backend/api/chapters/1/content HTTP/1.1 | |
| User-Agent: Fiddler | |
| Host: dev.codingcraftsmen.com | |
| Cache-Control: no-cache |
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
| \w+, \w+ \d{1,2}, \d{2, 4} |
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
| function testTest() | |
| { | |
| $this->assertTrue(rand(1, 10) > 5); | |
| } |
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 | |
| /** | |
| * Created by IntelliJ IDEA. | |
| * User: Baddy | |
| * Date: 21-jun-2010 | |
| * Time: 12:50:02 | |
| * To change this template use File | Settings | File Templates. | |
| */ | |
| echo form::open('category/<?=$form_action?>', array('id'=>'form-simple')); |
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
| array( | |
| CURLOPT_USERAGENT => 'Mozilla/5.0 (compatible; Kohana v'.Kohana::$version.' +http://kohanaphp.com/)', |
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
| Met children: | |
| category => struct( | |
| children => struct( | |
| href => "/categories/[id]/children" | |
| ) | |
| ) | |
| zonder: |
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
| Route::set('api/categories', '<controller>/<id>') | |
| ->default(array('action' => "")); |
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
| $ git push origin :blaat | |
| To [email protected]:repo.git | |
| - [deleted] blaat |