How to manage HABTM that is reflexive?

2008-10-31 Thread [EMAIL PROTECTED]
I have a table of users, and I want to make links between users, so each user can have links to one or more other users. I can't see, however, how to set this up in Cake. The linking table has two fields that link to the Users table, but how to I create the correct model? --~--~-~--~~

Re: Search Engine Bots Generating Strange Queries

2008-10-31 Thread Mathew
Hi Mike, Disallowing that in your robots.txt is a waste of time. The robots.txt file was started by Google, and is not an officially supported feature of all crawlers. So they don't have to follow it, and I can tell you this doesn't sound like the google bot anyway, because that bot doesn't gene

Re: Help with complex find() spanning several models

2008-10-31 Thread 33rtp
Awesome. Thanks. On Oct 31, 4:37 pm, teknoid <[EMAIL PROTECTED]> wrote: > By default joins are only built for hasOne or belongsTo. > Here's how to "trick" cake into building joins for deep model > bindings:http://teknoid.wordpress.com/2008/07/17/forcing-an-sql-join-in-cakephp/ > > there is anoth

Named parameter routing does not work with pagination(bug or feature?)

2008-10-31 Thread Novice Programmer
Hello guys, I have defined following route in routes.php: Router::connect('/users/:uid/friends/*', array('controller' => 'users', 'action' => 'friends'), array('pass'=>array('uid'))); when i try to use paginator to build pagination links, the links to pages look like the default cake

Re: hasMany bind on the fly

2008-10-31 Thread teknoid
no, cake can easily build the join that you need: http://teknoid.wordpress.com/2008/07/17/forcing-an-sql-join-in-cakephp/ as matter of fact there is an example like like this one in the manual. and i must've posted this link on the list a bunch of times. so searching is always a good idea... On

Re: File uploads timing out

2008-10-31 Thread Adam Royle
You didn't mention what technique you were using to upload files, however here is one idea. If you are doing a flash upload, some browsers (can't remember which) won't complete the request until data is returned from the server. So in my upload action I always output a space. exit(' '); Also, ar

Scaffold belongsTo question

2008-10-31 Thread Crambo
I assume convention over configuration: I have Two Models: Users: Requests: belongsTo ('User') Hoever, when I "bake" up the MVC, the index view of Requests shows the ID of Request.id rather than the NAME of User.name. I am to understand that this should not happen. Your thoughts or ran

Re: hasMany bind on the fly

2008-10-31 Thread Ita
Well since no shiny knight in white armor came to my rescue I wound up creating my query. I guess cake has its own limitations. On Oct 30, 7:41 am, Ita <[EMAIL PROTECTED]> wrote: > So it just can't handle the conditions? > What should I do in this case? create my own query? > > On Oct 29, 7:29 pm

File uploads timing out

2008-10-31 Thread pj
Hi all, I've been drawn back into cake (and some of you may remember me from WAAAY back - I have ticket number 1 on cake :) , wondering if anyone can help: My image uploads appear to be timing out - I'm using the Authenticate component and some digging has revealed some sort of issue over se

Re: htaccess problems.

2008-10-31 Thread Todd M
No I did try that. The physical path was added by the server or somehow my account is setup. The RewriteBase did give me success !! I'll just share part of the process for future people that may find the same problem. First of all the [R] that I talked about in my second post helped me debu

Re: Help with complex find() spanning several models

2008-10-31 Thread teknoid
By default joins are only built for hasOne or belongsTo. Here's how to "trick" cake into building joins for deep model bindings: http://teknoid.wordpress.com/2008/07/17/forcing-an-sql-join-in-cakephp/ there is another post on my blog if you search, which has a slightly more advanced example of th

Re: Help with complex find() spanning several models

2008-10-31 Thread 33rtp
Thanks for the help teknoid. I've done that, and I think there are some possibilities there, but they are a little longer than I'd like. For those who might come after this and not feel like reading the full situation above, my question in a nut-shell really is: How do you run a find on a field

