Installing on a Shared Windows Parallels Plesk Server

2015-06-16 Thread Peter Watkins
to configure on my part, or if there is something on the server level which I dont have access to which is stopping it from working. Any help would be greatly appreciated. Cheers, Peter -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- Y

CakeEmail problems

2014-10-27 Thread Peter Bradley
) <http://localhost/unidirectory/pages/email-tester#> - APP/webroot/index.php line 108 <http://localhost/unidirectory/pages/email-tester#> → Dispatcher->dispatch(CakeRequest, CakeResponse) <http://localhost/unidirectory/pages/email-tester#> If anyone can decode th

Question in mysql function

2012-11-21 Thread Peter Nassef
hello guys i want create function in mysql database to return result of select statement with joins or return result of stored procedure and thx -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are

Re: Hello i need help in database schema ready

2012-09-27 Thread Peter Nassef
VM > > Sent from iPhone smartphone > > On 2012-09-27, at 11:02 AM, Peter Nassef wrote: > > Hello cakephp member > > i need table content all country and all cities relate to this countries > and other table content units measurement > > > and Thanks :) > &

Hello i need help in database schema ready

2012-09-27 Thread Peter Nassef
Hello cakephp member i need table content all country and all cities relate to this countries and other table content units measurement and Thanks :) -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because y

Paginate with sub-queries as Joined Tables

2012-08-18 Thread Peter Brown
Hi Everyone, I'm looking for the "Cake" way to paginate a model with two sub-queries joined as tables : *MY TABLES * *products :* * id | name* 1 | Product A 2 | Product B *sales:* * * *| id| product_id | date | **amount * | 1 | 1 | 2012-01-01 | 20.00 | 2 | 1 | 2012-01-02

Re: cakePhp showing menu or login form

2012-07-04 Thread Peter Nassef
Hello cakephp team i need to make website with admin panel but ican't do that i need to know who can make admin panel ?? with session and site and make admin in split section -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questio

Re: Multidimensional array as named argument

2012-01-11 Thread Peter Brown
Works perfectly, thanks again! On Wed, Jan 11, 2012 at 2:50 PM, Peter Brown wrote: > Thanks Jeremy I will try > > > On Wed, Jan 11, 2012 at 2:15 PM, jeremyharris wrote: > >> It should probably go in the controller, since it's dealing with the >> params. Maybe ca

Re: Multidimensional array as named argument

2012-01-11 Thread Peter Brown
g 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 > -- Peter Brown pe...@sponsorhub.com +1 646-233

Re: Multidimensional array as named argument

2012-01-11 Thread Peter Brown
php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php > -- Peter Brown pe...@sponsorhub.com +1 646-233-8031 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Ques

Multidimensional array args through Paginator

2012-01-11 Thread Peter Brown
Hi All, I'm looking for a way to pass a multidimensional array through named arguments. Array ( [state] => "NY" [city] => Array ( [0] => "New York" [1] => "Brooklyn" ) ) When i

Re: Multidimensional array as named argument

2012-01-11 Thread Peter Brown
Hi I have exactly the same problem, did you figure out something ? -- 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 th

Re: Formatting Arrays

2011-08-04 Thread Peter Meth
wouldn't this do it?? foreach($myarray as $key => $subarray) { $myarray[$key] = $myarray[$key]['Industry']; } On Aug 4, 2:32 pm, Tilen Majerle wrote: > $new = array(); > foreach ($old as $tmp) > { >    $new[] = $tmp['Imdustry']; > > } > > -- > Lep pozdrav, Tilen Majerlehttp://majerle.eu

Mapping Booleans as enum('false','true') in MySQL

2011-08-03 Thread Peter Meth
I am new to CakePHP and I have a lot of existing mysql tables that have a field is_active that I use for soft-deletes. The field is an enum('false','true'). I wanted to know if I can somehow take advantage of Cake's soft-delete functionality without changing my tables. >From what I read Cake does

CakePHP 1.3.8 - commit 5464ed8 introduced a new bug in Form helper?

