Re: CakePlate - Boilerplate CakePHP distro

2010-11-29 Thread Meroe Kush
Looks very nice thank you. Have you given any thought about ACL/Auth? Any plans on including that? On Mon, 2010-11-29 at 20:16 -0800, ryan.penderg...@gmail.com wrote: > You know how as a developer each time you create a new web app you > spend the first few hours downloading, installing, and c

Re: How do I Find Categories within in Contained Model in CakePHP

2010-11-29 Thread Thorpe Obazee
I have also posted this at Stackoverflow if you're interested On 11/30/2010 1:23 PM, Thorpe Obazee wrote: Hi Everyone, I had a recent question here regarding Finding records via conditio

How do I Find Categories within in Contained Model in CakePHP

2010-11-29 Thread Thorpe Obazee
Hi Everyone, I had a recent question here regarding Finding records via conditions in habtm . Now, I could search for posts within a category I searched for. Now, my questions is how to I retrieve the categor

CakePlate - Boilerplate CakePHP distro

2010-11-29 Thread ryan.penderg...@gmail.com
You know how as a developer each time you create a new web app you spend the first few hours downloading, installing, and configuring the important add-ons that you need for nearly any production-level project? When all you really want to do is get started on your new kick-ass idea? That's why a f

Re: Error : VALID_NOT_EMPTY

2010-11-29 Thread Hans Wiriya Tsai
great, thx for the prompt help! I would of course read the entire docs (later), but your quick help is very helpful for a beginner like me. On Tue, Nov 30, 2010 at 9:23 AM, cricket wrote: > On Mon, Nov 29, 2010 at 5:43 AM, Hans Wiriya Tsai wrote: >> I hv CakePHP 1.3.6 installed on Ubuntu and lea

Re: Error : VALID_NOT_EMPTY

