Re: git and cake2

2009-12-16 Thread Graham Weldon
means that fixes we make to enable this for PHP 5.2 strict mode break fairly frequently. Watch the repository for updates, as its being working on all the time. Also feel free to contribute. We love contributors. Cheers, Graham Weldon e. gra...@grahamweldon.com w. http://grahamweldon.com

Re: addons.mozilla.org soon will leave CakePHP..

2009-11-18 Thread Graham Weldon
. They'd certainly benefit from an upgrade to one of the more recent versions. However, it appears as though a decision has been made, and we wish the Mozilla AMO team all the best as they migrate to django. Cheers, Graham Weldon e. gra...@grahamweldon.com w. http://grahamweldon.com On 18

Re: Auth forgot password question

2009-11-18 Thread Graham Weldon
Just one small change will fix this. You're hashing the password, and sending that via email. Change this part: Your new password: {$user['User']['password']}; to use ['tmp_password'] instead of ['password'] since tmp_password isn't hashed. Cheers, Graham Weldon e. gra...@grahamweldon.com

Re: invalidFields isUnique return existing id?

2009-11-17 Thread Graham Weldon
with the data submitted: - Check the ID supplied - if it exists, load the data, overwrite with supplied data, and save - if it didnt exist, save new record. I would be ensuring validation on the fields you need with the exception of the ID. Cheers, Graham Weldon e. gra...@grahamweldon.com p

Re: thoughts on CakePHP and revision control

2009-11-12 Thread Graham Weldon
to my app. Cheers, Graham Weldon e. gra...@grahamweldon.com p. +61 407 017 293 w. http://grahamweldon.com On 13/11/2009, at 2:11 PM, James P. Howard, II wrote: I am about to start a new project based on CakePHP and would like to know about others' experiences using CakePHP (or similar tools

CakeFest IV - America - Help us pick a location!

2009-11-12 Thread Graham Weldon
, Graham Weldon (AKA: Predominant) e. gra...@grahamweldon.com w. http://grahamweldon.com -- 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

Re: Play Audio in PHP

2009-11-11 Thread Graham Weldon
Hey, I would use something like this: http://www.schillmania.com/projects/soundmanager2/ But as other have suggested, for easing your users experience, be minimal with sounds if you can. They are great for band sites.. and for audible notifications. Thats about it ;-) Cheers, Graham Weldon

Re: CakePHP Questions - Now out of beta!

2009-11-11 Thread Graham Weldon
Cool :-) Lots of signups happening. Nice to see. Cheers, Graham Weldon e. gra...@grahamweldon.com w. http://grahamweldon.com On Nov 11, 10:33 am, Larry E. Masters aka PhpNut php...@gmail.com wrote: CakePHP Questionshttp://cakeqs.orghas just come out of beta testing and registration is open

Re: CakePHP Questions - Now out of beta!

2009-11-11 Thread Graham Weldon
soon. Cheers, Graham Weldon e. gra...@grahamweldon.com w. http://grahamweldon.com On 12/11/2009, at 12:25 AM, keymaster wrote: Not sure where best to post this, but ... there needs to be a Resend Verification Email link on the new questions site or people whose verification email is lost

Re: CakePHP Questions - Now out of beta!

2009-11-11 Thread Graham Weldon
We're planning to add this to the top links on the other Cake Software Foundation websites to ensure everyone is able to reach the site. This should be happening very soon. Thanks for the positive feedback :-) Cheers, Graham Weldon e. gra...@grahamweldon.com w. http://grahamweldon.com On 12

Re: Strange Error

2009-11-09 Thread Graham Weldon
If this fails, I'll get you to tar up your files and and them to me to check... Are you editing on a windows machine? It's possible that some line endings are being screwed up. Remove all unnecessary whitespace just to eliminate any issues there. Gentoo's latest Php is 5.2.11-p0. So I

Re: Routing - Passing a value with ampersand

