Re: error after loading cakephp at dreamhost (newbie)

2011-10-22 Thread manuj
problem solved

On Oct 21, 9:09 pm, manuj  wrote:
> error after loading cakephp at dreamhost
>
> Fatal Error (256): [MissingHelperException] Helper class FormHelper
> could not be found.
> #0 /home/legalpanda/legalpanda.abmantech.com/lib/Cake/View/
> View.php(577): HelperCollection->load('Form', Array)
> #1 /home/legalpanda/legalpanda.abmantech.com/lib/Cake/View/
> View.php(359): View->loadHelpers()
> #2 /home/legalpanda/legalpanda.abmantech.com/lib/Cake/Controller/
> Controller.php(898): View->render('error500', NULL)
> #3 /home/legalpanda/legalpanda.abmantech.com/lib/Cake/Error/
> ExceptionRenderer.php(281): Controller->render('error500')
> #4 /home/legalpanda/legalpanda.abmantech.com/lib/Cake/Error/
> ExceptionRenderer.php(194): ExceptionRenderer->_outputMessageSafe('error500')
>
> #5 /home/legalpanda/legalpanda.abmantech.com/lib/Cake/Error/
> ExceptionRenderer.php(170): 
> ExceptionRenderer->_cakeError(Object(MissingHelperException))
>
> #6 /home/legalpanda/legalpanda.abmantech.com/lib/Cake/Error/
> ErrorHandler.php(127): ExceptionRenderer->render(Array, Array)
> #7 [internal function]: ErrorHandler::handleException()
> #8 {main} [CORE/Cake/Error/ErrorHandler.php, line 136]

-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


error after loading cakephp at dreamhost (newbie)

2011-10-21 Thread manuj
error after loading cakephp at dreamhost

Fatal Error (256): [MissingHelperException] Helper class FormHelper
could not be found.
#0 /home/legalpanda/legalpanda.abmantech.com/lib/Cake/View/
View.php(577): HelperCollection->load('Form', Array)
#1 /home/legalpanda/legalpanda.abmantech.com/lib/Cake/View/
View.php(359): View->loadHelpers()
#2 /home/legalpanda/legalpanda.abmantech.com/lib/Cake/Controller/
Controller.php(898): View->render('error500', NULL)
#3 /home/legalpanda/legalpanda.abmantech.com/lib/Cake/Error/
ExceptionRenderer.php(281): Controller->render('error500')
#4 /home/legalpanda/legalpanda.abmantech.com/lib/Cake/Error/
ExceptionRenderer.php(194): ExceptionRenderer-
>_outputMessageSafe('error500')
#5 /home/legalpanda/legalpanda.abmantech.com/lib/Cake/Error/
ExceptionRenderer.php(170): ExceptionRenderer-
>_cakeError(Object(MissingHelperException))
#6 /home/legalpanda/legalpanda.abmantech.com/lib/Cake/Error/
ErrorHandler.php(127): ExceptionRenderer->render(Array, Array)
#7 [internal function]: ErrorHandler::handleException()
#8 {main} [CORE/Cake/Error/ErrorHandler.php, line 136]

-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: break the code for controller file

2008-04-02 Thread manuj bansal
I have tried it down by making simple php file (quality.php) and
then add functions in quality.php from animals controller
then i use include("quality.php") in animals controller
but it doesn't work

On Wed, Apr 2, 2008 at 4:12 PM, Adam Royle <[EMAIL PROTECTED]> wrote:

>
> Well, CakePHP is just regular PHP, so you can still do includes or
> whatever you want. What is your controller code doing that takes so
> many lines of code?
>
> Adam
>
> On Apr 2, 8:28 pm, mans <[EMAIL PROTECTED]> wrote:
> > but these functions are not reusable and I am also not interesting in
> > making components.
> > Is their not some solution like (as in simple php we use include or
> > require) we made some file and include it in controller ?
> >
> > On Apr 1, 5:21 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> >
> > > Well, two things:
> >
> > > 1. Fat models, skinny controllers.
> > > 2. Create and use components.
> >
> > > On Tue, Apr 1, 2008 at 9:07 AM, mans <[EMAIL PROTECTED]> wrote:
> >
> > > >  My controller files code has gone very long. I want to break it in
> > > >  different files.
> > > >  thanks in advance
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Autocomplete

