You can use any PHP function in your controller just like you use it in your normal PHP code.
It same in controller too :-
function index()
{
$rand=rand(1,$number);
}Enjoy ,
Marcus
--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
No comments:
Post a Comment