Re: Form Helper Issue

2008-04-16 Thread TechSteve
i think the reason why have this error is because of that cake supposes the input is from a multiple-select-box, whose value is an array, but not from a single-select-box (dorp-down-box), whose value is a single string. so when cake tries to read elements from an array but the feed is a string, th

Re: How to define a global function in bootstap.php?

2008-04-16 Thread TechSteve
the way putting the functions in vendors may be not quite understandable. but it you think of the reusing or redistributing possibilities of the functions, it may make you more sense. that is what I understand. cheers, steve On Apr 16, 7:36 am, Sourabh Sharma <[EMAIL PROTECTED]> wrote: > But i

Re: Hi I need help

2008-04-16 Thread TechSteve
if you just have a single cakephp application and you want the urls like http://127.0.0.1/users/login, you should set the document root of your web server as .../app/webroot. if your application is still in dev stage and you don't care the leading part of the urls, you have make sure you give the

Re: single view for multiple controllers

2008-04-16 Thread TechSteve
vote for this way. Femi Taiwo's method is perfect, but for simple use, if you just have these two actions to be rendered in the same view, easier way will be better in my mind. On Apr 16, 2:19 am, grigri <[EMAIL PROTECTED]> wrote: > function viewx() { > $this->set('students', ...); > $this->

Re: weird behavior in CakePHP 1.2 (possible bug)

2008-03-25 Thread TechSteve
I got the similar thing, but just in Version 1.2 beta. I never met such errors in version 1.2 pre-beta and all previous versions. I found that these errors occur when some variables, either single variables or array elements, are used in views but they are not well defined. Before, I mean in previ