AW: Themes

2008-11-04 Thread Liebermann, Anja Carolin
Hi Maverick, As Sam pointed out when you are done, set debuglevel to 0. Considering themes: There is such a wide range of applications which you can develop with Cake that themes would be nonsense. Just open your application with Firefox and Firebug and check where your formats are defined and

AW: configuring cakePHP,

2008-11-04 Thread Liebermann, Anja Carolin
Hi Janis, example.com is a placeholder for the domain name which will host your future application. Just ignore this as long as you application isn't running on your final webserver. If you put your cake folder in the document root ( = htdocs) your application should show up when you request h

Re: Naming a Model "Model"

2008-11-04 Thread Joel Perras
The API has a list of all the classes found in CakePHP: http://api.cakephp.org/classes.html . Steer away from any of those names. -J. On Nov 4, 7:30 pm, Pyrite <[EMAIL PROTECTED]> wrote: > Is there a list of reserved table names and/or model names? > > On Nov 4, 4:48 pm, Sam DeVore <[EMAIL PROT

Re: Security Application Scanner

2008-11-04 Thread Dr. Tarique Sani
Ratproxy and Chorizo But this is kinda off topic for this list HTH Tarique On Wed, Nov 5, 2008 at 4:05 AM, validkeys <[EMAIL PROTECTED]> wrote: > > Anyone have a good recommendation for a web app scanner? > > > -- = Cheesecake-P

Re: Ajax Redirect and setFlash Messages

2008-11-04 Thread Adam Royle
Why do you need to redirect inside an ajax request? I've never run into this requirement before. Cheers, Adam On Oct 15, 6:33 am, Julián Lastiri <[EMAIL PROTECTED]> wrote: > Well, i found that when i call redirect from an ajax request the > redirect is forwarded to the beforeRedirect method from

configuring cakePHP,

2008-11-04 Thread Janis Rough
I am using Xampp I put the unpacked cake folders in the htdocs folder. I restarted it after I did the following in httpd.conf: LoadModule rewrite_module modules/mod_rewrite.so AllowOverride All I typed http://localhost/example.com. I didn't get an example page but I did get this message:

Re: Returning a model variable

2008-11-04 Thread David C. Zentgraf
On 4 Nov 2008, at 23:47, Mathew wrote: > class Document extens AppModel > { > var $foo; > > function afterSave() > { >. >$foo = "something"; $this->foo = "something"; > } > } > > in your controller > > $this->Document->save($data); > echo $this->Document->foo; FTFY. --~--~---

Re: Ajax ObserField "Form is not defined"

2008-11-04 Thread Brenton B
I think I'm running into something similar with 1.2 and AJAX submit ... however, could potentially be a compatibility issue with Prototype. On Sep 16, 4:51 am, AussieFreelancer <[EMAIL PROTECTED]> wrote: > anyone, anyone... does observeField actually work in 1.1? I have it > working in 1.2 ok, bu

Re: Naming a Model "Model"

2008-11-04 Thread Pyrite
Is there a list of reserved table names and/or model names? On Nov 4, 4:48 pm, Sam DeVore <[EMAIL PROTECTED]> wrote: > Bust out the thesaurus it's reserved > > === > Sent from my AT&T Rotary Phonehttp://blog.samdevore.com > > On Nov 4, 2008, at 2:54 PM, Pyrite <[EMAIL PROTECTED]> wrote: > > > > >

Form validation errors not showing up

2008-11-04 Thread Brenda
I have a form that won't save data because of a validation error, but the validation errors are not appearing in the form. The flash message that the data could not be saved appears, but not the individual error messages. I think I've got everything set up the same way that I did for another form

Re: Ajax Redirect and setFlash Messages

2008-11-04 Thread jasonL
I just upgraded to RC3 and ran into this exact problem. I've not found any way to get a layout to render after an Ajax redirect, except by not using RequestHandler. Did you find a solution? -Jason On Oct 14, 3:33 pm, Julián Lastiri <[EMAIL PROTECTED]> wrote: > Well, i found that when i callred

Re: Using JQuery and Prototype in same application

2008-11-04 Thread mark_story
si-mon: I didn't mean to offend you, it was a honest question. To me its not worth the extra work. However it can be done but there is a lot of hoop jumping. You can do it if you load jQuery first. And force it in to compatibility mode. Samuel: You can configure which javascript is used now!

