Re: Wildcard DNS | Domain | Subdomain

2011-04-03 Thread swimwithabhra
Hi all, I am glad to inform you that finally wildcard DNS is working for me. I just add a A type record and added server alias in virtual host. I didn't have to change anything in the .htaccess file. Thank you all for your kind support. Regards, Abhra Banerjee -- Our newest site for the commun

Re: You favorite IDE/ Dev Setup?

2011-04-03 Thread Chris
NetBeans is new to me and I'm liking it a lot. Much more organized than Geany and thats good for me since I'm still sort of new to this stuff. @the_plumpNation I'm not entirely convinced either. For some reason my copy of VIM in Ubuntu 10.10 doesn't accept plugins >_> On Apr 3, 9:48 pm, the plump

Re: Is it time for ACL?

2011-04-03 Thread Chris
Sounds perfect to me, And to anticipate any issues you might have... Here is a good little github project that provides ACL management https://github.com/interlock/acl_plugin Just read it up on the CakePHP book listed on that project, try out the ACL+Auth setup on a dummy project first and then go

Re: two questions about Auth component

2011-04-03 Thread Chris
I know for the first issue you must set the post data to null so that it doesn't post back that data to the user. Or maybe just set the password as null. for the second issue, I'm just thinking an idea nothing I've tried out and I'd actually want to see a better answer but, maybe you could set a h

Is it time for ACL?

2011-04-03 Thread adam_g2000
Hi All, I've been working on a project, that is essentially an artists portfolio. She's just dropped a bombshell, previously, the authentication was simple. You either had rights to view the site and it's CMS or you had the rights to view only the site. Now she wants to *lock* certain areas of th

Place action where?

2011-04-03 Thread Krissy Masters
How should this be set up? User can register as a Buyer or Seller each with different criteria needed in the form so 2 forms. Would you make 2 registration methods in the User controller buyer_registration() and seller_registration(){} or a register in buyer controller and register in seller contr

Re: You favorite IDE/ Dev Setup?

2011-04-03 Thread the plumpNation
Almost identical but I still use netbeans when I'm working with spaghetti that someone hands over. I've also recently switched half my javascript debugging to chrome developer tools, after I upgraded to firefox 4 too quickly. My colleagues are trying to get me 100% vim, but I'm not yet convinced.