2008-02-26 Thread manuj

thanks for the help

I get bug before because I have included these files in default.ctp
but after shifting these files to index.ctp

 it works prfectly

1) but it showing error
[Break on this error] http://www.w3.or...

after going their it shows missing controller 

2) and did u have some why this is not working when i include these
files to default.ctp

On Feb 26, 12:58 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> do you also have the Scriptaculous files included in the layout.
> I had a look and Ajax.Autocompleter is defnes in controls.js
>
> That console message indicates that Ajax.Autocompleter is "undefined"
> so there must be some problem with js files broken or not loading.
>
> On Feb 26, 4:57 am, manuj <[EMAIL PROTECTED]> wrote:
>
> > Sorry I have not given enough details
>
> > prototype is included properly
>
> > i get console error message in firbug of firefox
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Autocomplete

2008-02-25 Thread manuj

Sorry I have not given enough details

prototype is included properly

i get console error message in firbug of firefox




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Autocomplete

2008-02-25 Thread manuj

I have folowed all the instruction in tempdocs for making autocomplete

I get console error "Ajax.Autocompleter is not a constructor"

and in html "autocomplete = off"

thanks in advance for help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



newbie : want 2 pagination on a same page of same table

2008-02-20 Thread manuj

I have one table name users

In this I like to paginate two different users list one is from asia
(first list) and another from africa (second list)

Problem is coming that when i go to second page of first list (asian
users) it also shows the second page of second list (african users)

i have tried ajax pagination http://cake.insertdesignhere.com/posts/view/16

but same problem presists

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



bug in xml

2008-02-01 Thread manuj

i have put some xml code in views/controller/xml/action.ctp,
when I run this code http//servername/controller/action.ctp,
it gives error due to
blank charcters before starting of code


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: want to call function in default ctp from app model

2007-12-17 Thread manuj bansal

thanks for the idea

plz help me how to use request action in view for calling function in
app_controller
and app_controller to model
and my view file is default.ctp

because for calling request action i need controller name

and for calling function in app controller i need model name

On Dec 17, 2:21 pm, MrTufty <[EMAIL PROTECTED]> wrote:
> It looks like you haven't really studied the whole MVC, separation of
> concerns thing. You shouldn't be calling functions in the model from
> the view. You shouldn't even be calling controller functions from the
> view. In short, the controller queries the model and then sends the
> information on to the view to be displayed.
>
> In this case though, if you're determined to make it work, create a
> function in your controller that calls the function in your app_model
> and sets a view variable with the result. That will then work fine
> when called via requestAction. This will work, but it's not exactly
> best practice.
>
> Tufty
>
> On Dec 17, 6:07 am, manuj bansal <[EMAIL PROTECTED]> wrote:
>
>
>
> > i know the metod of calling functions from controller and settinng
> > variable
>
> > but i have to call it fron view file
>
> > i found 1 method
>
> > requestAction
>
> > but i am not find way how to call function from app_model
>
> > On Dec 17, 10:58 am, Grant Cox <[EMAIL PROTECTED]> wrote:
>
> > > Please be more clear in your question.
>
> > > You cannot call model functions from a view.  You must call the model
> > > function from your controller, and set() the data for the view.
>
> > > On Dec 17, 3:09 pm, manuj bansal <[EMAIL PROTECTED]> wrote:
>
> > > > my code is as follows
> > > > ***app_model.php
> > > > (code)***
>
> > > > function abc($y)
> > > > {
> > > > $v = $this->query(using $y);
> > > > return $v;}
>
> > > > *default.ctp
> > > > (code)**
>
> > > > i want to call above function frome here by passing some argument
>
> > > > ***--**-
> > > >  Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: want to call function in default ctp from app model

2007-12-16 Thread manuj bansal

i know the metod of calling functions from controller and settinng
variable

but i have to call it fron view file

i found 1 method

requestAction

but i am not find way how to call function from app_model

