KCompsComponent have to extends Component class so
class KCompsComponent extends Component {}
and $session is not a valid for helpers
you have to use $this->Session instead :)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2012/1/7 Daniel <[email protected]>
> After installing Cake 2, I got these errors when I tried to access my
> add view:
>
> Warning (2): call_user_func_array() expects parameter 1 to be a valid
> callback, class 'KCompsComponent' does not have a method 'initialize'
>
> Warning (2): call_user_func_array() expects parameter 1 to be a valid
> callback, class 'KCompsComponent' does not have a method 'startup'
>
> Warning (2): call_user_func_array() expects parameter 1 to be a valid
> callback, class 'KCompsComponent' does not have a method
> 'beforeRender'
>
> Notice (8): Undefined variable: session [APP\View\Users\Add.ctp, line
> 5]Code Context
>
> Thanks.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php