Re: Help with complex find() spanning several models

2008-10-31 Thread 33rtp
On Oct 31, 3:28 pm, teknoid <[EMAIL PROTECTED]> wrote: > That's a lot to read, but I can point you in the direction of checking > out the Containable behavior (in the manual). > ... as well as really carefully reading up on the model associations > and data retrieval. > > On Oct 31, 2:30 pm, 33r

Re: A couple of things with Security Component

2008-10-31 Thread Nate
There were a couple of bug fixes related to this issue that got committed just recently. If you're not running on the latest SVN branch code, try updating to that and see if the problem persists. On Oct 31, 3:54 pm, Stinkbug <[EMAIL PROTECTED]> wrote: > I'm having a bit of a problem with the Sec

A couple of things with Security Component

2008-10-31 Thread Stinkbug
I'm having a bit of a problem with the Security Component on one of my actions. It works on most, but this one action is quiet complex. I'm not even sure what the problem could possible be. So rather than asking what the problem is with my action, I would rather ask if there is any information

Re: Jquery or Scriptalicious?

2008-10-31 Thread Gabriel Gilini
The right answers is: learn real javascript Yes, the learning curve with jQuery is way lower, but when you really know javascript, take a look in proto ;) Gabriel Gilini www.usosim.com.br [EMAIL PROTECTED] [EMAIL PROTECTED] On Fri, Oct 31, 2008 at 4:37 PM, Samuel DeVore <[EMAIL PROTECTED]> wrot

Re: Jquery or Scriptalicious?

2008-10-31 Thread Samuel DeVore
Here's my take for what little it's worth (note I use scripa/proto) if you want to use the ajax helper at this point you are tied to scripta/proto. now given that the stated plans in unofficial channels is that the helper is either being migrated to jQuery or being driving to a javascript _framwo

Re: Search Engine Bots Generating Strange Queries

2008-10-31 Thread MikeK
So you're saying the search bots are just walking all my actions as if they are subdirs on a site? Not sure about this. Maybe I should disallow those specific requests with robots.txt? Any other cakers have an opinion on this? If I disallow www.mydomain.com/controller/action/ wont the bots stop

Re: Help with complex find() spanning several models

2008-10-31 Thread teknoid
That's a lot to read, but I can point you in the direction of checking out the Containable behavior (in the manual). ... as well as really carefully reading up on the model associations and data retrieval. On Oct 31, 2:30 pm, 33rtp <[EMAIL PROTECTED]> wrote: > Hey all... > > New to PHP, Cake, and

Re: Jquery or Scriptalicious?

2008-10-31 Thread Gabriel Gilini
Sorry, mate, but prototype also supports all CSS3 selectors. ps: I never use cakephp's ajax helpers, and I love writing javascript Cheers Gabriel Gilini www.usosim.com.br [EMAIL PROTECTED] [EMAIL PROTECTED] On Fri, Oct 31, 2008 at 10:45 AM, Josey <[EMAIL PROTECTED]> wrote: > > I perfer jQuer

Help with complex find() spanning several models

2008-10-31 Thread 33rtp
Hey all... New to PHP, Cake, and MySQL so bear with me. I've been searching high and low for the best way to make this query work, but just haven't gotten it yet. Here's my setup: I have models for Users, Subscriptions, Authors, and Posts where: User HasMany Subscription (pk_User.id, fk_Subscr

Re: htaccess problems.

2008-10-31 Thread Anupom
Did you try adding something like this? RewriteBase /home/net/example/html/cake1.2/ On Sat, Nov 1, 2008 at 12:06 AM, Todd M <[EMAIL PROTECTED]> wrote: > > Ok, so I read up some more on htaccess, so I went back to the original > htaccess file that was in the cake_install_dir > I should point out

Re: Routing: Actions