Re: Pause $ajax->remoteTimer();

2008-11-04 Thread schneimi
Hi, this is not supported by the ajax helper, I think you have to stop and overwrite the PeriodicalExecuter manually. See here http://www.prototypejs.org/api/periodicalExecuter and here http://www.prototypejs.org/api/periodicalExecuter/stop . You could try to change the ajax helper remoteTimer()

Re: Naming a Model "Model"

2008-11-04 Thread Sam DeVore
Bust out the thesaurus it's reserved === Sent from my AT&T Rotary Phone http://blog.samdevore.com On Nov 4, 2008, at 2:54 PM, Pyrite <[EMAIL PROTECTED]> wrote: > > I am developing an application for a business, they have categories, > products, and models. Is it a problem for CakePHP to name t

Security Application Scanner

2008-11-04 Thread validkeys
Anyone have a good recommendation for a web app scanner? --~--~-~--~~~---~--~~ 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 group,

Re: bindModel not resetting after first find

2008-11-04 Thread validkeys
anyone know? On Nov 3, 6:20 pm, validkeys <[EMAIL PROTECTED]> wrote: > Hi Guys, > > I have a clients and a milestone model. A client hasMany milestones. > Milestones have many strategies. > > In one of the finds in my Client model, I unbind the Strategy model > from the Milestone model, in order

Re: Naming a Model "Model"

2008-11-04 Thread teknoid
can't do that On Nov 4, 4:54 pm, Pyrite <[EMAIL PROTECTED]> wrote: > I am developing an application for a business, they have categories, > products, and models. Is it a problem for CakePHP to name the database > table "models" and the actual model "Model", or do I need to think of > a different

Naming a Model "Model"

2008-11-04 Thread Pyrite
I am developing an application for a business, they have categories, products, and models. Is it a problem for CakePHP to name the database table "models" and the actual model "Model", or do I need to think of a different term? --~--~-~--~~~---~--~~ You received th

Reset form after $ajax->submit();

2008-11-04 Thread Galdan
Hi together, i submit a form over $ajax->submit(); and update a div layer. That works very fine, but the form don't get reseted afterwards. How I can do this? Could someone help me? Thank you!!! Bye Tom --~--~-~--~~~---~--~~ You received this message because you

Re: Non alphanumeric chars breaks $validate error messages

2008-11-04 Thread emmbec
I have an even weirder problem, I can see the spanish characters correctly in my PHP application, but if I query the database (Using phpmyadmin) I see weird characters stored. Do you think that may be a problem with PHPMYADMIN and not a problem with Cake?? Thanks On Oct 9, 5:01 pm, "R. Davila" <

Pause $ajax->remoteTimer();

2008-11-04 Thread Galdan
Hi together, i use $ajax->remoteTimer(); to refresh a DIV all 30 seconds. I wan't to enable/disable this by an checkbox, but i have absolutely no idea to handle this. Could you help me? Thank you very much in advance! byebye Tom --~--~-~--~~~---~--~~ You receiv

Re: Hello friends,

2008-11-04 Thread teknoid
http://book.cakephp.org/ On Nov 4, 2:32 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Myself jack, I m new to programming and with cakephp I m even more > new.I went through this site cakphp.org, Its quite helpful, > But I m > not able to think logical at times as to why we use few

Cake Developers in Boston Area?

2008-11-04 Thread Joe
Hey guys, I apologize in advance if this is not the appropriate forum to ask this question, but I am interested in finding a Cake Developer to work on an existing custom web app that has been built in Cake. If you know of anyone that is interested in a part-time opportunity, can you please PM me

Hello friends,

2008-11-04 Thread [EMAIL PROTECTED]
Myself jack, I m new to programming and with cakephp I m even more new.I went through this site cakphp.org, Its quite helpful, But I m not able to think logical at times as to why we use few things..Now i m improving, But need to work a lot on it.I m helpless, And I get confused

Re: How do I represent a habtm where the join table has extra information?

