Earn upto Rs. 9,000 pm with PaisaLive.com!
-- Earn upto Rs. 9,000 pm with *Paisa**Live.com!* -- Hi , I have something interesting for you - you can easily *earn regular income online* via PaisaLive.com! It’s really amazing! You get paid to open & read the contents of PaisaLive mails. You also receive special discount coupons, promotions and free passes to various events in your city. Join now and *get Rs. 99* instantly, just for joining. What more, as a special bonus you get paid for inviting your friends also! Create your PaisaLive Account & refer your friends to earn launch referral bonus on every new registration. http://www.PaisaLive.com/register.asp?1354913-4842784<http://www.paisalive.com/register.asp?1354913-4842784> PaisaLive - Get Paid to read emails {Amit Rawat} Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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: admin edit points featured videos, groups, etc...
Hi Chris, You need to adjust the way you update in controller function admin_points() { if($this->data) { $this->FocikiUser->id = 'id which you want to update'; $this-> FocikiUser->setField('featured_video_points ',$this->data['User']['featured_video_points']); } $result=$this->FeaturedVideoPoint->find('list',array('fields'=>array( featured_video_points''))); $this->set('points', $result); } Enjoy Amit Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
Google adword help
Hi, Can anyone tell me how to get data(scrap it) from google adword keyword tool for a particular keyword? Thanks and Regards, Amit Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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: call in to variables...
Hi, Is your username unique? if yes then you can use this $parent_id=$this->User->field('id',array('username'=>$username)); Enjoy On Thu, Dec 23, 2010 at 6:48 AM, chris...@yahoo.com wrote: > Hi Amit, thank you for your help. But it didn't work. I may, as well > post the whole function here. This is a favorites section that I'm > trying to create. All I'm trying to do,... is call parent_id so I can > link it to original video user username(profile) and video from view > page favorites.ctp. If you have a time can you please take peak at > > http://www.zippopeople.com > and this is a testing URL > > Thank Yo..All ! > > > function favorites($username = null) > { > >if($username == 'unknown') > $this->authorize(); > >if(!($user = $this->User->findByUsername($username))) >{ > $this->flash('error', ucfirst(i18n::translate('user not > found'))); > $this->redirect('/'); >} > >else >{ > $filter = $this->params['pass']; > unset($filter['page']); > unset($filter['sort']); > unset($filter['direction']); > $this->set('url_options', $filter); > >$parent_id = $this->Video->field('user_id'); > > $this->menu->setSelected('/videos/index/' . $user['User'] > ['username']); > $this- > >set_title(ucfirst(Inflector::pluralize(i18n::translate('favorite > videos'))) . ' : ' . $user['User']['firstname'] . ' ' . $user['User'] > ['lastname']); > > $scope = array('VideoFavorite.user_id' => $user['User']['id']); >if(array_key_exists('date', $this->params['pass'])) >$scope[] = 'DATE(VideoFavorite.created) = \'' . strftime('%Y- > %m-%d', strtotime($this->params['pass']['date'])) . '\''; > > if($this->is_user()) >$is_friend = in_array($this->user['id'], $this->Friend- > >myFriends($user['User']['id'])); > else >$is_friend = false; > > if($this->is_user() && $this->user['id'] == $user['User']['id']) > { >// the owner has no restriction > } > elseif($this->is_user() && $is_friend) > { >$scope[] = 'VideoFavorite.privacy <= ' . > array_search('friend', Configure::read('Site.privacy')); > } > else > { >$scope[] = 'VideoFavorite.privacy <= ' . > array_search('public', Configure::read('Site.privacy')); > } > > $videos = $this->paginate('VideoFavorite', $scope); > > > $this->set('videos', $videos); > $this->set('dates', $dates = $this->VideoFavorite->query('SELECT > DATE(created) AS date, COUNT(*) AS videos FROM fociki_video_favorites > WHERE user_id = ' . $user['User']['id'] . ' GROUP BY DATE(created) > ORDER BY created DESC')); > $videos_count = 0; > foreach($dates as $date) >$videos_count += $date[0]['videos']; > $this->set('videos_count', $videos_count); > > $this->set('user_obj', $user); > $this->set('parent', $parent_id); > > $this->set('friends', $this->Friend->find('all', array('limit' > => 12, 'conditions' => array('Friend.user_id' => $user['User']['id']), > 'order' => array('Friend.created' => 'DESC'; > > >} > > } > > and here is my tables: > > videos table > id int(11) UNSIGNEDNo auto_increment >user_id int(11) Yes NULL >category_id int(11) Yes NULL >namevarchar(120)latin1_swedish_ci No >description textlatin1_swedish_ci Yes NULL >embed_code textlatin1_swedish_ci Yes NULL >video_thumb textlatin1_swedish_ci Yes NULL >views int(11) No 0 >commentsint(11) No 0 >last_commentdatetimeYes NULL >promo_statusint(11)
Re: call in to variables...
Hi Chris, Use find field $parent_id = $this->Video->field('user_id',array('your condition goes here')) enjoy, Amit On Thu, Dec 23, 2010 at 3:41 AM, chris...@yahoo.com wrote: > Hi All,... sound stupid but I have to ask... > I want to call user_id from Video table in to $parent_id variable in > my controller in order to display and link to parent user username, > video in ..."Favorites" section. And how do I do that...? Please > help... > > $parent_id = $this->Video ??? > > thanks > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > 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.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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: Changing The Layout Design
Hi John, No its not compulsory . You can change the complete layout. Just make a new layout and place it inside your layout folder. Then in your controller you use the layout . For example if you create a new layout by name test, then create a test.ctp file and place it inside your layout folder. Then in Your controller you can right class MyController extends AppController{ var $name ='My'; var $layout ='test'; . your code continues... Enjoy Amit www.amitrawat.com On Wed, Dec 22, 2010 at 3:59 PM, John Maxim wrote: > Hi, > > I'd like to change the default layout, Cakephp, to my own design, is > it compulsory we have to leave the logo Cakephp at the bottom right of > the page, and a Cakephp.org link at the top left of the page ? > > Is there a way to replace the default favicon ? > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > 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.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 can I add to one table while I'm adding to another
Hi, Use saveAll For more detail check the link: http://book.cakephp.org/view/75/Saving-Your-Data Enjoy, Amit On Tue, Dec 21, 2010 at 7:32 AM, georgeman wrote: > Here is the scenario based on a simple blog: > > The model for the blog is called Post. Post has the following fields: > id, title, body, created, modified. There are two other related > models: Tag and Comment. Tag has the following fields: id, name, > created, modified. Comment has the following fields: id, name, email, > body, blog_id, created, modified. > > These are the associations: Post hasMany Comment, Post > hasAndBelongsToMany Tag, Tag hasAndBelongsToMany Post, Comment > belongsTo Post. > > Therefore another table is required to keep track of the associations > between Post and Tag. The posts_tags table has the following fields: > post_id, tag_id. > > So let's say I want to write a new blog Post. And let's say I want to > add some new tags that already are not in the table. How do I do that? > How do I add to two tables at the same time? > > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > 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.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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: CakePlate - Boilerplate CakePHP distro
Hi Ryan, Great work. Nice idea , keep up the good work. Best wishes and Regards, Amit Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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: Joins Question
Hi Dave, Use this condition where B.a_id!=C.a_id Enjoy, Amit On Sun, Oct 31, 2010 at 6:23 PM, Dave Maharaj wrote: > Can anyone help me with a join that looks like this. Or if it is even > possible….. > > > > ModelA hasMany ModelB, ModelC > > Model B and ModelC belongto ModelA > > > > So ModelB is related by a_id and ModelC by a_id pretty standard stuff. > > > > So records in B or C are optional and can be in both B and C or none or > eiter one, but if in C then exclude it from the record…..nasty. > > > > So get all A records when in B.a_id but not if also in C.a_id (never get > B.a_id if its also in C.a_id) > > > > Please no contain answers as that’s what I am doing now but because of > getting empty array keys and unsetting and paging I would like to see if the > joins would be best. > > > > Thanks guys. > > > > Dave > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > 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.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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: Set images to the sorted column
Hi, You check on your view like this sortKey()=='Model.fieldName'){?> sortDir()=='asc'){?> image('up.jpg',array("javascript:void(0);",'style'=>'float:left;'))?> sortDir()=='desc'){?> image('down.jpg',array("javascript:void(0);",'style'=>'float:left;'))?> Enjoy: Amit Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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: Controller Name in App_controller
Hi You can get controller name and action name by:- $this->params['controller'] and $this->params['action'] Enjoy, Amit On Wed, Aug 4, 2010 at 1:19 PM, Ambika Kulkarni wrote: > Hi all, > > Is their any way to get the controller name in app_controller.php > file. > > The problem scenario is like this. > > In my app_controller i have written a bunch of code in before_filter() > function. > > I have a right panel like > Division > Element > Purchase and so on... > > As soon as I click on any of this name (Division or Element ...) then > I want the respective controller name in the before_filter() function. > For Division link the controller name is divisions. As soon as I > click in Divisions link I am redirected to divisions_controller.php > page. > > Please help me out to solve this prob > > Thanks and Regards > Ambika > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > 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.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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: compare dates query
Hello James, Are both of them in same format Appt.date and $date1 i.e. dd/mm/. If not make them in same format (You can use DATE_FORMAT to convert the format of date). If they are in same format then if your Appt.date is a date filed then convert your $date1 into date by mysql cast method. Enjoy, Amit On Wed, Jul 28, 2010 at 7:59 PM, james wrote: > Hi, I'm using the datepicker widget to allow the user to enter dates > to filter by. > > The query I build is > > $filterAppts = $this->Appt->find('all', > array('conditions'=>array('Appt.date' => $date1),)); > > where $date1 is the date value passed back by the datepicker through > >$date1 = $this->data['Appt']['date filter: Date 1']; > > but it doesnt seem to be matching the dates. Is there some format that > I need to put them into before i can compare a date to the date field > in the database? Currently they are strings. > > Many thanks! > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > 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.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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: sql error 1054 unknown column in 'on clause'
No acknowledgement for me? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
How to show user's status
Hello, I have admin page on which i show listing of all user. In front of each user i have a red ball image which indicates that the user is offline. Now if any user has logged into the site i have to replace the red image by green. How can i do that? Should i send an ajax call after a fix interval say (5 sec) to find out whether a user has logged in or is there some other way ? Thanks, Amit Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 To unsubscribe, reply using "remove me" as the subject.
Re: A link to view page.
include the Html helper in your controller Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
Re: A link to view page.
Try this:- link($results['members']['name'],'/members/view',null);?> Enjoy: Amit:) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
Mutil-select help
Hello , I want to save multi-select options to my d.b :- This is the syntax for my view input('Meetingtopic.topic_id',array('type'=>'select','options'=>array($topic),'multiple'=>true));?> when i submit the form i get it as [Meetingtopic] => Array ( [topic_id] => Array ( [0] => 2 [1] => 4 ) ) but I wan't it in following format [Meetingtopic] => Array ( [0] => Array ( [topic_id] => 2 ) [1] => Array ( [topic_id] => 4 ) ) so how do I write it in view? Thanks and regards, Amit Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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: Help with pagination on view page
Hello, You will have to pass the argument in the view like this:- options(array('update'=>'element_name','url'=>array('controller'=>'controllername', 'action'=>'action_name',$yourargument)));?> for e.g if u are passing $id to ur controller then in the view u should write somehing like this: options(array('update'=>'pagecontent','url'=>array('controller'=>'Client', 'action'=>'view',$id)));?> Regards, Amit Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 View Question
hello use this http://www." target="_blank"> regards, amit Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
how to impelement follow us on facebook in cakephp
Hello , I will like to know how to impelement follow us on facebook in cakephp . It would be great if someone provide me a link or documentation for this topic. Thanks, Amit Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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: DATE_FORMAT in fields does not return formatted date under proper Key (Model Name)
try this var $virtualFields = array( 'name' => 'CONCAT(User.first_name, "", User.last_name)' ); regards, amit Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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: HATBM relations + aggregate functions
Hello, try this :- $this->Demo->paginate= array('fields'=>array('You fields','sum(amount)')); $this->Demo->paginate('Demo'); Regards, Amit Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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: Controller Actions
Hello Dave, You can use:- $c_class=get_class(); $c_methods = get_class_methods($c_class); $c_methods will give you an array of all the methods of the current class. Regards, Amit Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 do I get rid of the SQL information at the bottom of the page.
go to app/config/core.php set Configure::write('debug',1); or Configure::write('debug',0); Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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: Error Placement / Styles
Try this, error('User.password')){?> class='error'' > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
paginator sort on custom field
Hello, I m having a problem with paginator sort functionality. I use paginator to get result then i calcualte a field name *"Util"* on the record. I want to use paginator on *"Util". *Can any on eknow how to do that? Thanks, Amit Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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: paginator help
It not working. Well the problem is i m posting a search form whenever a user enters some value for first name or last name the paginator give me result but when i click on next button, i need to post the form again so that page2 give me result according to search critera Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
paginator help
Hello , I am having a problem with pagination. When i post data the paginator give me correct result but when i click on next page the result are not comming according to post value. how do i post a value from one page to another? any idea? Thanks Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 get two input fields in same line?
can u show me the code for both line Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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: Image Actas Behavior Problem
Its because when you upload a image contoller recieves it as an array with information like file name, size, type etc. you will have to extract then name of file before inserting it -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@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: handling timezone and DST opinions please
ok so whats your main problem? -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@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=.
Re: handling timezone and DST opinions please
hello jas, i m little confused are you saving your data in GMT or converting it into user's timezone and then saving it -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@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=.
Re: How to access hasMany relation in CakePHP 1.2
Try this $this->set('users', $this->Donor->find('all', array ('conditions'=>array(' Organization.org_name'=>"%habib%"),'fields'=>array('Donor.*','Organization.*','DonorDetail'))); -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@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=.
Re: send or save javascript array to controller as expected data object
use this in your javascript after you get your array :- $.ajax( { type: "POST", url: "path to controller/"+array, data:' ', success:function(msg) { var response =eval("("+msg+")"); } }); If you are using json_encode in your controller then use eval for the message that is returned back to you. Other wise simple message will do your work. -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@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=.
Re: send or save javascript array to controller as expected data object
$.ajax( { type: "POST", url: "path to controller/"+array, data:'', success:function(msg) { var response =eval("("+msg+")"); } }); -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@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=.
Re: send or save javascript array to controller as expected data object
You can create an array in javascript. In that array place all the values of the select box. var t= document.getElementById('your_select_box_id').options; for(var i=0;ihttp://groups.google.com/group/cake-php?hl=.
Re: sql query in model
may be this might help you:- $result = $this->LibraryItem->find('all',array('joins'=>array( array( 'table'=>'issue_library_items', 'alias'=>'IssueLibraryItem', 'conditions'=>array('IssueLibraryItem.library_item_id=LibraryItem.id') )), 'fields'=>array('LibraryItem.id','LibraryItem.title'),'conditions'=>array('LibraryItem is NOT NULL', 'IssueLibraryItem.return_date is null'))); -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@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=.
Re: date
How are you calculating your current time by database query or by php date function? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Before render being called twice?
Hello friends, I am having a problem my before render function in app controller is being called twice. can anyone tell me why is this happening? --~--~-~--~~~---~--~~ 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 make this query the Cake way?
Try the Ad-hoc joins:- http://bakery.cakephp.org/articles/view/quick-tip-doing-ad-hoc-joins-in-model-find --~--~-~--~~~---~--~~ 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: Adding parameters to redirect
Try this $this->redirect( ' /products/index/21 ' ); --~--~-~--~~~---~--~~ 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: Multiple belongsTo relations to the same table fails
check your model User what is the table name that you have define in it. --~--~-~--~~~---~--~~ 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: Validation Errors Displaying on Add but not on Edit?
can you please tell me what validation rules are you applying? --~--~-~--~~~---~--~~ 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: Validation Errors Displaying on Add but not on Edit?
Check your edit view. Your form element name must be different in edit view as compared to add view. --~--~-~--~~~---~--~~ 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: Common functions
You can make a component and place your common function there. Then you can use our function by including your component in controller like:- $components=array('componet name'); function index{ $this->componet name->your function() } --~--~-~--~~~---~--~~ 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: Cake php
Make changes in your database.php file in config folder. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
helping in pagination with relationship
Can any one tell me how to use pagination with relationship. for e.g $locArray = array( 'hasOne'=>array ('profile'=>array('className'=>'Profile' , 'dependent'=>'true', 'foreignKey' => 'pro_id'))); $this->User->bindModel($locArray); $record=$this->paginate('User'); its giving me only User data and not the related model with it. How can i get both of them? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---