2008-10-31 Thread teknoid
Router::connect('portfolio/:action/*, array('controller'=>'port_items')); p.s. it's in the manual ;) On Oct 31, 2:22 pm, 703designs <[EMAIL PROTECTED]> wrote: > Router::connect('portfolio/*', array('controller' => 'port_items')); > > How do I pass the "*" to PortItemsController::*()? I considere

Routing: Actions

2008-10-31 Thread 703designs
Router::connect('portfolio/*', array('controller' => 'port_items')); How do I pass the "*" to PortItemsController::*()? I considered using call_user_function on the controller from the index($method) method with the "*" as $method, but I'd rather direct the request straight to the * method. --~-

Re: htaccess problems.

2008-10-31 Thread Todd M
Ok, so I read up some more on htaccess, so I went back to the original htaccess file that was in the cake_install_dir I should point out that I'm on a shared web server. I found some hints on debugging on the web so here are my modified .htaccess Mostly added the the [R] where the [L] was. This

Re: Multiple table conditions HABTM

2008-10-31 Thread Brenton B
http://bakery.cakephp.org/articles/view/habtm-searching On Oct 15, 9:47 am, [EMAIL PROTECTED] wrote: > I am a worker for this grouped i am sorry i clicked the worng post. > > On 10/15/2008, Brenton B <[EMAIL PROTECTED]> wrote: > > > > > > > Huh? This specific discussion, or the group itself? > >

Re: HABTM goodness: searching!!

2008-10-31 Thread Brenton B
http://bakery.cakephp.org/articles/view/habtm-searching On Oct 14, 4:56 pm, Brenton B <[EMAIL PROTECTED]> wrote: > In the mean time: > > http://www.bbartel.ca/blog/brenton/2008/oct/14/habtm-searching > > Please forgive the horrible formatting, not sure what's going on > there, and don't have time

Re: Admin + Members suggested setup??

2008-10-31 Thread Brenton B
Thanks everyone for the useful tips, that helps a lot, which means I may have to restructure some stuff. Mostly, I think I was getting confused by the fact that with having `index` and `admin_index` I ended up doing 2 different views, where the difference was only whether or not to include an 'edi

Re: Jquery or Scriptalicious?

2008-10-31 Thread Anupom
> > And there is this "dom:ready" event, that AFAIK prototype has not. > Prototype has got a "dom: loaded" event from 1.6v :) On Fri, Oct 31, 2008 at 10:13 PM, clemos <[EMAIL PROTECTED]> wrote: > > I prefer Mootools too. > It's very lightweight. > The API is, IMHO, much cleaner and more conveni

Re: The Cake way of doing this? Multiple models accessing a huge dataset

2008-10-31 Thread teknoid
Make it a Behavior or (at least place in App Model). Certainly any kind of data access/manipulation does not belong in a component. On Oct 31, 11:48 am, Skal Tura <[EMAIL PROTECTED]> wrote: > Doing those tasks inside model seemed messy way to it. > We have multiple models accessing portions of th

Re: Jquery or Scriptalicious?

2008-10-31 Thread clemos
I prefer Mootools too. It's very lightweight. The API is, IMHO, much cleaner and more convenient than Prototype/scriptaculous'. And there is this "dom:ready" event, that AFAIK prototype has not. ++ Clément ps: Now I'm thinking about totally switching to haXe, but that's another story... On

Re: Jquery or Scriptalicious?

2008-10-31 Thread Flipflops
As lots of people have said you miss out on the helpers with jQuery, but if you don't like Prototype then its no great loss - but anyway what I've stared doing is writing a my own bake templates (ad7six wrote a really handy introduction http://www.ad7six.com/MiBlog/CustomBakeTemplates) which i ha

Re: Looking for suggestion to filter data in cakephp

2008-10-31 Thread [EMAIL PROTECTED]
A Mac coming from Obj-C... you must be just a little frustrated with phps OO support :) I put the models I have and a controller method, as an example, in the bin for you to take a look at and laugh at as you please. http://bin.cakephp.org/view/1027493569 The code can be re-factored and improved