2011-03-21 Thread Peter Jankovich
After upgrading form 1.3.7 to 1.3.8 we encountered a problem with handling custom field names. This commit is supposed to fix custom name attributes, but when we pass a name that ends in a "[]" it is not handled correctly. This example code produces the following: $this->Form->fields = array( 'Mod

Re: Containable Aggregate Fields Problem

2010-05-18 Thread Peter Krutz
Thanks for the info! I'm glad you mentioned the afterSave technique, I was using that for the overall rating average. What I was trying to do was grab the ratings posted in the past month and average from there. That seems a bit intensive, just going with the afterSave for now. On Thu, May 13, 201

Question about session cookies

2010-02-22 Thread Peter M. Goldstein
to be happening in memory (I've added debugging to session.php). Any thoughts? Any help would be appreciated. Thanks. Regards, Peter 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 su

Re: I think I've got a routing problem - welcome page is perfect but app is broken

2009-11-09 Thread Peter Bowen
Thanks but it didn't help. I'm desperate enough to start looking at Code Igniter :( On Nov 9, 3:21 pm, "Dr. Loboto" wrote: > Try add rewrite base to your webroot .htacces: > RewriteBase /myproject > > On Nov 9, 3:43 am, Peter Bowen wrote: > > > Hi

I think I've got a routing problem - welcome page is perfect but app is broken

2009-11-08 Thread Peter Bowen
Hi, I'm sure the routing is messed up somewhere and I'd appreciate some help (8 hours of googling and experimenting and I'd be about ready to tear my hair out if I wasn't already bald). --setup-- I'm using Mac OSX with XAMPP for development. I've got the project in a subdirectory

Re: Finding missing numbers in an array

2009-08-04 Thread Peter N.
Why not do for($I = 0; $i < 10; i++) if(!in_array($i, $missing_array2)) array_push($missing_nums, $i); On Tue, Aug 4, 2009 at 12:57 AM, liaogz82 wrote: > > Hi all, > > I know this is not directly related to cakePHP but i am cracking my > head trying my best to figure out how to discover a missin

Any Northern Ireland Cake Developers?

2009-07-22 Thread Peter Bowen
Hi Guys, I'm looking for someone to hold my hand in getting cake set up on my mac. I've wasted a couple of hours trying to get it working and keep bumping into url not found problems. Time to call in the experts - anyone in Northern Ireland? I'm happy to pay for help. Thanks Pete --~--~--

added a 'created'-field in my table, but it's not filled

2009-06-14 Thread Peter
I read that adding a 'created' DATETIME-field to a table will be recognized and automatically filled whenever i save a new model to the db, but at the moment it's just empty all of the time. It seemed to work fine when i tested it on another model which i added through a form on a webpage, but now

Re: Change the content-type

2009-06-14 Thread Peter
thanks, that's what i neededalthough i moved it to the top of the default xml-layoutfile i use. On 14 jun, 23:44, Miles J wrote: > I usually put this at the end of my controller actions: > > $this->header('Content-Type: text/xml'); > > On Jun 14, 10:26 

Change the content-type

2009-06-14 Thread Peter
how can i change the content-type of a view? i have an xml-view which renders just fine, but my browser sees it as text/html. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, se

Re: TreeBehaviour reorder performance issue

2009-01-10 Thread Peter A. Shevtsov
gt; might be selecting more than you need to? > > Maybe you should show your code though, because 10 queries is a > lot! > > Cheers, > Adam > > On Jan 10, 8:40 pm, "Peter A. Shevtsov" wrote: > > Hello, > > > > I have a tree with about 400+ recor

TreeBehaviour reorder performance issue

2009-01-10 Thread Peter A. Shevtsov
Hello, I have a tree with about 400+ records and when I try to call reorder method it executes about 10 SQL queries and takes several minutes to finish. Is there any way to optimize it? Thanks! -- Пётр Шевцов --~--~-~--~~~---~--~~ You received this message b

Re: Getting CakePHP to connect to MySQL

2008-08-20 Thread Peter Weicker
Thank you both. I decided to try installing Cake on my ISP instead of running it on my own PC. They asked me to send in photo ID before they'd let me use the system services I'd need to complete the install. Not very reassuring. So, I tried installing CodeIgniter and had it up 15 minutes after I

Getting CakePHP to connect to MySQL

2008-06-22 Thread Peter Weicker
I want to learn CakePHP to add functions to our website (northbreeze.com). My PHP/MySQL experience is limited to a site search function I wrote some time ago. A long time interest in Smalltalk led me to Ruby on Rails. One good look at that led me to try CakePHP. I've just installed XAMPP on my XP

Re: Implementing a Search Form

2008-01-23 Thread Peter
Cheers, that's perfect. Thanks! --~--~-~--~~~---~--~~ 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 PRO

Implementing a Search Form

2008-01-23 Thread Peter
I'm looking to implement a search on my CakePHP App. I'd like to implement the search using GET, so users can link to search results. It also makes it a little easier to handle pagination. I wanted the URL to be clean so I have the form set up without using the Cake FormHelper: Search Qu

Re: Help getting started...

2008-01-20 Thread Peter Lombardo
Take a look at Section 5 here: http://manual.cakephp.org/appendix/blog_tutorial I had the same issue and the above fixed it. And when I revisited the issue, it turned out for some reason I was missing an .htaccess in the root directory. Peter Lombardo On Jan 20, 2008 8:23 PM, Dave Porter

Re: cake 1.1.19: Ability to turn debug info off during ajax - Is it broken?

2008-01-20 Thread Peter Lombardo
I had the SQL being dumped even in my ajax calls. Not sure if this is what you are looking for but I use the following to disable that. Configure::write('debug', '0'); Peter Lombardo On Jan 20, 12:58 pm, keymaster <[EMAIL PROTECTED]> wrote: > I use the followin

Trying to Validate Password field

2007-04-22 Thread Peter
I'm creating a user registration area and I am having difficulty doing custom validation on the Password input field. I have the following code in my controller: __ /* Custom Password Validation */ if (empty ($this->data['User']['password'])) { $this->User->inv

RE: Session variables in a model

2007-03-30 Thread Peter Brenner
Session information is not available in the model. I had a similar requirement where I needed to get user information out of the session for auditing purposes when records are updated. I solved the problem by implementing an Observable Model. Have a look at this article for information on how t

Re: complex association needed

2007-03-08 Thread Peter Vanhee
How can I use $this->EventItem inside the Item model ? It gives the error Notice: Undefined property: Item::$EventItem in /Users/pvhee/Sites/ webdev/satellite/satellite-activation/app/models/item.php on line 66 Does it work similar to using the $uses array in the controller? Bye, Peter

Re: complex association needed

2007-03-05 Thread Peter Vanhee
have extra fields. Then querying for all models you will also want to have the extra fields for EventItem and NewsItem included. Your trick will do the job! Thanks! Peter On Mar 3, 5:40 pm, "Grant Cox" <[EMAIL PROTECTED]> wrote: > One way would be to have all the possible

complex association needed

2007-03-03 Thread Peter Vanhee
tables based on the Item.type field. Anyone an idea of how I can mix these tables based on the field type in the "base model" Item ? Cheers, Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ca

othAuth, what next

2007-02-21 Thread peter stranney
gh the manual. Could someone point me in the right direction, I wish to fully implement this login system and so what more must I develop? Thanks for your time. Best wishes, Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: Navigation Component / Helper

2007-02-15 Thread Peter
Thanks for all the replies! I'll get to work on an element today and if (read: when) I come across difficulties, I'll let you know ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this

Navigation Component / Helper

2007-02-14 Thread Peter
Hi there, I'm totally new to CakePHP and I am struggling to get my head around how to do shared navigation across a site. Basically, every page will use the same unordered list navigation on the left-hand side. Regardless of the page controller, I need to have this navigation on all pages. The fu

How to properly use callbacks, specifically beforeDelete?

2006-10-11 Thread peter
Quick background: I'm still a pretty much total newbie at cakePHP, but I've been coding websites in PHP, ASP, Java, and Perl for 10 years. I've recently started on a cakePHP project and things are going relatively well, if extremely slowly. I could have completed the whole project by now using PHP

Re: Seperate controllers by function in sub-directories

2006-08-24 Thread Peter
Thanks for the info - I will take a look. I am also reading about plugins as a possible solution - creating a seperate plugin for each "module". --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To

Seperate controllers by function in sub-directories

2006-08-24 Thread Peter
can handle this by creating entries in my routes.php file, but if I understand how that file works I would need to create a seperate entry for each of my functionx_controllers. Is that correct? Is there a better approach? Thanks in advance. Peter

Re: Elements, variables and layouts

2006-08-11 Thread Peter Boosten
Yeah! that did the trick. (although you forgot a closing parenthesis: > $this->set('some_variable',array('some'=>'data'); ) THNX. Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Elements, variables and layouts

2006-08-10 Thread Peter Boosten
Oh, if I say 'Title', I do not mean . Peter --~--~-~--~~~---~--~~ 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 f

Re: Insert into tables without id

2006-08-10 Thread Peter Boosten
Why don't you have an ID-field on your table? Doesn't hurt to have one, IMHO. Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-

Elements, variables and layouts

2006-08-10 Thread Peter Boosten
ge, that's dependant on the view (you might compare it to a breadcrumb). So in short: view -> layout -> element TIA. Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To po

What can Cake do for me?

2006-08-03 Thread Peter Boosten
at data from my database (from 5 different tables) and put the output of the form in a sixth table? Thanks in advace for your answer. Peter -- http://www.boosten.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Auditing database actions

2006-06-13 Thread Peter
. can someone point me in the right direction as to what classes would need to be modified in the cake library to make this happen? regards, peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP"

Re: Looking for examples

2006-05-24 Thread Peter
features of what I am building through a web service (e.g. SOAP). How could I organize the code so that both my web site and web service implementation are able to reuse the core of the business logic code. Thanks, Peter John Zimmerman [gmail] wrote: > This should get you started... >

Looking for examples

2006-05-23 Thread Peter
ppreciated. Thanks, Peter --~--~-~--~~~---~--~~ 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 [