Pretty URLs Develpoment Installation Problem

2006-11-17 Thread josh southern
I'm trying to get a development install up and running on a shared server (No mod_rewrite or access to the httpd.conf file), but am having problems with: define ('BASE_URL', env('SCRIPT_NAME')); This line in the core.php file, which usually allows me to run a development install when there is no

Re: Saving associated models

2006-11-17 Thread igor
Ok. here we go... I am using in view something like this: .. $mycheckbox = ''; .. Any other way I can't get my HTML to be rendered appropriately... :( In my contrroller I have something like this: .. if ($this->Connection->save()) { $this->flash('Saved!', '/admins/connections_editors')

Re: A safe webhost

2006-11-17 Thread Eric C Blount
Create database usernames/passwords for each shared account, including your own, and don't allow them access to other databases. Check the website for the database you are using (ie http://www.mysql.com/) for more info on how to do this. Eric On 11/17/06, Chris Hartjes <[EMAIL PROTECTED]> wrote

Overriding Session Component for better setFlash()?

2006-11-17 Thread brandags
I'm using Session::setFlash() to show messages to the user, but there are some things I don't like about it: 1) It can only show one message at a time. I'd like to be able to set several messages and have them all displayed once the page refreshes. 2) While you can set layouts for the entire flas

upgrade associate

2006-11-17 Thread [EMAIL PROTECTED]
How is the best way to add owner_id to this association exp. function addAssoc($id,$assoc_name,$assoc_id,$owner_id) [cpde] function addAssoc($id,$assoc_name,$assoc_id) { $data=$this->_auxAssoc($id,$assoc_name); if (!is_array($assoc_id)) $assoc_id=array($assoc_id); $data

Re: high load and benchmarking

2006-11-17 Thread [EMAIL PROTECTED]
Thank you for replyes. I know how to do overall benchmarking and some specific benchmarkin also. The part I'm intrested is taht are those autogenerated joins optimal to use in live environment or is it wiser to use specific querys and do not get a good/easy use of autogeneration and overall datab

Re: selectTag

2006-11-17 Thread [EMAIL PROTECTED]
Try using css: white-space: pre; 2000Man wrote: > Another try :) > > In the latest Cake (version 1.1.10.3825), the selectTag function has > been changed. In the previous version, I could use html-entities in my > option-titles, for example > '       Indented Title' (left out ';'). But now in >

Setting up autocomplete

2006-11-17 Thread Christoph
So I read the following article and implemented everything detailed within. I followed the instructions exactly in this article and it's not working. The following is in my default layout: charsetTag('UTF-8'); echo $javascript->link('prototype'); echo $javascript->link('script

Re: Where to find CakePHP Programmers

2006-11-17 Thread [EMAIL PROTECTED]
I'm from poland -> island, WOLIN :D maaybe i can help you :) most of my frends go to work in UK i can to USA :D On 17 Lis, 06:24, "guitarclap" <[EMAIL PROTECTED]> wrote: > I am in Charleston, SC (yes, i know, not the mecca for computer > technology) and our company has finally allowed to bring

Saving associated models

2006-11-17 Thread igor
I have this Editor model which hasAndBelongsToMany Connection(s). Editor, Connection models have all associations set corrrect. On a page I have this Connection and a list of all Editors. I want to use checkbox to check which Editor(s) I want to assign to this Connection.id given. How should I n

Re: Modeling database views

2006-11-17 Thread Christoph
> I can't see any reason why you wouldn't want to model a view. As far as > SQL is concerned, views can be treated just like any other table. So > all of the fancy helper methods should work the same on views as they > do on tables. I agree on general principle. My question is about the wisdom o

Re: A safe webhost

2006-11-17 Thread Chris Hartjes
On 11/17/06, cele1989 <[EMAIL PROTECTED]> wrote: > > > > So I was wondering...how am I going to solve this? > That sounds like a problem that goes way beyond CakePHP. I highly recommend a book I have called "Transparent Databases" that will probably show you some tips for keeping publicy-availab

A safe webhost

2006-11-17 Thread cele1989
I'm working on something I have a own webserver and like to share it with a little amount of members. I need a website where they can login, etc etc... Now I have a big problem...security... I need to be able to easily controle the members and their rights, etc etc... I thought, well nice, I will

Re: Modeling database views

2006-11-17 Thread [EMAIL PROTECTED]
I don't have any experience with database view in cakePHP. But I have used both, so here's my take. I can't see any reason why you wouldn't want to model a view. As far as SQL is concerned, views can be treated just like any other table. So all of the fancy helper methods should work the same on

Re: best manual about acl witch cake

2006-11-17 Thread [EMAIL PROTECTED]
> I particularly like the idea of having records as ACOs and not just > controller/actions as ACO as is mostly believed. > > Have been toying about with ACL and related issues I was thinking of > making controller:action:id as ACOs but I like the idea of model:id as yes it's a very good idea ! n

Re: Modeling database views

2006-11-17 Thread Chris Hartjes
On 11/17/06, Christoph <[EMAIL PROTECTED]> wrote: > > > I believe that the point of the helper functions is to keep things > > database-agnostic, and building in exceptions for a specific database > > should be kept to a minimum. > > I'm not talking about creating helpers or helper functions. Jus

Re: Modeling database views

2006-11-17 Thread Christoph
> I believe that the point of the helper functions is to keep things > database-agnostic, and building in exceptions for a specific database > should be kept to a minimum. I'm not talking about creating helpers or helper functions. Just using a DB view's model for things like findAll(), generate