Re: The Cake way of doing this? Multiple models accessing a huge dataset

2008-10-31 Thread Skal Tura
Doing those tasks inside model seemed messy way to it. We have multiple models accessing portions of the data. Thought i showed quite clearly what this is upto :) So we have a text search engine, every snippet of text can have multiple boolean type of modes, such as: removed and verified along o

Re: Test Suite and HABTM Models - Not Working

2008-10-31 Thread Anupom
Cool! I was just about to suggest you to checkout the latest version from SVN or download the latest build! :) On Fri, Oct 31, 2008 at 9:25 PM, MikeB <[EMAIL PROTECTED]> wrote: > > Fixed it! > > I grabbed the nightly build for 1.2.x.x_31.10.2008 and everything is > going smoothly now. Thanks for

Re: Jquery or Scriptalicious?

2008-10-31 Thread Josey
I think we've moved off topic since the question wasn't about helpers, though I agree 100% with Anupom. It seems that the majority prefer jQuery but it's just that, a preference. I also agree with Flipflops. You should visit the official site of both libraries and do a bit of research and testing

ajax form submission - nothing happens

2008-10-31 Thread Kieron
Hi, I am trying to add a comments form to a blog post, updating the page with ajax, specifically using prototype.js. I've used ajax->form, however when I press the submit button absolutely nothing happens. I've tried the ajax submit method with the same result. If I submit the form without ajax i

Re: Test Suite and HABTM Models - Not Working

2008-10-31 Thread MikeB
Fixed it! I grabbed the nightly build for 1.2.x.x_31.10.2008 and everything is going smoothly now. Thanks for the suggestions and link Anupom. On Oct 31, 9:50 am, MikeB <[EMAIL PROTECTED]> wrote: > Thanks Anupom, > > That got me past the missing table cake errors, but now 2/3 of the > tests that

Re: Position of label on checkbox inputs

2008-10-31 Thread Jacek Ziółkowski
Yeah, that's a correct assumption when using checkboxes in separate rows. I got the same issue, because my project uses several checkboxes in a single line - it makes confusion, i.e. [X] C [X] M [_] Y [_] K looks dumb and nonsensical. I was thinking of extending the $form->checkbox helper with

Re: Jquery or Scriptalicious?

2008-10-31 Thread Anupom
On Fri, Oct 31, 2008 at 6:27 PM, Marcelius <[EMAIL PROTECTED]> wrote: @Anupom: Any arguments? Anupom schreef: > I think PHP helper for writing Javascript is a very bad idea. > Find my points below, It minimizes the code but maximizes the chance of error It's really becomes hard to debug We shou

Re: Jquery or Scriptalicious?

