repo.or.cz
/
akelos.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Adding tests for securing private variable inclussion on templates.
[akelos.git]
/
test
/
fixtures
/
app
/
controllers
/
post_controller.php
blob
c43d2eb8a909479d1a09347644f95b09b3adb715
1
<
?php
2
3
class
PostController
extends
ApplicationController
4
{
5
var
$finder_options
=
array
(
'Post'
=>
array
(
'include'
=>
'comments'
));
6
7
function
comments
()
8
{
9
$this
->
renderText
(
join
(
''
,
Ak
::
collect
(
$this
->
post
->
comments
,
'id'
,
'body'
)));
10
}
11
}
12
13
14
?
>