2009-11-09 Thread Graham Weldon
You might need to do: 1) URL encode your category names Or 2) refactor to allow category name slugs for URL access to avoid use of special characters Cheers Graham On 10/11/2009, at 11:56 AM, ashok.b email2...@gmail.com wrote: Hi, I'm trying to pass values having an ampersand... like

Re: can a custom validation function return an error message or just true/false?

2009-08-26 Thread Graham Weldon
vAllowedCharacters($data) { /// -- implementation } function vSomethingElse($data) { /// -- implementation } Cheers, Graham Weldon e. gra...@grahamweldon.com p. +61 407 017 293 w. http://grahamweldon.com On 27/08/2009, at 2:08 PM, JamesF wrote: var $validate = array

Re: How to inheirt form other controllers?

2009-07-27 Thread Graham Weldon
Try something like: if (!class_exists('ParentController')) { App::import('Controller', 'ParentController'); } class ChildController extends ParentController { // Imeplement controller as normal } Cheers, Graham Weldon e. gra...@grahamweldon.com p. +61 407 017 293 w. http

Re: modify home page

2009-07-02 Thread Graham Weldon
can copy the standard one from: cake/libs/views/layouts/default.ctp Let us know how you go, and if you need anything else. Cheers, Graham Weldon http://grahamweldon.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: grr help with cron/shell tabs

2009-06-21 Thread Graham Weldon
Ensure that your environment variable PATH includes the path to the php executable. Cheers, Graham Weldon http://grahamweldon.com Miles J wrote: I found out that my CLI was PHP 4, so I changed it to PHP 5. I can run the cron through SSH manually, but when I run through cron I now get

Re: How can I remove the 'app/websroot' from the link $html--link() creates?

2009-06-10 Thread Graham Weldon
Sounds like you have your web server documentroot for that host set to the folder containing app. http://book.cakephp.org/view/34/Production That link describes a production installation, and that your documentroot should be made as the app/webroot directory. Once this is done, your URLs

Re: CSS

2009-06-09 Thread Graham Weldon
Hi Dave, You can use addScript to ensure it gets added to the head block at the top of the page like so: $this-addScript($html-css('my_file')); Cheers, Graham Dave Maharaj :: WidePixels.com wrote: Can you include CSS per view as you do js? I need sifr css on only 1 view. Is there a way

Re: OS X cake bake woes

2009-05-14 Thread Graham Weldon
Hey, What is your php.ini value for mysql.default_socket set to? This will tell PHP where your socket file is for MySQL, and help get you connected. You can check this file location by looking in your MySQL my.cnf file for the line indicating socket = For example, a MAMP install has the

Re: OS X cake bake woes

2009-05-14 Thread Graham Weldon
clients [client] #password = your_password password = xyzzy port = 3306 socket= /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock On May 14, 2:35 am, Graham Weldon gra...@grahamweldon.com wrote: Hey, What is your php.ini value for mysql.default_socket

Re: OS X cake bake woes

2009-05-14 Thread Graham Weldon
, what is ln telling me? On May 14, 6:53 am, Graham Weldon gra...@grahamweldon.com wrote: You can always create a symlink to solve your issues. ln -s /var/mysql/mysql.sock /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock That will create a symlink to the location that PHP is looking

Re: Email Component, cc and bcc not working?

2009-05-12 Thread Graham Weldon
Hi Louie, I believe the cc and bcc variables need to be arrays. Try wrapping them in an array and see how that goes for you. Cheers, Graham Weldon http://grahamweldon.com Louie Miranda wrote: Hi, I have setup the email component properly on cakephp. I can send and it's ok for both html

Re: Good star rating tutorial

2009-05-12 Thread Graham Weldon
Hey, There are quite a few out there. I just googled cakephp star rating and found a bunch. Try there first, and report back if you have any specific implementation issues that you need help with. Cheers, Graham Weldon http://grahamweldon.com jwerd wrote: Hey there fellow Bakers Looking

Re: CakePHP and web services support

2009-04-22 Thread Graham Weldon
I'm going to say it... RTFM. http://book.cakephp.org/view/476/REST Cheers, Graham Ma'moon wrote: Hello guys, Any one knows a good example usage for creating RESTfull web services in CakePHP 1.2? -- http://phpirate.net --~--~-~--~~~---~--~~ You

Re: CakePHP and web services support

2009-04-22 Thread Graham Weldon
already RTFMed googled it and i couldn't find any good examples! Any other resources? i appreciate all the help! On Wed, Apr 22, 2009 at 6:25 AM, Graham Weldon gra...@grahamweldon.com mailto:gra...@grahamweldon.com wrote: I'm going to say it... RTFM. http://book.cakephp.org/view

Re: cakephp.org homepage

2009-04-13 Thread Graham Weldon
You can use a method like this one: http://jqueryfordesigners.com/coda-slider-effect/ hope that helps. Cheers, Graham Gwoo wrote: Jquery --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To

Re: Cake-PHP friendly social network software?

2009-04-06 Thread Graham Weldon
Try this: http://noserub.com Cheers, Graham jwerd wrote: I am building a Cake-PHP based project but I feel instead of reinventing the wheel, I'd like to just integrate an existing open source social networking solution that is Cake-PHP friendly. What I mean by friendly is: You have

Re: Sub Controller

2009-03-24 Thread Graham Weldon
The only reasnon I can think you would want to so this is to either group functionality or to make your URL's look pretty. In the case you at trying to group functionality, look into creating plugins for your controllers. If you are simply trying to control URL presentation, then you need

Re: limit access to a site?

2009-03-23 Thread Graham Weldon
class AppController extends Controller { var $allowedHosts = array('127.0.0.1', '::1', '85.127.249.210'); var $accessDeniedRedirect = ... // Define your action to redirect to here. function beforeFilter() { if (!in_array(env('REMOTE_ADDR'), $this-allowedHosts)) {

Re: What does 'Error Affected' stand for?

2009-03-14 Thread Graham Weldon
Error and Affected are two separate results. Throw some CSS into your page to style up the table generated by cake, and it will make it all a little clearer. Affected is the number of rows affected by the query that was run. Cheers, Graham Joshua wrote: What does 'Error Affected' stand

Re: Cakephp Developers Required

2009-03-12 Thread Graham Weldon
Hi Rajesh, I'm interested to know what your project is and what time you need allocated to the development. Cheers Graham Weldon On 13/03/2009, at 11:48 AM, Rajesh rajesh.mukk...@gmail.com wrote: I need cakephp developer for a new project. If any one interested let me know

Re: RegEx: Dash Problem

2009-03-08 Thread Graham Weldon
Hey, Try escaping the hyphen: \- That should work out for you. Cheers, Graham Weldon w. http://grahamweldon.com e. gra...@grahamweldon.com p. +61 407 017 293 On Sat, 7 Mar 2009 16:02:58 -0800 (PST), KS ksush2...@gmail.com wrote: Hi there, This might not be a cakePHP issue, but here

Re: Containable bug?

2009-02-24 Thread Graham Weldon
` FROM `items` AS `Item` WHERE `Item`.`id` = 1                 1       1       0 7       SELECT `Member`.`id`, `Member`.`username`, `Member`.`slug`, `Member`.`gender_id`, `Member`.`birth` FROM `members` AS `Member` WHERE `Member`.`id` = 2                 1       1       0 -- Cheers, Graham

Re: Submit using image

2009-02-24 Thread Graham Weldon
for a single sprite, this essentially shows the backgorund image in place, while hiding overflow, and pushing your text outside its display area. This is also a useful image replacement technique for headings and such too. Give it a go, and let me know how it works out. Cheers, Graham Weldon. On Tue

Re: Cake core is throwing unlink warnings

2009-02-23 Thread Graham Weldon
the permissions. This should solve the problem. Let us know how you go. Cheers, Graham Weldon w. http://grahamweldon.com e. gra...@grahamweldon.com p. +61 407 017 293 On Mon, 23 Feb 2009 12:51:07 -0800 (PST), RyOnLife ryan.mckil...@gmail.com wrote: I am getting this (and other similar) warnings

Re: Autocomplete search on users table

2009-02-23 Thread Graham Weldon
. This could potentially be more powerful, allowing you to pass back more information like ID's to link to, as well as doing SQL WHERE LIKE matches, for mid-string matching. Hope this gets you started. Cheers, Graham Weldon w. http://grahamweldon.com e. gra...@grahamweldon.com p. +61 407 017 293

Re: How to login with username only ?

2009-02-05 Thread Graham Weldon
$form-input('password', array('type' = 'hidden', 'value' = 'genericpassword')); ? That should cover you :-) I dont recommend only requiring a username to login... unless the stored data is completely trivial. Cheers -- Cheers, Graham Weldon w. http://grahamweldon.com e. gra...@grahamweldon.com

Re: Use the dreaded requestAction()... or use something else?

2009-02-02 Thread Graham Weldon
(SOTF_MSG_USER_WELCOME); $this-redirect(array('controller' = 'users' ,'action' = 'dashboard')); } ## While the code for this looks clean, what I've read seems to indicate this isn't such a good idea due to performance issues. What else would I do? Thanks Turgs -- Cheers, Graham

Re: Cache not configured properly on Mac OS X

2009-01-29 Thread Graham Weldon
.  I have not touched anything other than to chmod the tmp directories to 666. I thought this was supposed to be a drop in install. willirl Rick -- Cheers, Graham Weldon w. http://grahamweldon.com e. gra...@grahamweldon.com p. +61 407 017 293

Re: svn or git?

2009-01-28 Thread Graham Weldon
one rather than the other? Will CakePHP eventually migrate to GIT? -- Cheers, Graham Weldon w. http://grahamweldon.com e. gra...@grahamweldon.com p. +61 407 017 293 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Closing $ajax-form()

2009-01-27 Thread Graham Weldon
-0800 (PST), Pyrite thelette...@gmail.com wrote: I can't get $ajax-submit() to work, only $form-end('Submit'). What's the difference between the two? On Jan 26, 7:59 am, Graham Weldon gra...@grahamweldon.com wrote: $ajax-submit() creates an ajax submit element. $form-end('something

Re: Closing $ajax-form()

2009-01-26 Thread Graham Weldon
$ajax-submit() creates an ajax submit element. $form-end('something') creates a submit button, and ends the form. $ajax-form() starts a form. Your usage will depends very much on your implementation, and requirements. The simple reason for there not being an $ajax-formEnd() is because its

Re: Anyone built a forum system yet?

2009-01-19 Thread Graham Weldon
Have you released / are you planning to release source for this? Cheers, Graham On Mon, 19 Jan 2009 13:43:05 -0800 (PST), Miles J mileswjohn...@gmail.com wrote: www.sc2armory.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: $id = null and $id

2009-01-18 Thread Graham Weldon
Provision of = value in a function call for PHP means that if the value is not provided, the specified is used as a default. Example: function foo($b = World) { echo Hello . $b; } foo(); foo(CakePHP); Output: Hello World Hello CakePHP hope that explains it for you. Cheers, Graham

Re: Creating a Does not Equal To SQL Statement

2009-01-15 Thread Graham Weldon
Hey, 'conditions' = array( 'OpportunityCategory.id !=' = 1) That should do it for you. Cheers. On Thu, 15 Jan 2009 05:13:20 -0800 (PST), exo_duz robin.jul...@gmail.com wrote: Hi all, Simple question. I want to create a Does Not Equal To SQL statement within the Controller. The SQL

Re: mod_rewrite problems

2009-01-15 Thread Graham Weldon
Hey, I know its a basic thing, so don't get annoyed at me for asking.. But are you restarting the webserver after these changes? You'll need to restart or reload your apache config in order for changes to take effect. Cheers, Graham On Thu, 15 Jan 2009 10:15:38 -0800 (PST), neridaj

Re: A new discussion about controllers which extend another-controller-other-than-AppController

2009-01-15 Thread Graham Weldon
Hey, Better than including php files, use the CakePHP App::import() and ClassRegistry::init() methods. These locate, include and in the case of the ClassRegistry, instantiate and return the object for you. You would in this case, do something like: App::import('Controller',

Re: Can a webpage tell the source IP of a message? (no-ip.com like appliction)

2009-01-06 Thread Graham Weldon
$_SERVER['REMOTE_ADDR'] should tell you what you need. Cheers, Graham Aus wrote: I'm writing an application like no-ip.com , the user will send a _POST message includes the domain name to the website, and the website should map the domain name in the message with the source IP of the

Re: Can i compile the PHP webpage instead of leaving the source code on the server?

2009-01-04 Thread Graham Weldon
You can, through using an optimiser / byte code generator, for example: - Zend Optimiser http://zend.com/store/products/zend-optimizer.php - eAccelerator http://eaccelerator.net/ Cheers, Graham On Jan 5, 2:10 pm, Aus awsra...@gmail.com wrote: I've designed a PHP webpage, but i don't want to

Re: HABTM naming convention messed up?

2009-01-04 Thread Graham Weldon
This is actually the expected behavior. Consider the join table (when modelised, like you are doing) to be a simple name. The inflector will look at the plural string (as is the convention) and remove the 's' at the end of the last word detected. Table: teams_untils Model: TeamsUnit Cheers,

Re: new benchmarks of PHP frameworks

2009-01-01 Thread Graham Weldon
-1.2.0/app/controllers/benchmark_controller.php Benchmark testing should be done with non-trivial code, and given these frameworks abstract databases, and that abstraction can affect performance, it should probably include tests that include database access. Cheers, Graham Weldon kiang wrote

Re: Modifying a String

2009-01-01 Thread Graham Weldon
any issues modifying it. Best of luck with it. Cheers, Graham Weldon Kyle Decot wrote: How would I find the first occurrence of a word or phrase in a string and then strip off everything after that? I know that I will probably need to use regex but I am unsure how to write it. Any help

Re: new benchmarks of PHP frameworks

2009-01-01 Thread Graham Weldon
Your benchmarks are still Hello World examples, from what I can see there. Great as a benchmark for those using static only pages with their frameworks, but I suggest that the majority of developers out there are doing something more complex. Cheers, Graham Weldon kiang wrote: You could have

Re: HTML 4 specific CakePHP?

2008-12-26 Thread Graham Weldon
Everyone has reasons for and against various technologies. Thankfully, CakePHP provides you a complete fantastic framework without limiting you to something as specific as only being able to use xhtml. You should be able to extend the html helper for all (most?) the tags you want to produce.

Re: Advanced Routes

2008-11-25 Thread Graham Weldon
You should be able to do something like: Router::connect('/:username/:controller/:action/*', array(), array('username' = '[a-z0-9]*')) Read through this: http://book.cakephp.org/view/542/Defining-Routes The most relevant examples are down the bottom, but work your way from the top, and try

Re: forget password

2008-09-02 Thread Graham Weldon
Hey Ranjana, Were you looking to create a password reminder feature for a site you are building? Provide a little more detail about what you are trying to achieve, and someone will be able to provide some direction or assistance. Cheers, Graham On Tue, Sep 2, 2008 at 5:18 PM, Ranjana

Re: forget password

2008-09-02 Thread Graham Weldon
at 1:35 PM, Ranjana Sriavastava [EMAIL PROTECTED]wrote: hello I wnat to forget passord via email id and send email to user email id with cakephp. On Wed, Sep 3, 2008 at 4:48 AM, Graham Weldon [EMAIL PROTECTED]wrote: Hey Ranjana, Were you looking to create a password reminder feature

<    1   2