Skip to content

Instantly share code, notes, and snippets.

View Ikke's full-sized avatar

Kevin Daudt Ikke

  • Netherlands
  • 10:24 (UTC +01:00)
View GitHub Profile
public function action_test_get($id)
{
$data = array(
'id' => null,
'name' => ""
);
$validate = Validate::factory($data);
echo Kohana::debug($validate->check());
}
if ($submitted === FALSE)
{
// Because no data was submitted, validation will not be forced
return FALSE;
}
GET /km-backend/api/chapters/1/content HTTP/1.1
User-Agent: Fiddler
Host: dev.codingcraftsmen.com
Cache-Control: no-cache
\w+, \w+ \d{1,2}, \d{2, 4}
function testTest()
{
$this->assertTrue(rand(1, 10) > 5);
}
<?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'));
array(
CURLOPT_USERAGENT => 'Mozilla/5.0 (compatible; Kohana v'.Kohana::$version.' +http://kohanaphp.com/)',
Met children:
category => struct(
children => struct(
href => "/categories/[id]/children"
)
)
zonder:
Route::set('api/categories', '<controller>/<id>')
->default(array('action' => ""));
$ git push origin :blaat
To [email protected]:repo.git
- [deleted] blaat