My inbox is fully spammed by YOUR STUPID QUESTION!!
Kind Regards,

Kevin
http://www.vinshop.us
PIN   : 21AD562F
Gtalk: [email protected]

-----Original Message-----
From: Tilen Majerle <[email protected]>
Sender: [email protected]
Date: Sun, 5 Jun 2011 11:58:20 
To: <[email protected]>
Reply-To: [email protected]
Subject: Re: add extra function to model but cakephp thinks it's query???

what's wrong with you...yosef...???
--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2011/6/5 <[email protected]>

> SPAMMMM
> Kind Regards,
>
> Kevin
> http://www.vinshop.us
> PIN   : 21AD562F
> Gtalk: [email protected]
>
> -----Original Message-----
> From: cake-learner <[email protected]>
> Sender: [email protected]
> Date: Sun, 5 Jun 2011 02:45:59
> To: CakePHP<[email protected]>
> Reply-To: [email protected]
> Subject: add extra function to model but cakephp thinks it's query???
>
> I just add an function to model and call that function from another
> controller.
> but what i get is the following error. What happen?????
>
>
> In Model( department.php ),
>
> class Department extends AppModel {
>   var $useDbConfig = 'default_account';
>   function get_child_dep( $dep_id, $child ){
>   }
> }
>
> In Controll( orgmap_controller.php ),
>
> $this -> loadModel( 'Department' );
> $this -> Department -> get_child_dep( 1 )
>
>
> error message ----
> Warning (512): SQL Error: 1064: You have an error in your SQL syntax;
> check the manual that corresponds to your MySQL server version for the
> right syntax to use near 'get_child_dep' at line 1 [CORE/cake/libs/
> model/datasources/dbo_source.php, line 535]
>
> --
> 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
>

-- 
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

Reply via email to