On Dec 17, 10:58 am, Grant Cox <[EMAIL PROTECTED]> wrote:
> Please be more clear in your question.
>
> You cannot call model functions from a view.  You must call the model
> function from your controller, and set() the data for the view.
>
> On Dec 17, 3:09 pm, manuj bansal <[EMAIL PROTECTED]> wrote:
>
>
>
> > my code is as follows
> > ***app_model.php
> > (code)***
>
> > function abc($y)
> > {
> > $v = $this->query(using $y);
> > return $v;}
>
> > *default.ctp
> > (code)**
>
> > i want to call above function frome here by passing some argument
>
> > ***-**-
> >  Hide quoted text -
>
> - Show quoted text -

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



how to call function from app model in view file

2007-12-16 Thread manuj bansal

I want to call function in view by passing argument and wanted a value
in return

***app_model.php
(code)**

function abc ($y)
{
   $v = $this->query(using $y in query);
   return $v;
}


**default.ctp
(code)

now how can i call this function by passing the argument $y and get
the value $v


*
thanks in advance

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



want to call function in default ctp from app model

2007-12-16 Thread manuj bansal

my code is as follows
***app_model.php
(code)***

function abc($y)
{
$v = $this->query(using $y);
return $v;
}
*default.ctp
(code)**

i want to call above function frome here by passing some argument

*

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: select box validation in CakaPHP 1.2

2007-10-20 Thread manuj bansal

your problem may be solved by this link

http://groups.google.com/group/cake-php/browse_thread/thread/8c89ca42d68496a0/89e2724d53aaad65?lnk=gst&q=select+box+validation#89e2724d53aaad65