2008-10-31 Thread 703designs
I agree in most cases. JavaScript code should be unobtrusive and only be written once, especially when already using a framework (like jQuery). I can almost see the value in generating widgets, but really the only thing that Cake should do is provide utility scripts and use naming conventions (For

Re: Post Data

2008-10-31 Thread MDB
I figured out the correct name convention. Thanks On Oct 31, 8:52 am, MDB <[EMAIL PROTECTED]> wrote: > Maybe if I explain what I am doing better.  Basically, I have a form > that asks for a birthday.  We do not want the users to feel > uncomfortable by asking for thier year of birth so I have t

Re: Position of label on checkbox inputs

2008-10-31 Thread teknoid
Why? You could use $form->checkbox(); or simply: This is my field: input('something', array('label'=>false, 'type'=>'checkbox')); ?> On Oct 31, 5:52 am, Tom Singer <[EMAIL PROTECTED]> wrote: > Hi, > > Is there a reason $out is appended to the end in form->input when > $type is set to checkbox?

Re: Jquery or Scriptalicious?

2008-10-31 Thread Dérico Filho
JQuery has more available animation plugins than Scriptaculous +Prototype.js Although JQuery has a "compatibility" mode, which permits it to live in the same room with Prototacolous. DF. On Oct 30, 8:49 pm, Matthieu <[EMAIL PROTECTED]> wrote: > Hello, > > I'm gonna create a web app using CakePH

Re: Jquery or Scriptalicious?

2008-10-31 Thread teknoid
> I think PHP helper for writing Javascript is a very bad idea. I would say it depends on the purpose... Let's take an example of AJAX form validation, why not have $form- >input() transparently supply jquery hooks to make it happen? The developer might only be concerned with including the libra

Re: Help with ACL

2008-10-31 Thread Stinkbug
Well, so much for an answer soon. Sorry about that. Not sure if you still need help with this, but could you show us your aro and aco structures so I get get a better idea as to what you're trying to do. I think I see what you're trying to do, but let's see if you have a proper ACl setup first.

Re: The Cake way of doing this? Multiple models accessing a huge dataset

2008-10-31 Thread Adam Royle
Well without any real examples it's hard to tell what you're doing. However I think most people would recommend you should do more inside your models. Components should just be to help out controllers with requests. On Oct 31, 9:41 pm, Skal Tura <[EMAIL PROTECTED]> wrote: > I am wondering did i c

Re: Test Suite and HABTM Models - Not Working

2008-10-31 Thread MikeB
Thanks Anupom, That got me past the missing table cake errors, but now 2/3 of the tests that cake generated are failing. Here is my post.test.php App::import('Model', 'Post'); class PostTestCase extends CakeTestCase { var $Post = null; var $fixtures = array('app.post');

Re: Jquery or Scriptalicious?

2008-10-31 Thread Josey
I perfer jQuery as well. Many Bakers like prototype due to the javascript and ajax helpers that come with CakePHP. These make baking with JS quite a bit easier, not to mention faster however many Javascript experts would cringe to think that developers are using php helpers for the behavioral port

Re: Fatal error Call to undefined method Controller Html()

2008-10-31 Thread Rafael Bandeira aka rafaelbandeira3
> link('Activate account', > array('controller'=>'users', 'action' => 'activate', $userid); ?> ^ it's missing a close bracket here -^ anyway: > Is there a way the above can be used to print out an absolute url ? $html->link('Activate account', $html- >url(arr

Re: Fatal error Call to undefined method Controller Html()

2008-10-31 Thread dr. Hannibal Lecter
Try putting 'full_base' => true to your url array. I haven't tried this myself, but if I'm reading the source right, it should work. Hope that helps! On Oct 31, 2:21 pm, Malcolm Krugger <[EMAIL PROTECTED]> wrote: > link('Activate  account', > array('controller'=>'users', 'action' => 'activate',

Re: Fatal error Call to undefined method Controller Html()

2008-10-31 Thread Malcolm Krugger
link('Activate account', array('controller'=>'users', 'action' => 'activate', $userid); ?> The above works perfect except the fact that it is not the absolute URL $userid by the way is a raw parameter which I want to pass to an action Is there a way the above can be used to print out an absolu

Re: Post Data

2008-10-31 Thread MDB
Maybe if I explain what I am doing better. Basically, I have a form that asks for a birthday. We do not want the users to feel uncomfortable by asking for thier year of birth so I have two drop down boxes, one for the month () and one for the year (). Then since the DB field is a date, I and c

The Cake way of doing this? Multiple models accessing a huge dataset

2008-10-31 Thread Skal Tura
I am wondering did i chose the Cake way of doing things with this, or atleast close :) We have multiple models, all of which access same set of tables handling massive amounts of data, searched using fulltext indexes. There's additions, searches, modifies etc. from 2 different models, ah but ther

Re: Fatal error Call to undefined method Controller Html()

2008-10-31 Thread Malcolm Krugger
Perfect Yes I have a component called Captcha Oh silly me ! --~--~-~--~~~---~--~~ 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

Re: Jquery or Scriptalicious?

2008-10-31 Thread Gabriel Gilini
Looks like I'm the only one who loves prototype here :) Gabriel Gilini www.usosim.com.br [EMAIL PROTECTED] [EMAIL PROTECTED] On Fri, Oct 31, 2008 at 10:27 AM, Marcelius <[EMAIL PROTECTED]> wrote: > > @Anupom: Any arguments? > > Anupom schreef: > > I think PHP helper for writing Javascript is a

Re: Jquery or Scriptalicious?

2008-10-31 Thread Marcelius
@Anupom: Any arguments? Anupom schreef: > I think PHP helper for writing Javascript is a very bad idea. > > On Fri, Oct 31, 2008 at 3:23 PM, martinp <[EMAIL PROTECTED]> wrote: > > > > > Despite the fact that CakePHP comes with a Scriptaculous-powered AJAX > > Helper, I find JQuery so much easier

Re: Post Data

2008-10-31 Thread Gabriel Gilini
Are you building your form with the Form Helper? Because it seems to me that there are no naming conventions at all there. Cheers Gabriel Gilini www.usosim.com.br [EMAIL PROTECTED] [EMAIL PROTECTED] On Fri, Oct 31, 2008 at 9:46 AM, MDB <[EMAIL PROTECTED]> wrote: > > The form values do not sho

Re: Fatal error Call to undefined method Controller Html()

2008-10-31 Thread dr. Hannibal Lecter
Helpers are not meant to be used in a controller, they are used in your views/layouts/elements. Could it be that you also have a component called Captcha? If you do, that's the reason why $this->Captcha->show(); doesn't crash, but $this- >Html('title' , ''); does. On Oct 31, 1:15 pm, Malcolm Kru

Fatal error Call to undefined method Controller Html()

2008-10-31 Thread Malcolm Krugger
I have this var $helpers = array('Html', 'Form', 'Captcha'); and now when I use $this->Captcha->show(); IT works perfectly..No issues there but when I use something like $this->Html('title' , ''); The error given is Fatal error: Call to undefined method UsersController::Html() So what co

Re: Whats the best idea to keep DB under version control or under sync with server?

2008-10-31 Thread Abhimanyu Grover
Joel, what advantages will cakephp-migrations provide over schema shell? On Oct 31, 2:31 pm, joelmoss <[EMAIL PROTECTED]> wrote: > Take a look at this guys:http://code.google.com/p/cakephp-migrations/ > > On Oct 31, 12:42 am, Abhimanyu Grover <[EMAIL PROTECTED]> wrote: > > > I posted a small tuto

Re: Post Data

2008-10-31 Thread MDB
The form values do not show up when I do that, they do when I do a debug($this) and appear like this: [form] => Array ( [Test1] => 04 [Test2] => 05 ) How do I access these values? I have tried $this->form and $_POST['Test1']

Re: Question about Data Sanitation in CAKEPHP

2008-10-31 Thread [EMAIL PROTECTED]
Ok Many Thanks On 31 Ott, 11:29, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > > If I would sanitaze my input from javascript code? > > No, you need to escape whenever you send dynamic content to de user > (though the form helper will escape the inputs values), use the > builtin h() function.

Re: Position of label on checkbox inputs

2008-10-31 Thread grigri
It is common practice to have labels for most form elements before (above or to the left of) the element itself, except for radio buttons and checkboxes, where the norm is for the label to be on the right. [x] Bacon [x] Eggs [x] Sausages easier to read than Bacon [x] Eggs [x] Sausages [x] I've

Re: An OO question

2008-10-31 Thread [EMAIL PROTECTED]
Well I guess its Halloween so we can expect a few (help) vampires right? hehe! On Oct 31, 4:04 am, Calvin <[EMAIL PROTECTED]> wrote: > Hi all, > > I am finding difficult to understand why this isn't working... > > > abstract class A { >     protected static $property = false; # Q1 >     public s

AW: Translation and placeholders

2008-10-31 Thread Liebermann, Anja Carolin
Found something for my porblem. Seems the good old sprintf ist still the solutionfro general strings: E.g. sprintf(__('Wollen Sie # %s wirklich löschen?', true), $ort['id']) Anja -Ursprüngliche Nachricht- Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Lieberman

Re: Jquery or Scriptalicious?

2008-10-31 Thread grigri
> JQuery or Scriptalicious? Mootools for me. But to each his own... On Oct 31, 10:18 am, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > I think Jquery is better, based purely in that it's so easy and > intuitive to use/extend that you will need no helper. > > On Fri, Oct 31, 2008 at 7:26 AM,

AW: Delete Auth Cookie on Logout

2008-10-31 Thread Liebermann, Anja Carolin
Hi, What I have: function logout() { // Redirect users to this action if they click on a Logout button. // All we need to do here is trash the session information: $this->Session->delete('User'); // And we should

Translation and placeholders

2008-10-31 Thread Liebermann, Anja Carolin
Hi everybody, I need a hint how I get my variables into a translateed string. E.g. (you surely know that one *g*) 'Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%' Where do %page% etc come from? I have several strings like th

Re: Question about Data Sanitation in CAKEPHP

2008-10-31 Thread Dardo Sordi Bogado
> If I would sanitaze my input from javascript code? No, you need to escape whenever you send dynamic content to de user (though the form helper will escape the inputs values), use the builtin h() function. echo h($comment['Comment']['content']); If you want to strip the tags or other bad conte

Re: Jquery or Scriptalicious?

2008-10-31 Thread Dardo Sordi Bogado
I think Jquery is better, based purely in that it's so easy and intuitive to use/extend that you will need no helper. On Fri, Oct 31, 2008 at 7:26 AM, Anupom <[EMAIL PROTECTED]> wrote: > I think PHP helper for writing Javascript is a very bad idea. > > On Fri, Oct 31, 2008 at 3:23 PM, martinp <[E

Re: Whats the best idea to keep DB under version control or under sync with server?

2008-10-31 Thread Dardo Sordi Bogado
I've been using cake schema from the beginning and (except for some small bugs already fixed) it worked great out of the box. Cake schema rocks! On Thu, Oct 30, 2008 at 9:01 PM, Abhimanyu Grover <[EMAIL PROTECTED]> wrote: > > Thanks, looks like Cake schema would be the only problem solver in my >

Position of label on checkbox inputs

2008-10-31 Thread Tom Singer
Hi, Is there a reason $out is appended to the end in form->input when $type is set to checkbox? This behaviour is different to all the other types which place label before the input and is causing me issues with my layout. I can fix this by moving the out variable between $before and the checkbox

Re: Whats the best idea to keep DB under version control or under sync with server?

2008-10-31 Thread joelmoss
Take a look at this guys: http://code.google.com/p/cakephp-migrations/ On Oct 31, 12:42 am, Abhimanyu Grover <[EMAIL PROTECTED]> wrote: > I posted a small tutorial on same: > > http://www.gigapromoters.com/blog/2008/10/30/how-to-keep-your-databas... > > Hoping it will help others. > > On Oct 30,

Re: Jquery or Scriptalicious?

2008-10-31 Thread Anupom
I think PHP helper for writing Javascript is a very bad idea. On Fri, Oct 31, 2008 at 3:23 PM, martinp <[EMAIL PROTECTED]> wrote: > > Despite the fact that CakePHP comes with a Scriptaculous-powered AJAX > Helper, I find JQuery so much easier to use that you don't really need > a helper. > > On O

Re: Jquery or Scriptalicious?

2008-10-31 Thread martinp
Despite the fact that CakePHP comes with a Scriptaculous-powered AJAX Helper, I find JQuery so much easier to use that you don't really need a helper. On Oct 31, 9:30 am, Gianluca Gentile <[EMAIL PROTECTED]> wrote: > jQuery . > > On Oct 30, 11:49 pm, Matthieu <[EMAIL PROTECTED]> wrote: > > > Hell

Re: Jquery or Scriptalicious?

2008-10-31 Thread Gianluca Gentile
jQuery . On Oct 30, 11:49 pm, Matthieu <[EMAIL PROTECTED]> wrote: > Hello, > > I'm gonna create a web app using CakePHP but I'm confused about > chosing between Jquery or Scriptalious? Which one should I choose? > Does it really matter? What's the differences between them? > > tks --~--~

Re: Question about Data Sanitation in CAKEPHP

2008-10-31 Thread [EMAIL PROTECTED]
If I would sanitaze my input from javascript code? On 30 Ott, 18:57, Gwoo <[EMAIL PROTECTED]> wrote: > The DBO layer handles proper escaping of your data to prevent SQL > injection. You do not need to use Sanitize unless you are doing > something out of the ordinary. --~--~-~--~~

Re: Admin + Members suggested setup??

2008-10-31 Thread Adam Royle
Admin routing as more useful in a CMS-style site where there are clearly two distinct areas display of site data, and administering site data, which both could differ greatly in controller & view code, rather than just acl & permissions. Hope that clears things up. Cheers, Adam On Oct 29, 6

Re: Jquery or Scriptalicious?

2008-10-31 Thread Flipflops
Try em both. See you which you prefer. But I vote for jquery. The jquery website is really good with loads of links to tutorials and working examples of everything and even better it is quick now too. On Oct 30, 10:49 pm, Matthieu <[EMAIL PROTECTED]> wrote: > Hello, > > I'm gonna create a web ap

Re: Admin + Members suggested setup??

2008-10-31 Thread Kappa
Admin routing and ACL are two different things, admin routing is just a "quick way" to have some action not accessible from everybody with a few efforts. And from what i know (but it should be cheched) at least in Cake 1.2 there's also the availability of some "super_admin" methods. Anyway a nice

Re: Admin + Members suggested setup??

2008-10-31 Thread Flipflops
I've created some sites with multiple admin routes (i.e. members and admin) although only in 1.1 - there is an article about it in the bakery: http://bakery.cakephp.org/articles/view/using-cake_admin-for-multiple-user-types - it works very well. I seem to remember reading that this is built in i

Re: An OO question

2008-10-31 Thread AD7six
On Oct 31, 5:04 am, Calvin <[EMAIL PROTECTED]> wrote: > Hi all, > > I am finding difficult to understand why this isn't working... > > > abstract class A { >     protected static $property = false; # Q1 >     public static function method() { # Q2 >         return self::$property; >     } > > }

Re: htaccess problems.

2008-10-31 Thread Anupom
Hi there, Can you please share your modified .htaccess file that you have inside your cake1.2 directory? I guess you have other .htaccess files inside your root or html directory? Can you tell us what's written inside those as well? So my questions are if the .htaccess is necessary? good practice

An OO question

2008-10-31 Thread Calvin
Hi all, I am finding difficult to understand why this isn't working... http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---

htaccess problems.

2008-10-31 Thread Todd M
I'm finding problems with what I believe is with .htaccess in the cake_install_directory. My current web server only allows the /html directory as a HTML root. To reduce complexity, I thought it would be good to start with untaring the CakePHP in that directory. so my directory appears something

Multiple login system

2008-10-31 Thread bookme
Hi, I am working on a site and want to implement two types of users with different logins like: http://www.naukri.com/ 1. User Login 2. Business Login Should I use Auth using ACL? Also, please suggest if you have better solution for this ? Thanks --~--~-~--~~~---~--