2008-11-04 Thread Bernardo Vieira
This might come in handy when it comes to manipulating the extra data on the join table: http://www.cricava.com/blogs/index.php?blog=6&title=modelizing_habtm_join_tables_in_cakephp_&more=1&c=1&tb=1&pb=1 Adriano Varoli Piazza wrote: > Thanks for both the answers. I'm now dealing with the right wa

Re: Before filter, the session falls

2008-11-04 Thread mcphisto
Ok I tried to set CAKE security on a medium level, and now it works correctly. Thanks to all. On 3 Nov, 15:55, mcphisto <[EMAIL PROTECTED]> wrote: > Ok, maybe this is the problem. I experienced sessions falling when > using live search or when opening blank pages. Now I changed the > configuratio

Re: Themes

2008-11-04 Thread Sam Sherlock
debug info disappears when you set debug to 0. you make your own theme as you need it, that styles your views (these are individual to each app) cake != wordpress 2008/11/4 Maverick <[EMAIL PROTECTED]> > > Hi all, > I am a bit new to CakePHP and have gone through the demos and read a > few boo

Themes

2008-11-04 Thread Maverick
Hi all, I am a bit new to CakePHP and have gone through the demos and read a few books. Are there any downloadable themes (view templates) other than the one that comes with CakePHP. I don't want the debug info and ads for Cake everywhere. I would image that someone has a list of downloadable the

Re: Using JQuery and Prototype in same application

2008-11-04 Thread Giaco
Since both frameworks use the $()-function, you either - have to jump through loops to make it working for both of them - use the jQuery alias function jQuery() - or, my favorite: if you use the short form to wait till page load of DOM of jQuery: "jQuery(function(){/* yourcodehere */})" you ca

Re: Add-on Domain w/ Cakephp

2008-11-04 Thread cjsharp1
I had a similiar issue when setting up a subdomain. What Adam is saying is the correct code, but just remember to add the rewrite rule. Here is what I had to do in my primary .htaccess file: RewriteEngine on RewriteCond %{HTTP_HOST} subdomain.second-domain.com RewriteRul

Re: An OO question

2008-11-04 Thread mark_story
On Oct 30, 11:04 pm, 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: Jquery or Scriptalicious?

2008-11-04 Thread mark_story
On Nov 3, 3:02 pm, 703designs <[EMAIL PROTECTED]> wrote: > I'd love MooTools if they chose to namespace the library to a MOO or > similar object and not change basic prototypes (even String is > modified!). Unfortunately, it's hard to trust if you're running it > around other scripts. I wonder how

Re: How do I represent a habtm where the join table has extra information?

2008-11-04 Thread Adriano Varoli Piazza
Thanks for both the answers. I'm now dealing with the right way to name the model and controller for that join table. It looks like I'm doing something wrong somewhere... On 4 nov, 11:41, hydra12 <[EMAIL PROTECTED]> wrote: > Take a look here:http://book.cakephp.org/view/83/hasAndBelongsToMany-HA

Re: Returning a model variable

2008-11-04 Thread Mathew
class Document extens AppModel { var $foo; function afterSave() { . $foo = "something"; } } in your controller $this->Document->save($data); echo $this->Document->foo; --~--~-~--~~~---~--~~ You received this message because you are subscribed

File List in a particular Directory

2008-11-04 Thread Cjo
Hi, I have to show all the files that I have uploaded through my application. Please help me with this. Regards Cjo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email

Re: File List in a particular Directory

2008-11-04 Thread AD7six
On Nov 4, 2:30 pm, Cjo <[EMAIL PROTECTED]> wrote: > Hi, > > I have to show all the files that I have uploaded through my > application. > Please help me with this. > > Regards > Cjo http://api.cakephp.org/class_folder.html#cae6a10175cdf45d5e303edbe6432dfc --~--~-~--~~~--

Re: How do I represent a habtm where the join table has extra information?

2008-11-04 Thread hydra12
Take a look here: http://book.cakephp.org/view/83/hasAndBelongsToMany-HABTM. Look especially at the 'with' key when you define your HABTM relationship. It says in the docs: with: Defines the name of the model for the join table. By default CakePHP will auto-create a model for you. Using the

Re: Using $this->ModelA->ModelB->find('list') with belongsTo conditions on ModelA.

2008-11-04 Thread Ian M. Jones
Hi David, That's a shame, as in this case ModelB is an alias, and so the condition specified in the relationship to ModelA only applies to that relationship. In fact, in my particular case a Crop can have an Entry Classification and an Attained Classification, which are sub-sets of the Classific