2010-11-29 Thread cricket
On Mon, Nov 29, 2010 at 5:43 AM, Hans Wiriya Tsai wrote: > I hv CakePHP 1.3.6 installed on Ubuntu and learning to create simple > blog. When I add validation to my model, I got this error: > > Notice (8): Use of undefined constant VALID_NOT_EMPTY - assumed > 'VALID_NOT_EMPTY' [CORE/cake/libs/class

Re: RequestHandler::isAjax() buggy?

2010-11-29 Thread cricket
On Sun, Nov 28, 2010 at 10:57 PM, Dr. Loboto wrote: > Check that request is really done. I never saw this in anything except > IE, but in IE it is always aggressive caching when browser do not > repeat request to the same URL in the short period of time at all. If > you see same (no real request)

Re: How to create private messaging system in cakephp or scrapbook application in cakephp??

2010-11-29 Thread euromark
did you try to google it - or at least to look for previous questions for that matter the above search box combined with "messaging" reveals: http://groups.google.com/group/cake-php/browse_thread/thread/65390b32b859c47/d747c576100ed6c4?lnk=gst&q=messaging#d747c576100ed6c4 and many more On 29 Nov.

Re: RequestHandler::isAjax() buggy?

2010-11-29 Thread Dmitry Shevchenko
Hi, maytbe this will halp you to find your bug. I have add into app_controller before_filter() this lines $this->disableCache(); I've found this solution in http://osdir.com/ml/CakePHP/2010-01/msg00629.html (for view this link content - look into google cache, now it forbidden for me :( )

How to create private messaging system in cakephp or scrapbook application in cakephp??

2010-11-29 Thread vk1985
Hi, I am new to cakephp. i want to create a scrapbook like application for my social network project. so please if anybody having some examples then post here. i am in need. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You rece

themed root

2010-11-29 Thread Carlos Eduardo
Hi every body /themed/ - webroot - views -- layouts -- elements -- helpers -- etc I mean have a separated root for make an easiest way on theme development for no php / cake people Thanks Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related ques

getting pop up window when user submits form.

2010-11-29 Thread ambati kiran
hio guys, i need help from you. I want to get a pop up window to show success or failure message when user submits a form. Any help is greatly appreciated. thank you. kiran. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You

download file

2010-11-29 Thread Miqdad Ali
friends, I want code for downloading image files in cakephp Miqdad Ali http://www.miqdadali.co.cc Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received thi

Error : VALID_NOT_EMPTY

2010-11-29 Thread Hans Wiriya Tsai
I hv CakePHP 1.3.6 installed on Ubuntu and learning to create simple blog. When I add validation to my model, I got this error: Notice (8): Use of undefined constant VALID_NOT_EMPTY - assumed 'VALID_NOT_EMPTY' [CORE/cake/libs/class_registry.php, line 141] Here's my model: array(

Putty JailShell can't run command 'cake shell_name'

2010-11-29 Thread Fcaceres
I went to my .bash_profile and I changed the path to: PATH=/usr/local/public_html/cake/console:$PATH:$HOME/bin then I connected through SSH with Putty to my remote linux VPS server with Hostgator and then I can't run cake bake. What is wrong? I copied all the activity from the console as follows:

Re: $_POST is populated with the form data, but $this->data is always empty

2010-11-29 Thread amfriedman
Irrelevant for two reasons: - I wrote that I already tried with the form model set to 'User' - Manual says it is fine to do this (see the first yellow box): http://book.cakephp.org/view/1384/Creating-Forms On Nov 29, 4:04 pm, nurvzy wrote: > Why are you setting NULL as your form model? > > Try:

Neighbours are backwards.

2010-11-29 Thread Dave Maharaj
I am getting neighbours based on created date, my id field is not sequential so since they are ordered and displayed in order of created date I get the neighbours the same way. I see the 2 neighbouring results (debug them also) and they are reversed. Next should be Prev and Prev should be Next,

Re: $_POST is populated with the form data, but $this->data is always empty

2010-11-29 Thread nurvzy
Why are you setting NULL as your form model? Try: create('User', array( 'default' => true, 'inputDefaults' => array( 'label' => false,

$_SESSION contains my data but $Session helper is empty.

2010-11-29 Thread amfriedman
I'm using Cake v1.3.5 and I'm trying to simply set a flash message in the controller and display it in the view. When I pr() my $_SESSION data I can see the message that was set. But the Session helper apparently does not know about it. (The Session component, however, can read it right back out

Re: CakePHP Model uses the wrong fields in SQL statements!

2010-11-29 Thread qua...@gmail.com
Just a little update from myself...ever since I converted the code to use custom query (model->query()), I have been processing millions of records like a knife cutting through butter. I do still want to hunt down this bug in any way I can. I will try to create a small test case if it is even poss

$_POST is populated with the form data, but $this->data is always empty

2010-11-29 Thread amfriedman
Hey folks This is a very strange issue indeed, and at its root it is NOT related to this post that declares a similar symptom: http://groups.google.com/group/cake-php/browse_thread/thread/840eaa08732904a1/6b214b69ad0980d4?lnk=gst&q=$_POST#6b214b69ad0980d4 I have a form in /users/view/. When I su

RE: Validation Rules Help

2010-11-29 Thread Dave Maharaj
Thanks man...looks good. I just think what I need is impossible. Or far to complex for the simplicity of the site. Someone could still use a subdomain with a 2 or 3 letter sub and this would sneak in as a actual international domain but it’s the best idea so far! Will work with it and see if I c

Re: Validation Rules Help

2010-11-29 Thread Miles J
This is merely off the top of my head and only for the domain part, not the username or the @. /^([a-zA-Z0-9\-]+)\.([a-zA-Z]{2,3})(\.[a-zA-Z]{2,3})?$/ On Nov 28, 4:17 pm, "Dave Maharaj" wrote: > This one I have been putting off for a while and finally getting around to > trying to solve it. > >

Phone Number Validation

2010-11-29 Thread Dave Maharaj
I am taking a single Model.phone and breaking the input up into 3 inputs (area_code) - (prefix) - (suffix) so my question is how do I validate that? I can merge the data to get my Model.phone and run standard validation on that but how to get the message on error back to the view since Model.phone

Routing with parameters

2010-11-29 Thread xamako
Hi! I'm trying to rounting to a method of a controller with a specific parameter. What I'm trying to do is simulate a call like: www.web.com/portfolio/index/forsale:1 This is what I have so far, but I do not know how to add the parameter the call Router:: connect ('/ sitelocks', array ('contro

Re: Where is the Wiki about Media Plugin of David Persson

2010-11-29 Thread marco.rizze...@gmail.com
Sorry but i think that the Wiki is very very helpful . With only documentation in code it is more difficult use the plugin On 29 Nov, 17:34, David Persson wrote: > Hi Marco, > > Most of the content which previously was available in the wiki is now > being shipped as individual files in the "docs/

Re: Where is the Wiki about Media Plugin of David Persson

2010-11-29 Thread David Persson
Hi Marco, Most of the content which previously was available in the wiki is now being shipped as individual files in the "docs/" directory[1]. Former wiki content which can be described as API documentation has been moved into the respective docblocks[2]. [1] https://github.com/davidpersson/media

RE: Common Punctuation

2010-11-29 Thread Dave Maharaj
Thanks guys. Dave -Original Message- From: Andy Dirnberger [mailto:andy.dirnber...@gmail.com] Sent: November-29-10 10:56 AM To: CakePHP Subject: Re: Common Punctuation The 'i' means case insensitive, so you don't need the A-Z anymore: '/^[\-\'\.\sa-z]+$/i' Check out the new CakePHP Qu

Associations in app_controller.php

2010-11-29 Thread pablosky
Hello. I'm trying to extract data from a table from the app_controller.php. But the table is related to another table using "belongTo." This code works: if (!Cache::read('links')) { $this->loadModel('Link'); $result = $this->Link->find('all', array('fields' => array('Link.id', 'Link.name', '

Where is the Wiki about Media Plugin of David Persson

2010-11-29 Thread marco.rizze...@gmail.com
Hi I can't find more the Wiki about Media Plugin of David Persson. Can someone give me the new url to the Wiki? I don't remember how use medium helper. Many Thanks Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this m

Re: Common Punctuation

2010-11-29 Thread Andy Dirnberger
The 'i' means case insensitive, so you don't need the A-Z anymore: '/^[\-\'\.\sa-z]+$/i' On Nov 29, 3:54 am, Stephen wrote: > My mistake, "i" goes after the forward slash. > > *'rule' => array('custom', '/^[\-\'\.\sa-zA-Z]+$/i'),* > > On 29 November 2010 08:53, Stephen wrote: > > > > > > > > > >

Configure before components initialize - startupProcess() or constructClasses() a good idea?

2010-11-29 Thread odd
Hi there, i've recently stepped into a problem with Session component configuration, i needed to be able to set the Session path and save path for a specific plugin, it's a separate app in the app and runs under a different user, and so i needed to separate the sessions, otherwise it would always

Re: send email with attach

2010-11-29 Thread Jeremy Burns | Class Outfit
Read the manual: http://book.cakephp.org/view/1638/Attachments Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 29 Nov 2010, at 12:18, hoss7 wrote: > hi > i want send email with attach file in cakephp what i am must to do? > > Check out the new CakePHP Questi

send email with attach

2010-11-29 Thread hoss7
hi i want send email with attach file in cakephp what i am must to do? 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 grou

Re: Forms security: Not displaying input means it is protected? --zivi-muh

2010-11-29 Thread Joshua Muheim
Thanks, guys! On Fri, Nov 26, 2010 at 4:44 PM, euromark wrote: > some additional infos: > http://www.dereuromark.de/2010/10/05/cakephp-security/ > > On 26 Nov., 14:32, odd wrote: >> That's how it is. Personally i'm additionally using the fieldList >> feature (which unfortunately doesn't work wel

afterFind and associated models.

2010-11-29 Thread Stephen
Hey I want my queries to run afterFind's on associated models rather than just the primary model, this doesn't work at the moment. See here for more info: https://trac.cakephp.org/ticket/2056 I have this in one of my models: http://pastie.org/private/k32ewbjcqe8ybd8wwmuebq. It does the job perfec

Re: Using USE INDEX or FORCE INDEX in Model->find & relationships

2010-11-29 Thread kadanis
Thanks for the reply. That's give me something to think about. I've not used finderQuery before, I'll certainly give it some time. Thanks again. On Nov 27, 12:20 am, cricket wrote: > On Fri, Nov 26, 2010 at 12:03 PM, kadanis wrote: > > Just wondering if anyone has any suggestions on this. >

Re: Common Punctuation

2010-11-29 Thread Stephen
My mistake, "i" goes after the forward slash. *'rule' => array('custom', '/^[\-\'\.\sa-zA-Z]+$/i'),* On 29 November 2010 08:53, Stephen wrote: > Try adding an "i" to the end, this worked for me. > > *'rule' => array('custom', '/^[\-\'\.\sa-zA-Z]+$i/'),* > > > On 29 November 2010 00:25, Dave Mah

Re: Common Punctuation

2010-11-29 Thread Stephen
Try adding an "i" to the end, this worked for me. *'rule' => array('custom', '/^[\-\'\.\sa-zA-Z]+$i/'),* On 29 November 2010 00:25, Dave Maharaj wrote: > Thanks, > > I have 'rule' => array('custom', '/^[\-\'\.\sa-zA-Z]+$/'), > > But the ' will not go thru. > > I know im an idiot..lol > > Da