Re: About cakephp
I think you have being got trouble about naming convention, try to take notice 2009/3/23 John Andersen > > Fine, and what is your problem? :) > > Would be good if you can explain/show a little more of the problem you > are having. For example the code where the error takes place, or the > controller you are trying to invoke, etc. > > Best wishes, >John > > On Mar 23, 7:48 am, Kavi wrote: > > Fatal error: Class 'Model' not found in E:\wamp\www\mycakeapp\cake\libs > > \model\app_model.php on line 38 > > > --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cakephp Developers Required
that is interesting, I hope you can connect with me, my yahoomail nhathoangvn2...@yahoo.com 2009/3/21 Earth Technology > > > Hello Rajesh, > > We have a lot of experience in Cake PHP development. Please look up at > "http://earthtechnology.co.in/credential_cakephp/"; where you shall > find our credentials. > > Please send us your requirement and then we can proceed to the next > step. > > Thanks, > > D e b a s i s h B a n e r j e e > CEO, EarthTechnology > www.earthtechnology.co.in > > gchat : deban...@gmail.com > msn : debasish_baner...@hotmail.com > skype : debanerj > On Mar 13, 5:48 am, Rajesh wrote: > > I need cakephp developer for a new project. If any one interested let > > me know. > > > > --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: how to send email
I used to send mail by cakephp but not to succeed, I don't know why, there is a way to send mail you should use which is phpmailer, you show write a component and attach phpmailer to it 2009/3/20 dr. Hannibal Lecter > > You send an email to yahoo and gmail the same way you send to any > other account, right? > > Also, why are you working on cakephp 1.1? > > On Mar 19, 2:40 pm, sandhya wrote: > > send email to yahoo and gmail accounts using cakephp 1.1.19.6305 > > > --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: HABTM Relationships Problem
I hope you can post your database , I think you are not wrong in configuring , but It difficult to answer you if you don't post database and say more about your achivement 2009/3/19 Pete Bekisz > Hi all, > > I'm having some problems with saving HABTM relationships, and I was hoping > you could help me. The two models in question are Registrant and Product. > > In my Registrant model, I have a method that builds an array that looks > like this: > > Array > ( > [Registrant] => Array > ( > [id] => 133 > ) > > [Product] => Array > ( > [0] => Array > ( > [product_id] => 1 > [quantity] => 5 > [cost] => 25.00 > ) > > [1] => Array > ( > [product_id] => 2 > [quantity] => 1 > [cost] => 8.50 > [option_id] => 13 > ) > > [2] => Array > ( > [product_id] => 2 > [quantity] => 9 > [cost] => 76.50 > [option_id] => 14 > ) > > [3] => Array > ( > [product_id] => 2 > [quantity] => 3 > [cost] => 25.50 > [option_id] => 15 > ) > > ) > > ) > > When I try using $this->saveAll($array) it does nothing, and when I try using > $this->Product->saveAll($array), this is the SQL it runs: > > 44START TRANSACTION0045SELECT `ProductsRegistrant`.`registrant_id` FROM > `products_registrants` AS `ProductsRegistrant` WHERE > `ProductsRegistrant`.`product_id` = ''11046DELETE `ProductsRegistrant` FROM > `products_registrants` AS `ProductsRegistrant` WHERE > `ProductsRegistrant`.`product_id` = '' AND > `ProductsRegistrant`.`registrant_id` = (130)1047INSERT INTO > `products_registrants` (`product_id`,`registrant_id`) VALUES > ('','133')1048COMMIT > > I've been playing with this for quite a while and I can't figure out what's > wrong. Could someone offer some guidance, please? > > > > > --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Getting : Undefined index: error - Newbie Please help
Dear cpeele, I see your question is not clearly , what do you want when you use this query $projects = $this->Project->User->findByUsername($username);, and please post your database on forum 2009/3/19 cpeele > > > Hey guys, I am getting an Undefined index error. I am rather new to > cakePHP so it is probably something easy I am missing. > I will post the code with descriptions. > > I have an element called "project_updates": > > > > > > >link($project['Project']['name'], > "/projects/ > view/".$project['User']['username']); ?> > > $project['User'] > ['username'] . " - " . date_format($dateTime, 'd/M/y'); ?> > > > > > > > > > > > > > > here is the ProjectsController action code: > >function view($username) >{ >$projects = $this->Project->User->findByUsername($username); >$this->set('projects', $projects); >} > > Project has a foreign key reference to User. I want to grab all the > projects by a particular username that is being passed in by the above > element. > > Here is the view.ctp code > > > > > > When it tries to echo the project name it throws the undefined index > error. > > Any help would be greatly appreciated! > > Thanks, > > Chris > > > > --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: hasMany Issue - no data loads
I tested your data ,it isn't wrong , has many also contain invoked information between EventSignUp and EventOptionSignUp, please send all your relevant file to me , I will try test to help you and answer for you as soon as, if you have yahoomail please add my one, nhathoangvn2...@yahoo.com. 2009/3/9 Sanfly > > Hi All > > Ive been trying to get a hasMany association working, but It just wont > seem to work. The pages which use this model simply wont load when I > try to run them > > I have two databases: events_signups, events_options_signups > > Each signup can have many different options, which is why I have the > table events_options_signups to link them. > > The field in events_options_signups table has a field event_signup_id > where I store the id of the events_signups entry it belongs to > > In my EventsOptionsSignup model I have a belongsTo association which > works great: > > var $belongsTo = array( >'EventsSignup' => >array('className' => 'EventsSignup', >'foreignKey' => > 'event_signup_id', >) > >); > > But I cant get the hasMany association to work when going the other > way, and i need to be able to extract that data when searching by > EventsSignup > > var $hasMany = array( >'EventsOptionsSignup' => >array('className' => 'EventsOptionsSignup', >'foreignKey' => > 'event_signup_id', >), >); > > Is there anything im doing wrong that is obvious to anyone? > > > --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Can error messages show only on submitted form?
hi jsmale, all your requirement probable release , I have a example to offer you ,please download my attached file , If you don't understand , you can contact with me through my yahoomail nhathoangvn2...@yahoo.com, we will trade experience together 2009/3/10 mscdex > > On Mar 9, 11:55 pm, jsmale wrote: > > Have I done something incorrectly? > > It's probably because the form fields are named exactly the same for > both forms. > > > --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~--- Desktop.rar Description: Binary data
Re: How to create models for complex database designs like this?
According to me ,your mean use hasmany to get informations of movies and celebrities with related cast, And you want in [Cast] => [index]][celebrity_id ] to be replaced [Cast] => [index][celebrity_name], but in fact it can't, relationship in model has all 5 fields class name, foreign key, condition,field,dependent, there is not any field to concern replace name. 2009/3/9 Joe Critchley > > Would it not be better to structure it through a HABTM relationship, > using "Cast" as your 'with' model? > > So, Movie HABTM Celebrity through Cast. > and Celebrity HABTM Movie through Cast. > > On Mar 8, 12:40 pm, Rajesh wrote: > > I am working on movie site. Client have movie records in following > > structure. > > > > CREATE TABLE IF NOT EXISTS `movies` ( > > `id` int(50) NOT NULL AUTO_INCREMENT, > > `movieName` varchar(500) NOT NULL, > > `year` int(11) DEFAULT NULL, > > PRIMARY KEY (`id`) > > ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; > > -- > > CREATE TABLE IF NOT EXISTS `celebrities` ( > > `id` int(11) NOT NULL AUTO_INCREMENT, > > `name` varchar(250) NOT NULL, > > PRIMARY KEY (`id`) > > ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; > > -- > > CREATE TABLE IF NOT EXISTS `casts` ( > > `movie_id` int(50) NOT NULL, > > `role` varchar(200) DEFAULT NULL, > > `celebrity_id` int(11) NOT NULL DEFAULT '0', > > KEY `movieid` (`movie_id`) > > ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; > > > > As you can see movies has casts, casts table contains movie_id and > > celebrity_id. celebrities master table is for storing all master > > celebrity names. > > > > Now my problem is i have created models for movie and celebrity like > > movie hasmany cast. In movie page aim getting movie details along > > related casts. But celebrity_is is showing id instead of name how > > can i get celebrity name instead of id. Please help me. > > > --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: hasMany Issue - no data loads
dear Sabfly According to me, you don't wrong in this case, I haven't discovered why the information of EventsSignUp don't link with the one of EventsOptionsSignUp, please send me your database to me to help you test again. 2009/3/9 nhathoang nhathoang > dear Sanfly,I hope you can post your database to forum, this is more > convenience for us > > 2009/3/9 Sanfly > > >> Hi All >> >> Ive been trying to get a hasMany association working, but It just wont >> seem to work. The pages which use this model simply wont load when I >> try to run them >> >> I have two databases: events_signups, events_options_signups >> >> Each signup can have many different options, which is why I have the >> table events_options_signups to link them. >> >> The field in events_options_signups table has a field event_signup_id >> where I store the id of the events_signups entry it belongs to >> >> In my EventsOptionsSignup model I have a belongsTo association which >> works great: >> >> var $belongsTo = array( >>'EventsSignup' => >>array('className' => 'EventsSignup', >>'foreignKey' => >> 'event_signup_id', >>) >> >>); >> >> But I cant get the hasMany association to work when going the other >> way, and i need to be able to extract that data when searching by >> EventsSignup >> >> var $hasMany = array( >>'EventsOptionsSignup' => >>array('className' => 'EventsOptionsSignup', >>'foreignKey' => >> 'event_signup_id', >>), >>); >> >> Is there anything im doing wrong that is obvious to anyone? >> >> >> > --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: hasMany Issue - no data loads
dear Sanfly,I hope you can post your database to forum, this is more convenience for us 2009/3/9 Sanfly > > Hi All > > Ive been trying to get a hasMany association working, but It just wont > seem to work. The pages which use this model simply wont load when I > try to run them > > I have two databases: events_signups, events_options_signups > > Each signup can have many different options, which is why I have the > table events_options_signups to link them. > > The field in events_options_signups table has a field event_signup_id > where I store the id of the events_signups entry it belongs to > > In my EventsOptionsSignup model I have a belongsTo association which > works great: > > var $belongsTo = array( >'EventsSignup' => >array('className' => 'EventsSignup', >'foreignKey' => > 'event_signup_id', >) > >); > > But I cant get the hasMany association to work when going the other > way, and i need to be able to extract that data when searching by > EventsSignup > > var $hasMany = array( >'EventsOptionsSignup' => >array('className' => 'EventsOptionsSignup', >'foreignKey' => > 'event_signup_id', >), >); > > Is there anything im doing wrong that is obvious to anyone? > > > --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---