Displaying dynamic pages as static cached pages

2008-11-04 Thread Marcus Silva
Hello all, Someone has recently asked about serving dynamic pages as static, so I decided to write something very quickly solution that those who need it can use. Its here ... http://www.marsilva.karoo.net/blog/ bear in mind that I have not managed to find the time to actually explain what the

Re: Parameter passing in URL

2008-11-04 Thread RyOnLife
Daniel, I suggest you download the Firebug Firefox add-on and try it out with the http://bakery.cakephp.org/articles/view/firecake-helper Firecake helper for CakePHP. Makes it really easy to see what's going on with session variables. Feanor's Curse wrote: > > > How? If the user opens a ne

Re: How do I represent a habtm where the join table has extra information?

2008-11-04 Thread Anupom
I think having a separate model for your join table is okay in this case. And perhaps it's a must as you have a third foreign key involved in that join table. On Tue, Nov 4, 2008 at 6:00 PM, Adriano Varoli Piazza <[EMAIL PROTECTED]>wrote: > > I'm developing an app where I have two tables, let's c

Re: Add-on Domain w/ Cakephp

2008-11-04 Thread Adam Royle
Haven't tried this, but I'm guessing something like this... ignoring your second-domain.com in the primary site's .htaccess rewritecond %{http_host} !^(www)?\.second-domain\.com On Nov 4, 4:37 pm, Kyle Decot <[EMAIL PROTECTED]> wrote: > I have a CakePHP app installed on my primary domain/hosting

Re: tree behavior sorting

2008-11-04 Thread Adam Royle
Here is a tutorial I wrote a while ago that does what you describe. I've only used it with <= RC2 so not sure if it will work with RC3, but I'm guessing (hoping!) it does. http://blogs.bigfish.tv/adam/2008/02/12/drag-and-drop-using-ext-js-with-the-cakephp-tree-behavior/ I did run into a few bugs

Re: Jquery or Scriptalicious?

2008-11-04 Thread grigri
> ... if you believe so much in OOP and codes > must be clean even if you have to write 10 line over 1 line to other > framework then you should go with mootools or prototype. I don't want to start a flame war here, but that is _so_ not true. About mootools, at least (prototype does seem a bit ve

Get your CakeFest ticket!