Re: Euromark function guaranteeFields($requiredFields, $data = null) {

2011-04-03 Thread Miloš Vučinić
Yeah, at first i didn't really relise what this was about.. But Euromark is right. Just make another function, to which normal users have access, and change the way it inputs fields. You can read from DB to see the old values and place them to be sure they haven't change, and only allowed ones to p

HABTM with non-standard fields

2011-04-03 Thread Rob Wilkerson
I'm attempting to lay a Cake app over top of a legacy database and I'm bumping into a problem with a HABTM relationship. I have a TechnologyIncentive that HABTM EnergySource through a join table (no model). Here are the specs: TechnologyIncentive public $name = 'TechnologyIncentive'; publi

RE: Access regular PHP file

2011-04-03 Thread Krissy Masters
Actually I think my ssl / non ssl routed rules might be messing with it so that's why. Or my lack of knowledge on nginx. I managed to access the file now so thanks for your time all the same :) K -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Beh

Re: Access regular PHP file

2011-04-03 Thread Ryan Schmidt
On Apr 3, 2011, at 15:26, Krissy Masters wrote: > I have a php script I made for regular website (non frameworked) that I would > access by www.site.com/svr_health.php which is just for my own development > work (storage size, load, just standard junk) > > But when I try to access it I get th

two questions about Auth component

2011-04-03 Thread Tan Cheng
Hi everyone, I need help..., I am using the Auth component in cake, but I encountered two issues so far and couldn't find good answers, shed me some light please. 1) Register issue: I set up some validation rules for the password field in my user model, so if the password user provided doesn't c

Re: Non-existent data source

2011-04-03 Thread cricket
On Sun, Apr 3, 2011 at 12:51 PM, pgredeye wrote: > Hai Guys, >      I have a problem arised while creating an blog app ,its showing > that there is no data source .so, please >      can you help me public $useDbConfig = 'blog'; -- Our newest site for the community: CakePHP Video Tutorials http

Re: Non-existent data source

2011-04-03 Thread prasad gaddai
yeah i am asking it to use $blog database properties and i even tried by changing it to $default it said that table acos is missing for Aco model On Mon, Apr 4, 2011 at 12:54 AM, Jeremy Burns | Class Outfit < jeremybu...@classoutfit.com> wrote: > Are you telling Cake to use the $blog data sourc

Re: Non-existent data source

2011-04-03 Thread Jeremy Burns | Class Outfit
Are you telling Cake to use the $blog data source? If not, it will look for a data source called $default. Trying changing it and see what happens. On 3 Apr 2011, at 17:51, pgredeye wrote: > Hai Guys, > I have a problem arised while creating an blog app ,its showing > that there is no data s

Non-existent data source

2011-04-03 Thread pgredeye
Hai guys, I have got a problem while working with cakephp.This is the error Fatal Error (256): ConnectionManager::getDataSource - Non-existent data source $blog [CORE/cake/libs/model/connection_manager.p context: $name = "$blog" $_this = ConnectionManager ConnectionM

Non-existent data source

2011-04-03 Thread pgredeye
Hai Guys, I have a problem arised while creating an blog app ,its showing that there is no data source .so, please can you help me this is my database.php piece of code to specify the blog data base. var $blog = array( 'driver' => 'mysql', 'persistent' => fal

Re: Help in Pagination

2011-04-03 Thread cricket
On Sun, Apr 3, 2011 at 9:11 AM, blogSystem wrote: > does any one have an idea about the source of the problems ? Put this in AppController: function redirect($url, $status = null, $exit = true) { die(debug($this->params)); } > On 2 avr, 21:36, blogSystem wrote: >> i forgot: >> in my route

Re: You favorite IDE/ Dev Setup?

2011-04-03 Thread DerekGardiner
I use Netbeans, it's great for the normal PHP stuff but I haven't found a nice cakePHP plugin. Do you know of one? On Mar 31, 6:49 pm, Chris wrote: > How often do you use NetBeans over geany? I haven't really figured out > how I want to use Netbeans > > On Mar 31, 7:10 am, LipeDjow wrote: > > >

RE: Validate HABTM Multiple

2011-04-03 Thread Krissy Masters
Nothing. I simply want to first make sure no more than 5 are selected so I select 6 and submit. Debug data see 6 Category Category array( 0 => 3 1 => 5 so on.) But no validation errors for Category. Just the Post...missing title, missing comment what not $this->Post-

Re: You favorite IDE/ Dev Setup?

2011-04-03 Thread Chris
@huoxito I've been wanting to get in to using VIM but I can't get the plugins I want to work >.< so I haven't been able to really get in to it as much as I might have wanted to. On Apr 2, 10:24 pm, huoxito wrote: > Ubuntu > Vim (still learning but already useful for me) > Gedit > Git > Shell > Ap

Re: Digest for cake-php@googlegroups.com - 4 Messages in 3 Topics

2011-04-03 Thread Ed Propsner
@ShadowCross: That's it! I don't rely on the book as much as I used to (there is a lesson to be learned here) ... I could have saved myself a lot of tinkering. Thanks so much for the help and getting me pointed in the right direction. - ED On Sat, Apr 2, 2011 at 11:39 PM, wrote: > Today's To

Re: Help in Pagination

2011-04-03 Thread blogSystem
does any one have an idea about the source of the problems ? On 2 avr, 21:36, blogSystem wrote: > i forgot: > in my routes.php >         Router::connect( >         '/blog/*', >         array('controller' => 'blogs', 'action' => 'pseudo') >         ); > > in the controllers i have: > var $paginate

Re: 1 form 2 models - how to validate without savingAll?

2011-04-03 Thread func0der
yeah... a quick overview over the cake "model.php" in "cake/libs/model/ model.php" shows me, that --- if ($this->ModelName->saveAll($this->data, array('validate' => 'only'))) {.. --- Does exactly the same as the code provided in the blog post. It on

Re: Validate HABTM Multiple

2011-04-03 Thread euromark
"but I never get any validation errors for the HABTM model " what does $this->Post->saveAll() return? boolean or array? pr() it pretty quick - I had similar issues I think On 1 Apr., 05:37, "Krissy Masters" wrote: > I can, but why should I have to validate the Category in the Post model? > > I

Re: You favorite IDE/ Dev Setup?

2011-04-03 Thread Fons Vandamme
I recommend 'Coda' to all Mac OS X users out there! Awesome editor and Coda 2.0 (which is still in development) will make it all even greater! All you need is MAMP (Mac Os X, Apache, Mysql, PHP) and you are all set! As a browser Firefox 4 with the plugin "Firebug" . For collaboration I suggest u

Re: Euromark function guaranteeFields($requiredFields, $data = null) {

2011-04-03 Thread euromark
i disagree with Milos in some points but yes, the crucial point is that the main focus should be the server side as far as security is concerned but besides that he proposes hacks that will not only make the code less readable, it also opens the door for many bugs and errors as well as bloating th

Re: Euromark function guaranteeFields($requiredFields, $data = null) {

2011-04-03 Thread Miloš Vučinić
I just read smth. So one more comment :) Hope I am not borring you. If you are worried about primary key injection etc, you can always make rights to do stuff. You can have several functions for doing stuff. You can grab data in controller and see if somebody tried to enter a parameter which is not

Re: Euromark function guaranteeFields($requiredFields, $data = null) {

2011-04-03 Thread Miloš Vučinić
And if you hate programming so many fields, just bake the add form for the database table and change it the way you want.. baking takes like a minute to finish . :) I am no baking everything I can :) all the best Milos On Apr 2, 9:26 pm, "Krissy Masters" wrote: > Right on. Was only curious sinc

Re: Euromark function guaranteeFields($requiredFields, $data = null) {

2011-04-03 Thread Miloš Vučinić
In risk of looking a little bit stupid, I'll ask this. If you need a field to be required, you can set that in model, so why bother with other stuff ? doI it that way. You can either use predefined rules of cake or make your own using regular expressions.. You can firebug all you want but when you