Re: IMPORTANT CakePHP Security Fix

2006-09-06 Thread Mika
Half a dozen? I only know of 2, linking directly to the controller and using set. Which others are there? Also, you say the session helper provides an interface but then isn't that the same as linking the controller to the view? It's also just an interface. --~--~-~--~~~

Re: $this->Set() problems... in controller

2006-09-06 Thread Mikee Freedom
hey chris, try beforeFilter(). runs prior to every action, you can set values there and they will be available in our layout. have fun freedom On 07/09/06, Chris <[EMAIL PROTECTED]> wrote: > > Hello, > > I wanted to change the menu class in my defualt.thml file. here is my > controller: > > cl

$this->Set() problems... in controller

2006-09-06 Thread Chris
Hello, I wanted to change the menu class in my defualt.thml file. here is my controller: class PostsController extends AppController { var $name = 'Posts'; var $pageTitle = 'Test of the page title stuff'; $this->set('MenuSelected', '2'); function index(){ $this->set('post

Re: Cake Errors I'm getting with

2006-09-06 Thread John Zimmerman
Modifying your directory permissions will greatly depend on what operating system your hosting is running on and how your account on that server is setup.I am not attacking you here, but in general that is something that you should be aware about your hosting environment. So providing directions fo

Re: Pagination using multiple models and custom queries

2006-09-06 Thread Sohei Okamoto
I haven't tried this yet, but I think this is what you are looking for.http://wiki.cakephp.org/tutorials:pagination It looks promising.Sohei --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post t

Re: reading table from a component

2006-09-06 Thread Sohei Okamoto
I am not sure exactly what is your intention, but isn't the problem using same name for Model and Component?Either reference must be overwritten in controller.Also, if you want to access to model and/or set data for view, it should be done through controller, I believe.So, in component, it should b

Pagination using multiple models and custom queries

2006-09-06 Thread codecowboy
Hi, I'm working on creating an index of a certain models, however I want to be able to take columns from several tables and be able to sort and paginate according to any of those columns. I was wondering if anyone knew the best way to do this. Also, I would like to know if I could create custom qu

Re: Composit forms for composit models

2006-09-06 Thread Sohei Okamoto
Unfortunately, I don't think there is an easy solution for that.However, If you have some sort of custom validation to assert the error, for example in the controller,if( empty($this->data['Person']['Address']['address1']) ) $this->Person->validationErrors['Address']['address1'] = 1;then you can ma

Re: Creating database tables within an application

2006-09-06 Thread nate
The quickest way that comes to mind is to explicitly invalidate (kill) the cache file, as follows (all the model cache files are kept in tmp/cache/models): cache($pathToCacheFile, null, '-1 minute'); Then I think you might have to delete the in-memory copy of the description out of the database

Re: Creating database tables within an application

2006-09-06 Thread gorbster
nate wrote: > Yes and no. Cake automatically loads up the correct driver as long as > you tell it the type of database you're connecting to, but using > Model::execute forces you to write queries by hand, which means, you'd > have to do your database-specific translation manually. Thanks Nate -

Re: Cake Errors I'm getting with

2006-09-06 Thread Tony
I just figured that out and came back to post that. I didn't see anything with the documentation for that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-

Freelance Work Exchange Home Jobs For Writers Programmers Designers

2006-09-06 Thread john4321
Freelance Work Exchange is a premier online community for freelance professionals and companies looking to hire skilled freelance experts. We have thousands of freelance and work-at-home jobs in the US and worldwide. http://www.shopzero.com/best_services/freelance-work-exchange-home-jobs-for-writ

Re: Cake Errors I'm getting with

2006-09-06 Thread Olivier Percebois-Garve
sounds like cake cannot write in the tmp folder. try to chmod it. olivvv Tony wrote: > Hey guys, > > I'm using CakePHP and I'm getting a few errors. I'm going through the > blog tutorial and this is what is happening: > > > Warning: > file_put_contents(/www/mydomainname.com/mysite/app/tmp/cache/

Re: Cake Errors I'm getting with

2006-09-06 Thread gwoo
chmod /app/tmp to 755 or 777 should fix it. --~--~-~--~~~---~--~~ 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

Cake Errors I'm getting with

2006-09-06 Thread Tony
Hey guys, I'm using CakePHP and I'm getting a few errors. I'm going through the blog tutorial and this is what is happening: Warning: file_put_contents(/www/mydomainname.com/mysite/app/tmp/cache/models/default_scribble_list) [function.file-put-contents]: failed to open stream: Permission denied

Re: Creating database tables within an application

2006-09-06 Thread nate
Yes and no. Cake automatically loads up the correct driver as long as you tell it the type of database you're connecting to, but using Model::execute forces you to write queries by hand, which means, you'd have to do your database-specific translation manually. Unfortunately, none of Cake's data

Re: basic website with cake.

2006-09-06 Thread [EMAIL PROTECTED]
MrTufty: Interesting. That really cleared up a few things. I am doing my best to learn the correct design technics. Don't want to pick up to many bad habits :) Best regards. Asbjørn Morell. --~--~-~--~~~---~--~~ You received this message because you are subscri

cascading deletes.

2006-09-06 Thread [EMAIL PROTECTED]
Does anyone have an idea why I get this error: # Warning: Invalid argument supplied for foreach() in D:download1 - nyttige programmer1 - Internetdevelopmentxampphtdocscakecakelibsmodelmodel_php5.php on line 1019 # # Warning: Cannot modify header information - headers already sent by (output star

Error: Unable to load controller LibsController

2006-09-06 Thread Syl
G'day I'm just starting to use CakePHP (well, and PHP too). I'm using it with PHPEclipse. I'm using WAMP5 Ver 1.6.4 PHP5 Cake Version - 1.1.7.3363 The error I'm receiving is: Fatal: Unable to load controller LibsController Fatal: Create Class:

Re: basic website with cake.

2006-09-06 Thread MrTufty
You're correct about the welcome, creating a page for that under views/pages would do the job just fine. As for the other part, it depends how you want to deal with it. You can use $this->requestAction('/controller/action'); to pull in data from any other controller you like (you can use this in

Re: Leverage Cake For File Downloads

2006-09-06 Thread John David Anderson (_psychic_)
On Sep 6, 2006, at 9:48 AM, Brandon wrote: > > Sorry for the lame subject, I'm not sure how to title what I would > like > to do. > > I have a series of audio files saved on my web server. Information > about the audio files are contained in a database (artist, title, > date, > etc). The a

Re: Creating database tables within an application

2006-09-06 Thread gorbster
Chris Hartjes wrote: > I'm coming a little late to the party here, but I'm curious as to why > you need to dynamically create tables? The application allows users to create a custom-table from predfined column types (e.g. text, image, file), and to specify which of those columns should be "search

free downloads

2006-09-06 Thread coolguy
My new search: A FREE DOWNLOADS WEBSITE Want to Download loads of Software and access 14,000 Serial Numbers of different softwares then logon to http://coolguylinks.blogspot.com/ NO REGISTRATION NO TIMEWASTE JUST DOWNLOAD --~--~-~--~~~---~--~~ You received this m

Re: Creating database tables within an application

2006-09-06 Thread Chris Hartjes
On 9/5/06, gorbster <[EMAIL PROTECTED]> wrote: > > Is it possible to dynamically create tables from within a Cake > application, and then use the table with Cake's Model class? > I'm coming a little late to the party here, but I'm curious as to why you need to dynamically create tables? -- Chri

Re: Creating database tables within an application

2006-09-06 Thread gorbster
Using this option (Model::execute()), is it possible to take advantage of the built-in DBO abstraction currently used in Cake? e.g. if I wanted to specify generic column types when creating the table. Thanks for the help so far, -Brian --~--~-~--~~~---~--~~ You

Leverage Cake For File Downloads

2006-09-06 Thread Brandon
Sorry for the lame subject, I'm not sure how to title what I would like to do. I have a series of audio files saved on my web server. Information about the audio files are contained in a database (artist, title, date, etc). The audio files are named after the primary key, thus ensuring uniquene

Re: Sanitize HTML Question

2006-09-06 Thread Chris
then an element with an array passed to it is the same as a helper? --~--~-~--~~~---~--~~ 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 fro

Re: Sanitize HTML Question

2006-09-06 Thread John David Anderson (_psychic_)
On Sep 6, 2006, at 9:09 AM, Chris wrote: > > much harder but still possible I think? Should I just use > > http://cyberai.com/inputfilter/ and create it as a "helper"? Helpers are usually things to help you with presentational stuff in views - you might try making a component (which is some

Re: Sanitize HTML Question

2006-09-06 Thread Chris
much harder but still possible I think? Should I just use http://cyberai.com/inputfilter/ and create it as a "helper"? Sorry if these questions seem odvouis but I am just getting my head around the MCV logic, and trying to "put it together" in my head before I start converting my site... Ch

Re: Sanitize HTML Question

2006-09-06 Thread John David Anderson (_psychic_)
On Sep 6, 2006, at 7:58 AM, Chris wrote: > is their a way for it to strip the tags completely? > // output: HEY... > > say I have a forum and I want to allow tags ,,, > > How would I get the sanitizer to really strip all tags except for the > allowed ones? I'd just use the PHP function strip_ta

Text Helper error?

2006-09-06 Thread [EMAIL PROTECTED]
excerpt ... UTF8.. When radius = 100 (200) >From source "hello world" I get: "?lo world" radius = 99, 199 I get: "lo worl?" UTF8 - 2 byte, but excerpt work not correct... highlight - Are planning use $phrase as array? not single phrase? Thanks! --~--~-~--~~~---

Sanitize HTML Question

2006-09-06 Thread Chris
Hello, Just curoius the example in the manual shows: $badString = 'HEY...'; echo $mrClean->html($badString); // output: HEY echo $mrClean->html($badString, true); // output: font size=99 color=#FF HEY fontscript...script is their a

Re: Route problem. How to ignore the action name?

2006-09-06 Thread nate
Yup, that should actually be possible with Cake 1.1. Just add something like this to routes.php: $Route->connect("/:controller/wijzig/*", array("action" => "edit")); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: IMPORTANT CakePHP Security Fix

2006-09-06 Thread nate
There are close to a half-dozen methods for controllers (and components) to pass data to the view. In the case of SessionHelper, it provides an interface to the same core object as SessionComponent, which is perfectly legitimate in terms of MVC design. --~--~-~--~~~-

Re: NiftyCube and Cakephp: Not working

2006-09-06 Thread Mika
Another option is to use Jquery and it's round corners plugin: http://jquery.com/ http://jquery.com/plugins/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to ca

Re: NiftyCube and Cakephp: Not working

2006-09-06 Thread mouth
One of possible reasons could be: NiftyCube doesn't require prototype.js, so check 'weight' of example code at http://html.it/articoli/esempi/articoli_pro/nifty2/nifty.js I can't use NiftyCube for my work because of it's license, but I do like it ;-) --~--~-~--~~~---

Re: IMPORTANT CakePHP Security Fix

2006-09-06 Thread Mika
Someguy has a point. If you take out the link to the controller, the helpers will not have access to the controllers and components either. Right? If this is the case then the session helper is breaking that rule itself. --~--~-~--~~~---~--~~ You received this me

Re: NiftyCube and Cakephp: Not working

2006-09-06 Thread Mika
Why not use Rossoft's corner helper. http://rossoft.wordpress.com/2006/06/04/rounded-corners-helper/ It uses Curvy Corners instead of NiftyCube but it works well. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cak

Re: basic website with cake.

2006-09-06 Thread [EMAIL PROTECTED]
MrTufty: Me to. thanks anyway. ;) I have 2 controllers (news, and cases) What should I do if I want to use both news and cases one the same page? Is it correct to create a page (e.g. welcome) in views/pages ? It does not make sense to create a controller for the welcome page as it does not use a

grab data from 4 tables?

2006-09-06 Thread [EMAIL PROTECTED]
hi, i don't know how to do this sql: select u.id,email as userName,sum(adjective_value) as totle,q.question_text from sdq_sdq_adjectives as ad,sdq_sdq_answers as a,sdq_sdq_questions as q,sdq_sdq_users as u where a.adjective_id=ad.id and ad.question_id=q.id and a.user_id=u.id group BY q.id,u.e

Re: OT: svn and new files

2006-09-06 Thread Martin
Thanks guys. I normally use RapidSVN for Mac OS X (similar to Tortoise I guess). Using this GUI I can't add recurcively (not that I am aware of). I'll have to make the treminal command part of my daily routine then :) (I had read parts of the svn book but I fond it to be a very lng and s

Re: OT: svn and new files

2006-09-06 Thread Martin Schapendonk
On 9/6/06, Martin <[EMAIL PROTECTED]> wrote: > There must be a way to tell svn to go through my working copy and add > all new files, right? I just cant find out how to do this. Good reference material on SVN: http://svnbook.red-bean.com/ Quote: "Normally, the command svn add * will skip over an

Re: OT: svn and new files

2006-09-06 Thread Bert Van den Brande
If you work on windows, I can recommend Tortoise SVN. It integrates all svn commands into the windows shell ... Simply choose svn->commit and in the popup window check all files that you want to commit/add to the repository. I'm pretty sure you can do it with some svn command line command and/or

cake-php@googlegroups.com

2006-09-06 Thread AD7six
Hi Justin, I found these after a quick google: http://issues.apache.org/bugzilla/show_bug.cgi?id=32328#c8 http://drupal.org/node/68886 If you find a solution that doesn´t involve patching apache I'm sure it would come in useful for many :). HTH, AD7six --~--~-~--~~~--

Re: Composit forms for composit models

2006-09-06 Thread Stuart
Thanks, Sohei. Bet you can guess what my next question is. Is there a similar hack to get $html->tagErrorMessage('Person/Address/address1') to work? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group

OT: svn and new files

2006-09-06 Thread Martin
This is not strictly a Cake question but I thought I'd ask anyway. I have started using Subversion and there is one aspect of it I find problematic. Cake is fast, and I often add new files all over my filesystem. A new view here, controller there.. a few gifs... all pretty standard for me. To my

Re: Route problem. How to ignore the action name?

2006-09-06 Thread Martin Schapendonk
On 9/6/06, nate <[EMAIL PROTECTED]> wrote: > Right, you need to hard-code a route for each action. I'm actually > working on some Router enhancements that'll make this process a little > easier. Would this include the possibility to provide separate routes for action names irrespective of the co