2008-11-04 Thread Mariano Iglesias
Like some of you may know (if you don't, now you do ;) between December 2 and December 5 we will be celebrating the CakePHP official gathering, CakeFest. There you'll be attending talks about the most interesting topics, given by respected members of the PHP community, including the CakePHP Cor

Re: Jquery or Scriptalicious?

2008-11-04 Thread Gabriel Gilini
> > the lesser the codes the lesser the debugging time oh, that's so not true [snip] Gabriel Gilini www.usosim.com.br [EMAIL PROTECTED] [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP"

Re: Authentificate against LDAP?

2008-11-04 Thread hydra12
There are some articles in the bakery about using ldap as a model. I haven't used them, so I couldn't say how well they work. I do know that ActiveDirectory is microsoft's version of ldap and doesn't always work quite the way you think it should. Personally, I use adLdap (http://adldap.sourcefo

Re: multiple habtm's relations in just one table

2008-11-04 Thread Dardo Sordi Bogado
I would model it this way: Datasheet hasMany DatasheetLine / DatasheetLine belongsTo Datasheet DatasheetLine belongsTo Ingredient datasheets --- id product more... datasheet_lines - id datasheet_id ingredient_id proportion twa stel ingredients i

How do I represent a habtm where the join table has extra information?

2008-11-04 Thread Adriano Varoli Piazza
I'm developing an app where I have two tables, let's call them items and people, where the relationship between them is HABTM. Plus, the individual relationships have extra info: this person is related to this item with a 'description' field. E.g.: people: id other fields ---

Re: Using $this->ModelA->ModelB->find('list') with belongsTo conditions on ModelA.

2008-11-04 Thread David C. Zentgraf
Doing ModelA->ModelB->find() is the same thing as ModelB->find(). It doesn't matter "through" which or how many models you go, it doesn't change the result. Which means, the conditions and associations you have defined in ModelB are being used here, so check those. On 4 Nov 2008, at 20:07, Ia

Using $this->ModelA->ModelB->find('list') with belongsTo conditions on ModelA.

2008-11-04 Thread Ian M. Jones
Hi all, I'm a little confused about something I'm seeing with belongsTo conditions, and from searching the docs and this list I haven't been able to find an answer. Maybe some kind soul can help clear my confusion? In my Crop model I have: var $belongsTo = array( 'EntryC

Ajax linking messes up other javascript apps

2008-11-04 Thread Bonechair
Hi There I have a admin backend with Google maps location picker then on another page I have swfuploader. Everything was working cool untill my client asked me to add Ajax links to the site. Now the swfuploader and google maps not working no more.When Ajax reloads a div, does it not load ja

Authentificate against LDAP?

2008-11-04 Thread Sebastian Göttschkes
Hi, I started using cakePHP not long ago and it's really nice. It works great for me and my time and effort building web apps has decreased. Thank you for this! Right now I got this problem: I need to authentificate not against a database but against a LDAP (Active Directory). In the database I

Re: Parameter passing in URL

2008-11-04 Thread Daniel Süpke
How? If the user opens a new tab and changes the ID there (in the session), it will affect all other tabs, won't it? Best Regards, Daniel Süpke RyOnLife wrote: > > Multiple tabs won't inhibit the use of sessions. > > > Feanor's Curse wrote: >> >> Thanks for the suggestion, but session vari

Re: Pagination with HasMany and SQL Aggregation

2008-11-04 Thread grigri
Of course it's possible - this is cake after all... class ArticlesController extends AppController { // ... var $paginate = array( 'Article' => array( 'limit' => 15, 'order' => 'avg_rating DESC', 'group' => 'Article.id' ) ); // ... function index() { $this->Article->bindModel

ACL nodes naming doubt

2008-11-04 Thread Fran Iglesias
Hi, I want to have two branches on my AROs tree. One is for a typical controllers/actions authorization systems. It works perfectly. The second one is for a "privileges" based authorization inside actions. For example: I want to allow two groups access to the same action, but one group ca

Re: Sitemap generation

2008-11-04 Thread Dardo Sordi Bogado
> $this->set('pages', $this->Info->find(' > Relates to a model "Info" and not to the real static pages. > > Any idea how to achieve this? You need to find the static pages by yourself, take a look at the Folder class: http://api.cakephp.org/1.2/class_folder.html HTH, - Dardo. > Thanky you a

Re: In Some Controllers app_controller is not extending

2008-11-04 Thread Brenton B
Just a heads up, for starters, the app_controller.php file is best placed in `\app\app_controller.php` rather than the Cake libraries because if/when you go to upgrade it'll get over-written. How is the "code for changing page name" called? in `beforeFilter()`? or elsewhere? If it's something comm

Re: Confusion with $uniqueIds in dbo_source.php

2008-11-04 Thread Brenton B
Still no love, hey? I'm not sure how else to explain this other than to ask why dbo_source.php is over-writing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cak

Re: Warning (2): fopen(cakephp/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen]: failed to open stream: Permission denied [CORE/cake/libs/file.php, line 146]

2008-11-04 Thread biesbjerg
Are you executing the cake app using cron? If so, try to put umask(002); in bootstrap and purge tmp files. On Nov 3, 10:50 am, Malcolm Krugger <[EMAIL PROTECTED]> wrote: > Sorry I should have mentioned earlier > > I set 777 perms for /app/tmp and all of its subdirectories too already > > Mal > >

In Some Controllers app_controller is not extending

2008-11-04 Thread Jipson
Hi All, In my cakephp project Page title, meta name and description are stored in a table in database. in my Cart\cake\libs\controller folder app_controller.php file is there. In that file I wrote code for changing page name.In some controllers I am not getting the page title. can anyone ple

Re: Returning a model variable

2008-11-04 Thread spyros k.
First of all, thank you for the reply. I know what you mean about the scope of the variable, and that is why I asked how I can return it. I'm using it in the afterSave callback of the model. On Nov 4, 3:34 am, "Marcelo Andrade" <[EMAIL PROTECTED]> wrote: > On Mon, Nov 3, 2008 at 10:11 PM, spyros