Re: Pure Flex

2007-03-04 Thread [EMAIL PROTECTED]
any major differences between the .4 and .5 gateway? can i easily upgrade? thnx On Mar 4, 4:45 am, "gwoo" <[EMAIL PROTECTED]> wrote: > actually, this is the most recent article:http://cakeamfphp.rd11.org/ > ;) --~--~-~--~~~---~--~~ You received this message bec

Re: OthAuth session disappearing

2007-03-04 Thread Dusty
Okay, so I am not a server expert but all of my problems stem from a incorrect setting in the php.ini file. Here is a reference to a thread that was helped me solve it. http://groups.google.com/group/cake-php/browse_thread/thread/ada15abbf3507645/6c7980ae109fb9e8?lnk=gst&q=session&rnum=3#6c7980ae

Re: INSERT into databases

2007-03-04 Thread Dr. Tarique Sani
On 3/5/07, Chris Hartjes <[EMAIL PROTECTED]> wrote: > Hey Adrian, thanks for the feedback. Was I harsh? Absolutely. My > point is to make people understand that this help is a two-way street. I mostly agree with Chris's approach and his playing the martyr(!?) to the cause - It is needed to kee

Re: Render action as string within same controller

2007-03-04 Thread Grant Cox
You should be able to execute the action, then wrap a render() call in an output buffer, something like: ob_start(); $this->your_action(); $this->render('your_action', 'layout'); $rendered_view = ob_get_clean(); of course, if your action explicitly calls render, don't put it in there again :)

Re: INSERT into databases

2007-03-04 Thread Chris Hartjes
On 3/4/07, Adrian Maier <[EMAIL PROTECTED]> wrote: > > > It is true that Mani's question was probably a frequent one, and that the > answer can be found in the "Models" chapter of the CakePHP manual. > > But, sorry Chrys , your initial reaction was too harsh. I read this > thread again > and I am

Render action as string within same controller

2007-03-04 Thread Mikee Freedom
afternoon fellas, is it possible to render an action to a string from within the same controller without using requestAction? Similar in idea to this post : http://groups.google.com/group/cake-php/browse_thread/thread/a48f7f04d2ba214/161267ef37edee81?lnk=gst&q=render&rnum=10#161267ef37edee81 I

Re: Need help with less trivial associations

2007-03-04 Thread Grant Cox
Well, if you really need the groups_units association then you will have two associations to manage, and it's probably going to be a pain to ensure that these are up to date. You can have callbacks for afterSave and afterDelete (or is there only beforeDelete?) on the various models to insert/remo

Re: basic.php:line 867 - cache - Warning: file_put_contents

2007-03-04 Thread jyrgen
Thank u guys, commandline unzip unpacked the empty folders. (i guess its the same for gunzip and stuff) cheers, jyrgen ps: who is lorax ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post

Re: basic.php:line 867 - cache - Warning: file_put_contents

2007-03-04 Thread Samuel DeVore
couple of comments, you do need to make all the folders that should be in /app/tmp like https://trac.cakephp.org/browser/branches/1.1.x.x/app/tmp to see all the folders you need. After you make them make sure that the perms are still set right. Related but useful to remember is that many, man

Re: basic.php:line 867 - cache - Warning: file_put_contents