On Oct 20, 12:50 pm, senser <[EMAIL PROTECTED]> wrote:
> Hi  manuj.
>
> Your proposal didn't solve my problem. I think I did read somewhere in
> group postings that using fromHelpr->input is the right way for form
> fields and using formHelper->select, formHelper->label, ... etc will
> be deprecated in next versions of CakePHP. I'm not sure for this and
> correct me if I'm wrong.
>
> On Oct 19, 8:06 pm, manuj bansalr <[EMAIL PROTECTED]> wrote:
>
>
>
> > i didnt get your code you want select option then why r you going thru
> > input function
>
> > try it
>
> > *view code
>
> > echo $form->label('modelname.name')
> > echo $form->select('modelname.name',array('value'=>'text'));
> > echo $form->error('it can't be blank');
>
> > ***model code*
>
> > var
> > $validate=array('name'=>VALID_NOT_EMPTY);
>
> > IT IS FOR SELECT OPTION
>
> > On Oct 19, 9:24 pm, senser <[EMAIL PROTECTED]> wrote:
>
> > > Hi there!
>
> > > I'm trying to write a code for displaying a select box with several
> > > options (tax years for example) and I have to validate the data passed
> > > by that select box. I want the user to must select an option from the
> > > list.
> > > Here is the code from view file where I populate the box using
> > > formHelper:
>
> > > /CODE**/
> > > print $form->input('CustomerTaxYear.tax_years_id',
> > > array('type'=>'select', 'label'=>'Tax Year', 'options'=>
> > > $taxYearsArray,  'size'=>3,'error'=>array('required'=>'Tax Year is
> > > obligatory', 'maxlength'=>'Tax year code max length is 3 symbols',
> > > 'number'=>'Tax year code must be a number')));
> > > /CODE_END/
>
> > > and here is the part of validation array:
>
> > > /CODE**/
> > > var
> > > $validate=array( 'tax_years_id'=>array('required'=>VALID_NOT_EMPTY,
> > > 
> > > 'maxlength'=>array('rule'=>array('between',1,3)),
> > > 
> > > 'number'=>VALID_NUMBER));
> > > /CODE_END/
>
> > > The result is that if the user doesn't select an element from the
> > > select box, there is no error message displayed and the validation is
> > > passed but the form data is not stored in DB, because the field
> > > "tax_years_id" doesn't have default value which is correct behaviour.
>
> > > I've tried with 'showEmpty' set to true but with no success. If there
> > > is no value selected in select box, the passed array doesn't even have
> > > an a element called 'tax_years_id'. (i make a dump of $this->data and
> > > in the array element with name 'tax_years_id' is missing). I've also
> > > tried to make an empty element and select it by default, but I think
> > > this is "ugly" approach, because if user selects some tax year but
> > > form validation fails by reason of other wrong filled field and
> > > selected element in tax year select box is lost.- Hide quoted text -
>
> - Show quoted text -


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: select box validation in CakaPHP 1.2

2007-10-20 Thread manuj bansal

thanks for info
i am not sure about it

as mannual,
it looks they remove $html->submit
but they didn't  mention their about $form->submit will be
depreceated


On Oct 20, 12:50 pm, senser <[EMAIL PROTECTED]> wrote:
> Hi  manuj.
>
> Your proposal didn't solve my problem. I think I did read somewhere in
> group postings that using fromHelpr->input is the right way for form
> fields and using formHelper->select, formHelper->label, ... etc will
> be deprecated in next versions of CakePHP. I'm not sure for this and
> correct me if I'm wrong.
>
> On Oct 19, 8:06 pm, manuj bansalr <[EMAIL PROTECTED]> wrote:
>
>
>
> > i didnt get your code you want select option then why r you going thru
> > input function
>
> > try it
>
> > *view code
>
> > echo $form->label('modelname.name')
> > echo $form->select('modelname.name',array('value'=>'text'));
> > echo $form->error('it can't be blank');
>
> > ***model code*
>
> > var
> > $validate=array('name'=>VALID_NOT_EMPTY);
>
> > IT IS FOR SELECT OPTION
>
> > On Oct 19, 9:24 pm, senser <[EMAIL PROTECTED]> wrote:
>
> > > Hi there!
>
> > > I'm trying to write a code for displaying a select box with several
> > > options (tax years for example) and I have to validate the data passed
> > > by that select box. I want the user to must select an option from the
> > > list.
> > > Here is the code from view file where I populate the box using
> > > formHelper:
>
> > > /CODE**/
> > > print $form->input('CustomerTaxYear.tax_years_id',
> > > array('type'=>'select', 'label'=>'Tax Year', 'options'=>
> > > $taxYearsArray,  'size'=>3,'error'=>array('required'=>'Tax Year is
> > > obligatory', 'maxlength'=>'Tax year code max length is 3 symbols',
> > > 'number'=>'Tax year code must be a number')));
> > > /CODE_END/
>
> > > and here is the part of validation array:
>
> > > /CODE**/
> > > var
> > > $validate=array( 'tax_years_id'=>array('required'=>VALID_NOT_EMPTY,
> > > 
> > > 'maxlength'=>array('rule'=>array('between',1,3)),
> > > 
> > > 'number'=>VALID_NUMBER));
> > > /CODE_END/
>
> > > The result is that if the user doesn't select an element from the
> > > select box, there is no error message displayed and the validation is
> > > passed but the form data is not stored in DB, because the field
> > > "tax_years_id" doesn't have default value which is correct behaviour.
>
> > > I've tried with 'showEmpty' set to true but with no success. If there
> > > is no value selected in select box, the passed array doesn't even have
> > > an a element called 'tax_years_id'. (i make a dump of $this->data and
> > > in the array element with name 'tax_years_id' is missing). I've also
> > > tried to make an empty element and select it by default, but I think
> > > this is "ugly" approach, because if user selects some tax year but
> > > form validation fails by reason of other wrong filled field and
> > > selected element in tax year select box is lost.- Hide quoted text -
>
> - Show quoted text -


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: want to update more than one fields in one query

2007-10-19 Thread manuj bansal

i wanted to update more than one rows in database table by one query
only in cakephp

for eg  we can use deleteall to delete more than one field at one
query

On Oct 20, 12:26 am, "Wayne Fay" <[EMAIL PROTECTED]> wrote:
> You'll have a lot more luck on this list if you carefully (and fully)
> explain what you have vs what you want in complete English sentences.
>
> Wayne
>
> On 10/19/07, manuj bansal <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > i want to update and add more than one fields in one query in
> > cakephp1.2
>
> > becuse it is running many queries at at time in one bye one
>
> > thanks in advance- Hide quoted text -
>
> - Show quoted text -


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



want to update more than one fields in one query

2007-10-19 Thread manuj bansal

i want to update and add more than one fields in one query in
cakephp1.2

becuse it is running many queries at at time in one bye one

thanks in advance


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: select box validation in CakaPHP 1.2

2007-10-19 Thread manuj bansal


i didnt get your code you want select option then why r you going thru
input function

try it

*view code

echo $form->label('modelname.name')
echo $form->select('modelname.name',array('value'=>'text'));
echo $form->error('it can't be blank');

***model code*


var
$validate=array('name'=>VALID_NOT_EMPTY);


IT IS FOR SELECT OPTION



On Oct 19, 9:24 pm, senser <[EMAIL PROTECTED]> wrote:
> Hi there!
>
> I'm trying to write a code for displaying a select box with several
> options (tax years for example) and I have to validate the data passed
> by that select box. I want the user to must select an option from the
> list.
> Here is the code from view file where I populate the box using
> formHelper:
>
> /CODE**/
> print $form->input('CustomerTaxYear.tax_years_id',
> array('type'=>'select', 'label'=>'Tax Year', 'options'=>
> $taxYearsArray,  'size'=>3,'error'=>array('required'=>'Tax Year is
> obligatory', 'maxlength'=>'Tax year code max length is 3 symbols',
> 'number'=>'Tax year code must be a number')));
> /CODE_END/
>
> and here is the part of validation array:
>
> /CODE**/
> var
> $validate=array( 'tax_years_id'=>array('required'=>VALID_NOT_EMPTY,
> 
> 'maxlength'=>array('rule'=>array('between',1,3)),
> 
> 'number'=>VALID_NUMBER));
> /CODE_END/
>
> The result is that if the user doesn't select an element from the
> select box, there is no error message displayed and the validation is
> passed but the form data is not stored in DB, because the field
> "tax_years_id" doesn't have default value which is correct behaviour.
>
> I've tried with 'showEmpty' set to true but with no success. If there
> is no value selected in select box, the passed array doesn't even have
> an a element called 'tax_years_id'. (i make a dump of $this->data and
> in the array element with name 'tax_years_id' is missing). I've also
> tried to make an empty element and select it by default, but I think
> this is "ugly" approach, because if user selects some tax year but
> form validation fails by reason of other wrong filled field and
> selected element in tax year select box is lost.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: problem in validation due to loop in view file

2007-10-19 Thread manuj bansal


i am working in cakephp1.2

**Model
Code***
my view code is like this


$i=0;
foreach($rows as row)
{
$i++
echo $form->submit('Modelname.name'.
$i,array('labe'=>'labelname','error'=>'lengt­h
should be less than 20 characters'));
}

Model
Code**


i used $i in the name becuse i am taking five name from user to enter
at one time

so for five differnt name i need different naming eg. [modelname][name
1],[modelname][name 2].[modelname][name n]

*Controller
Code*
in my model code validation is like this

var $validate = array(*'name*' => array('error' => array('maxLength',
20)));

***Controller
Code
now problem comes in name it should be like 'name'.$i


but it gives error to 'foreach loop' when running in model


i want to use this inbuilt function


plz help me to sort out this issue THANKS IN ADVANCE


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



problem in validation due to loop in view file

2007-10-18 Thread manuj bansal
i am working in cakephp1.2

my view code is like this

$i=0;
foreach($rows as row)
{
$i++
echo 
$form->submit('Modelname.name'.$i,array('labe'=>'labelname','error'=>'length
should be less than 20 characters'));
}

in my model code validation is like this

var $validate = array(*'name*' => array('error' => array('maxLength', 20)));

now problem comes in name it should be like 'name'.$i

but it gives error to 'foreach loop' when running in model

i want to use this inbuilt function

plz help me to sort out this issue THANKS IN ADVANCE

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: want cake php tutorial

2007-10-14 Thread manuj bansal

one is wel known www.manual.cakephp.org
another is 
http://www.ibm.com/developerworks/opensource/edu/os-dw-os-php-cake1.html

On Oct 14, 8:17 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> can some buddy give me good tutorial of  cake php
> plz give me i am want to work with cake php an i don't know anything
> abt it.
> plz..


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---