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
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
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
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;
}
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
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
your problem may be solved by this link
http://groups.google.com/group/cake-php/browse_thread/thread/8c89ca42d68496a0/89e2724d53aaad65?lnk=gstq=select+box+validation#89e2724d53aaad65
On Oct 20, 12:50 pm, senser [EMAIL PROTECTED] wrote:
Hi manuj.
Your proposal didn't solve my problem. I
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');
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
i am working in cakephp1.2
**Model
Code***
my view code is like this
$i=0;
foreach($rows as row)
{
$i++
echo
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
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*' =
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
13 matches
Mail list logo