2007-03-04 Thread Larry E. Masters aka PhpNut
Your ftp client or tool you used to unzip did not create the empty directories in tmp like it should. Check the settings of your client and make sure that it will create the empty directories, then chmod tmp/ and all sub directories -- /** * @author Larry E. Masters * @var string $userName * @par

Re: basic.php:line 867 - cache - Warning: file_put_contents

2007-03-04 Thread jyrgen
maybe i should mention that the code is coming from php4 (dev) to php5 (prod)... ? --~--~-~--~~~---~--~~ 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: basic.php:line 867 - cache - Warning: file_put_contents

2007-03-04 Thread jyrgen
no it's ok :-) hello langdon, one of six (one for each model) PHP errors: Warning: file_put_contents(/tos/htdocs/89345_JFDGHJD/www/app/tmp/ cache/models/default_authors) [function.file-put-contents]: failed to open stream: No such file or directory in /tos/htdocs/89345_JFDGHJD/ www/cake/basics.

Re: Using Session helper in a custom helper

2007-03-04 Thread Langdon Stevenson
Thanks AD, fooling mistake on my part. Langdon --~--~-~--~~~---~--~~ 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 em

Re: basic.php:line 867 - cache - Warning: file_put_contents

2007-03-04 Thread AD7six
On Mar 4, 11:47 pm, "jyrgen" <[EMAIL PROTECTED]> wrote: > hello langdon, > > one of six (one for each model) PHP errors: > > Warning: file_put_contents(/is/htdocs/wp1064875_RPHN67AJ8J/www/app/tmp/ > cache/models/default_authors) [function.file-put-contents]: failed to > open stream: No such file

Re: basic.php:line 867 - cache - Warning: file_put_contents

2007-03-04 Thread jyrgen
hello langdon, one of six (one for each model) PHP errors: Warning: file_put_contents(/is/htdocs/wp1064875_RPHN67AJ8J/www/app/tmp/ cache/models/default_authors) [function.file-put-contents]: failed to open stream: No such file or directory in /is/htdocs/ wp1064875_RPHN67AJ8J/www/cake/basics.php

Re: Using Session helper in a custom helper

2007-03-04 Thread AD7six
On Mar 4, 11:38 pm, Langdon Stevenson <[EMAIL PROTECTED]> wrote: > I am making a custom helper that needs access to session data and to the > Html helper. Following the manual's instructions I am including > >var $helpers > > in my new helper like this: > >class SecureHtmlHelper extends

Using Session helper in a custom helper

2007-03-04 Thread Langdon Stevenson
I am making a custom helper that needs access to session data and to the Html helper. Following the manual's instructions I am including var $helpers in my new helper like this: class SecureHtmlHelper extends Helper { var $helpers = array('Html', 'Session'); function lin

Re: cakephp on godaddy

2007-03-04 Thread Michael Rubanov
You right in both cases :) After my support experiences and all rewrite problems I will not use godaddy in next projects. Your suggestion about RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L] is right !!! It's working , thank you very much !!! On 3/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Re: Inflections problem?

2007-03-04 Thread Adrian Maier
On 3/2/07, Petry <[EMAIL PROTECTED]> wrote: > > Hi people, > > I'm a brazilian developer an I have a problem with singular and plural > rules: > > The word "Noticia" the plural form is "Noticias" (words ending by > "ia", the plural form is "ias") > The word "Album" the plural form is "Albuns" (wor

Change layout for othAuth

2007-03-04 Thread bingo
Hi I am creating a bookmarklet which points to a web form and I want to keep it simple. However, users needs to login before the form can be displayed. Hence, I would like to set layout for othAuth to ajax. I know I can do it but not sure how I am not sure at what point of time ajax makes sur

Re: basic.php:line 867 - cache - Warning: file_put_contents

2007-03-04 Thread Langdon Stevenson
Hi jyrgen Cake needs these folders to write cache files to. Are you sure that the web server on your production machine can write to that directory? Perhaps have a look in the web server's logs and see if that can give you some more information about the problem the server is having. It sou

basic.php:line 867 - cache - Warning: file_put_contents

2007-03-04 Thread jyrgen
Since i deployed the app from my local machine to a real webserver, cake expects an /app/tmp folder (as well as some subfolders for models). i created /app/tmp with chmod 777, but no improvement. Whats about this caching behaviour, is it normal for a new install ? (it never occurred on my dev ma

Re: cakephp on godaddy

2007-03-04 Thread [EMAIL PROTECTED]
I know this isn't much help... but my suggestion is to use not use godaddy for hosting! I still have most of my domains registered though godaddy (too much trouble to move them all), but their hosting is very restrictive. I have been using www.1and1.com (linux business account) for nearly 2 year

Re: Please help me understand URL and Routes in Cake

2007-03-04 Thread bernardo
For sort and filter you can certainly use query string parameters. Have you tried that? I don't think you will any problem there. For the problem of passing multiple units you don't need to use a special separator, cakephp will pass anything matched by * as additional arguments to your controller

Re: INSERT into databases

2007-03-04 Thread Adrian Maier
On 3/2/07, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > On 2/27/07, Felix St. Bernard <[EMAIL PROTECTED]> wrote: > > That was enough said Don't you think? I understand how queries like > > his may "upset" you but keep your frustrations to yourself. You could > > have also just made reference t

Re: [C] cakephp on godaddy

2007-03-04 Thread TekJansen
Michael Rubanov wrote: > > Hm...no that does not help. > Did you installed your app on subdomain ? > No, I just put it in a subdirectory for a quick test. It is certainly not a "production install". Some other ideas (from godaddy's php faqs): 1. "For security reasons, we [godaddy] run PHP as

Re: [C] cakephp on godaddy

2007-03-04 Thread Michael Rubanov
Hm...no that does not help. Did you installed your app on subdomain ? On 3/4/07, TekJansen <[EMAIL PROTECTED]> wrote: > > > > > Michael Rubanov wrote: > > > > When mod_rewrite future is on , I am getting 500 errors on all > > controllers... > > > > Do these errors go away if you manually append a

Re: [C] cakephp on godaddy

2007-03-04 Thread TekJansen
Michael Rubanov wrote: > > When mod_rewrite future is on , I am getting 500 errors on all > controllers... > Do these errors go away if you manually append a trailing slash to the url? I have just started with cakephp and the first thing I did was throw the completed tutorial up onto my goda

Re: cakephp on godaddy

2007-03-04 Thread Sam Sherlock
My Idea was: 1) To see if cakePHP can work using internal rewrite - I think you need to delete the .htaccess Now if this works, you may have to settle for using cakePHP without mod rewrite - but at least its working A month or so ago I was having troubles with 1and1 and mod_rewrite - not exactly

Re: cakephp on godaddy

2007-03-04 Thread Michael Rubanov
Hey Sam , 1. To enable internal rewrite I uncommented: define ('BASE_URL', env('SCRIPT_NAME')); In godaddy hosting env('SCRIPT_NAME') equals to 0... Do I have to define it manually ? What url do I put there ? The sub domain url ? 2. After internal rewrite is on , I getting dispatcher errors

Re: Please help me understand URL and Routes in Cake

2007-03-04 Thread barduck
No one? Surely someone can offer some additional insights on this. Thanks. On Mar 1, 10:44 am, "barduck" wrote: > Thanks for the reply. > > I think I have better understanding of the Route functionality now. > > I am still not sure I understand the full potential of regular > expressions in

Re: Need help with less trivial associations

2007-03-04 Thread barduck
Thanks for the response. The groups_units association is needed because there are units that don't belong to any department but only to groups. I assume the example you gave is for cake 1.2 ? I am using 1.1 and can't find that Set::extract in the API. I will try and figure out how to do this in

Re: problem with $html->lilnk

2007-03-04 Thread gwoo
if you are using 1.2 alpha keep in mind that this may not be the best place to submit problems. As you already see a day or two can make a difference with this version. It would be great if you could make it to IRC when you find little issues like this. I would rather see the list be a place for q

Re: ajax editor and view

2007-03-04 Thread Samuel DeVore
On 3/4/07, phirschybar <[EMAIL PROTECTED]> wrote: > > gwoo's method is the way to go. I wouldn't recommend editing the > webroot/index.php The only reason, I don't mind editing my index.php file is because I only do it on my dev machine ;) in production I have debug set to 0 so it's not an issue

Re: cakephp on godaddy

2007-03-04 Thread Sam Sherlock
What happens when mod rewrite is off and your using internal rewrite? On 04/03/07, Michael Rubanov <[EMAIL PROTECTED]> wrote: > > Actually the "missing" component is in place . > > I found that problem is connected to godaddy's freaky mod_rewrite/htacces > setup. > When I turning of mod_rewrite su

Re: dateTimeSelect defaults to current date instead of "00-00-0000"

2007-03-04 Thread jyrgen
i placed if ($selected=="--") $selected = "-00-00"; into function dateTimeOptionTag of /cake/libs/view/helpers/html.php to fix it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post

Re: cakephp on godaddy

2007-03-04 Thread Michael Rubanov
Actually the "missing" component is in place . I found that problem is connected to godaddy's freaky mod_rewrite/htacces setup. When I turning of mod_rewrite support i core.php I got a app working but dispatcher showing an errors. When mod_rewrite future is on , I am getting 500 errors on all con

Re: dateTimeSelect defaults to current date instead of "00-00-0000"

2007-03-04 Thread jyrgen
i inserted if ($selected=="--") $selected = "-00-00"; to 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 unsubscrib

dateTimeSelect defaults to current date instead of "00-00-0000"

2007-03-04 Thread jyrgen
when i choose no date and leave the select fields blank, the helper defaults to the current date. how can i avoid this ? thank you jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post

Re: problem with $html->lilnk

2007-03-04 Thread Ámon Tamás
Ámon Tamás írta: > Hello, > > I used bake.php to making views, and I have a lot of > link('View', array('action'=>'view', > $category['Category']['id'])); ?> > line in my index.ctp > But when I try to use in the browser I get the following link (for this > for example) > > View > > this is a

Re: Lightbox + Cake

2007-03-04 Thread Sam Sherlock
from Lokesh Huddled together. {scriptblock} // vars with paths here {/scriptblock} {scrriptsrc}source files for llightbox{/scrriptsrc} On 04/03/07, lukemack <[EMAIL PROTECTED]> wrote: > > > Hi - I wouls be interested to know which lightbox script you are > using? > > On Mar 4, 12:42 am, "Sam Sh

Re: placing methods in appcontroller so as to reduce the code redundancy

2007-03-04 Thread jitka
If You need some functionality in ALL controllers, then put this code to AppController - copy file cake/app_controller.php to app directory and put those methods to class AppController inside of file app/ app_controller.php BUT: if not every controller of Your application is supposed to have this

Re: ajax editor and view

2007-03-04 Thread phirschybar
gwoo's method is the way to go. I wouldn't recommend editing the webroot/index.php On Mar 4, 4:23 am, "gwoo" <[EMAIL PROTECTED]> wrote: > this should work too. In AppController or any other Controller. > Remember to include RequestHandler in your components array. > > functon beforeRender() { >

problem with $html->lilnk

2007-03-04 Thread Ámon Tamás
Hello, I used bake.php to making views, and I have a lot of link('View', array('action'=>'view', $category['Category']['id'])); ?> line in my index.ctp But when I try to use in the browser I get the following link (for this for example) View this is a wrong linkbecause it is started with 2 /

Re: Lightbox + Cake

2007-03-04 Thread lukemack
Hi - I wouls be interested to know which lightbox script you are using? On Mar 4, 12:42 am, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > > > I have managed to get lightbox working in cake but had to set these > > lines in > > > a scriptblock in a layout .thtml /.ctp > > yep . In a scriptblock in

Re: placing methods in appcontroller so as to reduce the code redundancy

2007-03-04 Thread clemos
hi > What I want to do is to reduce the code. i.e I want a code to be > placed somewhere and that will be used by all the controllers. How can > I do that? Will it be helpful by placing the code in appcontroller ? > If so, tell me how can I do it... yes, this is exactly what the cake/app_control

placing methods in appcontroller so as to reduce the code redundancy

2007-03-04 Thread rockanj
I have many controllers those have similar code. The difference in the codes among them is the name, fieldnames in the DB etc. What I've been doing right now is, I have created one controller. Then i create the next controller, copy and paste the code from the first controller and find and replac

Re: cakephp on godaddy

2007-03-04 Thread gwoo
what is the missing file? Sounds less to do with godaddy and the subdomain, and more to do with the code in your controller. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, s

Re: Pure Flex

2007-03-04 Thread gwoo
actually, this is the most recent article: http://cakeamfphp.rd11.org/ ;) --~--~-~--~~~---~--~~ 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 unsubscri

Re: Change conditions of an association without rebinding?

2007-03-04 Thread gwoo
you should not need to unbind. Binding the model with new options will reset the association. $this->Post- >bindModel(array('hasMany'=>array('Comment'=>array('conditions'=>"Comment.published = '1'"; the second snippet on this page might be useful if you find yourself changing the options oft

Re: First bite?I am trying

2007-03-04 Thread gwoo
If it is a Cake 404 error message then, make sure DEBUG > 0. look in / app/config/core.php If it is an apache 404 error message, then your server is not configured. http://manual.cakephp.org/chapters/installing has more info. Scaffolding does not create any files. But it does provide an inteface

Re: ajax editor and view

2007-03-04 Thread gwoo
this should work too. In AppController or any other Controller. Remember to include RequestHandler in your components array. functon beforeRender() { if($this->RequestHandler->isAjax() || $this->RequestHandler- >isXml()) { Configure::write('debug', 0); } } --~--~-~--~---

Re: First bite?I am trying

2007-03-04 Thread stefuNz
i think you'll need PHP 4 or PHP 5 .. PHP3 doesn't seem to work... stefan On 4 Mrz., 05:36, "SIXS" <[EMAIL PROTECTED]> wrote: > I have WAMP that includes Apache2.2.4, PHP 3.2.1, and mysql 5.0.27. and > cake_1.1.13.4450. I downloaded the zip file and extracted to the C root in > win XP Pro. > Isn