Re: CakePHP mailing list?

2006-11-17 Thread nate
Get the RSS feed. (See the "About" link".) --~--~-~--~~~---~--~~ 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

Re: Modeling database views

2006-11-17 Thread Chris Hartjes
On 11/17/06, Christoph <[EMAIL PROTECTED]> wrote: > > Any thoughts? > > thnx, > Christoph I have zero experience with views...but I don't see what would stop anyone from creating a model that manipulates views. Maybe you don't get to use all the fancy helper methods, but I suspect you probably n

Re: Modeling database views

2006-11-17 Thread Christoph
Any thoughts? thnx, Christoph --~--~-~--~~~---~--~~ 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 P

Re: CakePHP mailing list?

2006-11-17 Thread D.Pape
hi christoph, i´m joining this group via email, so i am always up to date. daniel Christoph schrieb: > Is there a mailing list or other forum for CakePHP? It seems like this > Google Groups format makes things more difficult. It seems like the > older posts get overlooked because they are

Re: high load and benchmarking

2006-11-17 Thread NOSLOW
If one were to develop such a tool to benchmark a CakePHP project under high load, I guess a suitable name for it would be "PoundCake" :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to

Re: read() function is not working

2006-11-17 Thread rdoggsv
Sometimes its because u have a primarykey diferent from 'id' if im not wrong your PK is 'fldUserID' , make sure u specified it on the model like $primaryKey = 'fldUserID'; , sometimes i use instead of $this->Ciuser->id = $id; $this->Ciuser->read(); - $this->Ciuser->read(null,$id); hope th

Re: Re: Re: Changing theme

2006-11-17 Thread xeboy
Dr. Tarique Sani,您好! I am not good enough to write a tutorial like others. I am just newbie. But, I am glad to share my experience. First, the theme.php will handle the rest, when u set your theme. Just put the theme.php into the folder of views. And, in your app_controller, set var $view = 'T

tagErrorMsg annoyance

2006-11-17 Thread Richard
Hi, I have removed the styling information from the tagErrorMsg method, so that no automaginess happens when outputting messages. This does mean everytime I update cake I will have to update html.php ... are there any other options? Do you agree that having the flexibility in surpressing this st

Re: Default layout and controllers

2006-11-17 Thread Erich C. Beyrent
I had tried that approach. What happens is that the view sees the variable without a problem, but not the default layout. It's almost like I need to pass the variable to the controller that handles the layout to set. -Erich- Grant Cox wrote: > I think the problem to #1 is that you have > if

CakePHP mailing list?

2006-11-17 Thread Christoph
Is there a mailing list or other forum for CakePHP? It seems like this Google Groups format makes things more difficult. It seems like the older posts get overlooked because they are 2 or 3 or more pages back. Unless you check several times a day, it's very easy to overlook messages... thnx, Ch

Re: editInPlace fckeditor

2006-11-17 Thread bingo
Hi Ismael, Thanks for the pointer..I think I saw it...and got fckeditor working...but now sure how to display FCKeditor when user double clicks on a paragraph... Bingo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: bake.php directory exists

2006-11-17 Thread Sonic Baker
On 11/16/06, gazzur <[EMAIL PROTECTED]> wrote: > > > > > Anyone know what I should be doing? Have you tried the -project switch? bake -h for details. HTH Sonic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ca

Re: editInPlace fckeditor

2006-11-17 Thread Ismael S. Kafeltz
Maybe this helps: http://bakery.cakephp.org/articles/view/143 --~--~-~--~~~---~--~~ 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 thi

editInPlace fckeditor

2006-11-17 Thread bingo
Hi, I am wondering did anyone try getting FCKEditor instead of regular textarea for editInPlaceI would like to have that functionality. But I am not very good with ajax and javascript. Please let me know if you guys have some interesting pointers for that Regards, bingo --~--~-~--

Re: cookie

2006-11-17 Thread joe
the cake session component works great: http://manual.cakephp.org/chapter/session --~--~-~--~~~---~--~~ 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

Re: cake 1.2

2006-11-17 Thread Daniel Hofstetter
Hi Mandy, Use the API for the 1.1.x.x version: http://cakeforge.org/frs/download.php/264/cake-api-1.1.8.3544.chm As long as there is no official release, cake 1.2 is considered to be unstable. But if you can live with that, you can use it for your project. -- Daniel Hofstetter http://cakebake

cake 1.2

2006-11-17 Thread Mandy
Hi Guys, I am a little confused as with the versions of cake. I am on latest 1.x series.. But, when I downloaded the API today, it was for version 1.2.0.3268 (is this cake version or api version)? And this has really cool classes for validation, router, etc etc that I can make use of right awa

Re: unnecessary left joins in findCount()?

2006-11-17 Thread Mandy
You might also want to try doing unbind model option before doing a find $this->User->unbindModel(array('hasMany'=>array('Message'))); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to th

Re: best manual about acl witch cake

2006-11-17 Thread Dr. Tarique Sani
On 11/17/06, nate <[EMAIL PROTECTED]> wrote: > > This tutorial is so, so wrong. Who told you all it was a good idea to > use components in a model?? You think we're going to publish code on > the Bakery that violates the tenents of MVC? OK! went back and read the article - it can be refactored

Re: best manual about acl witch cake

2006-11-17 Thread Dr. Tarique Sani
On 11/17/06, nate <[EMAIL PROTECTED]> wrote: > > This tutorial is so, so wrong. Who told you all it was a good idea to Yes! you are right!! /me reminds himself to read complete article before commenting Tarique -- = PHP Applications