Re: Best Auth System For This Setup?

2007-04-20 Thread Langdon Stevenson
Hi Sliv dAuth is pretty easy to use. It should just drop right in and work. The ACL part will be the challenge ;-) Regards, Langdon Sliv wrote: > Thanks, Langdon, I'll have a look at dAuth. > > On Apr 20, 6:59 pm, Langdon Stevenson <[EMAIL PROTECTED]> > wrote: >> Hi Sliv >> >>> The issue is

Re: when I create my own layout file ,where to put all the related pics and swfs?

2007-04-20 Thread Samuel DeVore
/swf/theFileIsHere.swf On 4/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > what about swf,if I put it in webroot/swf ,how can I reference the > file? > > On 4月20日, 下午11时38分, gerbenzomp <[EMAIL PROTECTED]> wrote: > > Images are best put in the "img" folder in the webroot, because this > >

Re: when I create my own layout file ,where to put all the related pics and swfs?

2007-04-20 Thread [EMAIL PROTECTED]
what about swf,if I put it in webroot/swf ,how can I reference the file? On 4月20日, 下午11时38分, gerbenzomp <[EMAIL PROTECTED]> wrote: > Images are best put in the "img" folder in the webroot, because this > way you can use Cake's built in html helper: > > $html->image('myimage.jpg'); > > > what is t

RE: Silly HTTPS quesiton...

2007-04-20 Thread Paul Webster
Most definitely, like I said not the best practice solution - and of course all secure submissions etc should of course be from a secure form which will just naturally posted to the current (HTTPS) path without a redirect. -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL

Re: Saving empty fields to the DB.

2007-04-20 Thread Leandro Lucarella
GreyCells, el 20 de abril a las 15:25 me escribiste: > > $this->Person->set('name', null); before saving. 2 comments: 1) The table is really much bigger than a single "name" field (~60 fields). Even when I can do the set()-thing programatically with a foreach over the $this->data, I find i

Re: Best Auth System For This Setup?

2007-04-20 Thread Sliv
Thanks, Langdon, I'll have a look at dAuth. On Apr 20, 6:59 pm, Langdon Stevenson <[EMAIL PROTECTED]> wrote: > Hi Sliv > > > The issue is that permissions will need to go beyond simply base > > controller actions (add,edit,delete,view,etc.) and actually take into > > account elements of the data

Re: submitting Ajax->form with javascript freezes browser

2007-04-20 Thread gerbenzomp
I vaguely remember your approach could cause some issues Try this approach: // your form fields here '/test/controls', 'update'=> 'controls'); echo $ajax->submit('Save', $options); ?> Gerben. On 20 apr, 06:06, "[EMAIL PROTECTED]" <[EMAIL PROTECT

Re: hasMany's order question

2007-04-20 Thread gerbenzomp
What is your current code? On 21 apr, 00:26, matlin <[EMAIL PROTECTED]> wrote: > A short question, does $hasMany honor the the 'order' directive? > > It doesn't seem to be so. To me. I can't get it to work anyway. --~--~-~--~~~---~--~~ You received this message b

Re: Different layouts for each action on the same controller

2007-04-20 Thread Samuel DeVore
function one() { $this->layout = "layout1"; } function two () { $this->layout = 'layout2'; } then in your views/layouts you have 'layout1.thtml' and 'layout2.thtml' (or .ctp if you are risking 1.2 which if you are just getting started with php again and cake DON'T you'll just make life mor

Re: Best Auth System For This Setup?

2007-04-20 Thread Langdon Stevenson
Hi Sliv > The issue is that permissions will need to go beyond simply base > controller actions (add,edit,delete,view,etc.) and actually take into > account elements of the data in question. I use dAuth and CakePHP's ACL to do this sort of thing. I am currently working on a manufacturing man

Re: Routes with any extra parameters do not work.

2007-04-20 Thread summea
Sorry, I found out what the problem was, finally. It turned out that I still had some "requestAction" calls in the "edit" action that were interfering. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" gro

hasMany's order question

2007-04-20 Thread matlin
A short question, does $hasMany honor the the 'order' directive? It doesn't seem to be so. To me. I can't get it to work anyway. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this gro

Different layouts for each action on the same controller

2007-04-20 Thread andyreimer
I've tried searching this group and haven't found anything quite specific enough for me. Admitedly I'm getting back into PHP in general after a break of a few years, so I could be missing the obvious. Question: On page 52 of the manual it states that you can switch between views in your control

Re: Reload page in Cake PHP

2007-04-20 Thread [EMAIL PROTECTED]
This may help: http://groups.google.com/group/cake-php/msg/923dbe0a1ce415b8 On 17 апр, 20:42, NicoE <[EMAIL PROTECTED]> wrote: > Hi everybody. I am using redirect to take the user to the same index > page after deleting a post, but the old post still appears. Does the > redirect do a reload of th

Re: Saving empty fields to the DB.

2007-04-20 Thread GreyCells
$this->Person->set('name', null); before saving. ~GreyCells On Apr 20, 8:25 pm, Leandro Lucarella <[EMAIL PROTECTED]> wrote: > Hi! I'm having a problem when editing data. Let's say I have a persons > table, with id and name columns. I create a new row (id, 'Peter') using a > form, all great ther

Routes with any extra parameters do not work.

2007-04-20 Thread summea
Hi everyone, (Sorry if this is double-posted, I posted it earlier today but I didn't see it show up on the board...) I've been searching for the past couple of days on this group... but I can't find an answer to the problem I've been having. I'm working on a simple blog project. I am aiming to

Saving empty fields to the DB.

2007-04-20 Thread Leandro Lucarella
Hi! I'm having a problem when editing data. Let's say I have a persons table, with id and name columns. I create a new row (id, 'Peter') using a form, all great there. Then I edit the row, erasing the form field for 'name'. My controller's $this->data looks like this: array(1) { ["Person"]=>

Routes with any extra parameters do not work.

2007-04-20 Thread summea
Hi everyone, I've been searching for the past couple of days on this group... but I can't find an answer to the problem I've been having. I'm working on a simple blog project. I am aiming to be able to have an URL like this: http://www.sitename.com/username and have that go to username's blog.

Re: Reload page in Cake PHP

2007-04-20 Thread NOSLOW
Most likely it's IE's caching because it's setting "Check for newer version of stored pages" is not set to "Every time I visit the webpage" on your client's computer. I remember dealing with this issue on a non-Cake site and saw that changing this setting fixed the problem in IE, but of course, y

Re: Global css navigation menu from DB

2007-04-20 Thread Tulio Faria
In this case, I prefer to create a component and use it in the AppController. I have a lot of problems with $uses in AppController, and the only way I found to around this was using component. Best, On 18 abr, 10:22, Andrew McCafferty <[EMAIL PROTECTED]> wrote: > Firstly, the $name of AppContro

Accessing controller function from routes.php

2007-04-20 Thread Defranco
Hi, Is possible to call a specific controller function from Routes.php to retrieve data? I want to do this due I would like to retrieve Database data to use on route configuration. How would I do this? regards /defranco --~--~-~--~~~---~--~~ You received this

Re: Global css navigation menu from DB

2007-04-20 Thread Andrew McCafferty
...Also Make sure you restore cake/app_controller.php back to its original empty state: On 20 Apr, 17:15, Andrew McCafferty <[EMAIL PROTECTED]> wrote: > I've just noticed the path to your app_controller.php file - it should > be placed in your "app" directory. > > Move the file to the correct

Re: Global css navigation menu from DB

2007-04-20 Thread Andrew McCafferty
I've just noticed the path to your app_controller.php file - it should be placed in your "app" directory. Move the file to the correct location and make sure you've made the changes suggested above. Regards, Andrew On 19 Apr, 10:30, double07 <[EMAIL PROTECTED]> wrote: > Hi Andrew, > > I tried w

edit multiple list

2007-04-20 Thread christianandradet
hi, this is what i am doing, in the add function $funareas = $this->Funcionario->Funtoare->Funarea->generateList(); in the add view input('funare_id', array('options' => $funareas,'multiple'=>'true'));?> then in the add function of the controller after saved $fun_id = $this->Funcionario->getLastIn

Re: when I create my own layout file ,where to put all the related pics and swfs?

2007-04-20 Thread gerbenzomp
Images are best put in the "img" folder in the webroot, because this way you can use Cake's built in html helper: $html->image('myimage.jpg'); > what is the webroot dir for? when and what to put into this dir? The webroot is meant for all external files your layout uses, so images, css, javascr

Re: Possible to put components and elements in plugin?

2007-04-20 Thread gerbenzomp
Thanks for the reply! Your guess was right: I want to expand your mini- contollers approach, by giving each widget a "settings" page, which is loaded through ajax after a user clicks the "edit" button on a widget. This means I'll have to create controller and a view for the widget (edit.thml for e

when I create my own layout file ,where to put all the related pics and swfs?

2007-04-20 Thread [EMAIL PROTECTED]
when I create my own layout file ,where to put all the related pics and swfs?my layout file is in cake\app\views\layouts what is the webroot dir for? when and what to put into this dir? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Error while uploading files

2007-04-20 Thread Samuel DeVore
I would contact your administrators. On 4/20/07, Davide <[EMAIL PROTECTED]> wrote: > > Samuel DeVore wrote: > > > > http://us2.php.net/manual/en/features.file-upload.errors.php > > By the link you provided it's noticed that the error is raised because > there's no set for the ini variable "upload

RE: test suite : how to group all test ?

2007-04-20 Thread Mariano Iglesias
Like gwoo once said: it'll be very hard to find things we haven't thought of befote ;) -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE

Validation callback problem

2007-04-20 Thread quincy
Afternoon all, I'm trying to do some validation in my controller, and if it fails, i call $this->XYZ->invalidate("field") BEFORE i then attempt to save the posted data. Now it seems to me like it resets the validationErrors in the model when it calls save, so my invalidate() call does no good wh

Re: mod_rewrite and application/xhtml+xml

2007-04-20 Thread bej78729
Thanks for the input. Exactly what I needed. One hiccup (similarly mentioned in your blog post), is that you have to turn define('DEBUG', 1); to 0 or 1. Level 2 and 3 do not validate. I suppose you could hack the debugging code in cakephp to validate. Thanks, bej I based my previous not

Re: Plugins not working correctly, several errors on basic.php and dispatcher.php

2007-04-20 Thread [EMAIL PROTECTED]
also if i associate my app to a plugin's model (for example through a "hasOne") i get undefined class on model_php5.php, looking at the code, of course it won't work as it calls loadModule and in that function there's no place to call the loadPluginModule, ive seen on the track that someone has ad

Re: $number->precission not working in controller

2007-04-20 Thread Joshua McFarren
> old skool php > $var 2 = number_format($var, 2); Thanks Jon this was the perfect solution! --~--~-~--~~~---~--~~ 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@googlegro

Re: Plugins not working correctly, several errors on basic.php and dispatcher.php

2007-04-20 Thread AD7six
On Apr 20, 2:49 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Apr 20, 2:27 pm, AD7six <[EMAIL PROTECTED]> wrote: > > > > > On 20 abr, 14:10, "[EMAIL PROTECTED]" > > > <[EMAIL PROTECTED]> wrote: > > > Hi all, im doing an application which is based on several plugins, but > > > the plugi

Re: $number->precission not working in controller

2007-04-20 Thread Jon Bennett
> Still... does anyone have a suggestion for a way to make sure totaldue > is rendered in two decimal places? old skool php $var 2 = number_format($var, 2); http://uk3.php.net/manual/en/function.number-format.php jb -- jon bennett t: +44 (0) 1225 341 039 w: http://www.jben.net/ iChat (AIM

RE: test suite and database config

2007-04-20 Thread Mariano Iglesias
Update to latest SVN. You should not need to set useDbConfig yourself. -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http

Re: test suite : how to group all test ?

2007-04-20 Thread [EMAIL PROTECTED]
So I found the solution : I was confused with this number of directory added to my project. In /app/tests/groups/ create a file like in /cake/tests/groups/ take no_database.group.php as example And that's my try.group.php : So you can add all baked tests cases. In fact cake's tests cases

Re: test suite : how to group all test ?

2007-04-20 Thread [EMAIL PROTECTED]
What I initially wanted is to run "All tests" in one shot Thanks mariano On 20 avr, 16:10, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > So I found the solution : I was confused with this number of directory > added to my project. > > In /app/tests/groups/ create a file like in /cake/tests/gr

RE: test suite : how to group all test ?

2007-04-20 Thread Mariano Iglesias
What is it that you are looking for? What do you mean group tests? -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://w

Re: multi-page forms

2007-04-20 Thread Dr. Tarique Sani
On 4/20/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > > See Tarique? Sarcasm gets to you as well from time to time, I'm not the only > one ;) > Sarcasm? You and google just blew my chance to make a million... T -- = PHP for E-Biz:

Re: test suite and database config

2007-04-20 Thread [EMAIL PROTECTED]
Additional informations : the core test use the $test connexion but not the app test On 20 avr, 15:44, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > the official test suite does not seam to use the $test connexion as it > is write in the bakery athttp://bakery.cakephp.org/articles/view/324 > >

test suite : how to group all test ?

2007-04-20 Thread [EMAIL PROTECTED]
I'm pretty new to test, if somebody could help me. thx. --~--~-~--~~~---~--~~ 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 grou

test suite and database config

2007-04-20 Thread [EMAIL PROTECTED]
the official test suite does not seam to use the $test connexion as it is write in the bakery at http://bakery.cakephp.org/articles/view/324 I add $this->object->useDbConfig = 'test'; to my test metod, but the initial desc sql call are done with the $default connexion. --~--~-~--~~-

Re: Plugins not working correctly, several errors on basic.php and dispatcher.php

2007-04-20 Thread [EMAIL PROTECTED]
On Apr 20, 2:27 pm, AD7six <[EMAIL PROTECTED]> wrote: > On 20 abr, 14:10, "[EMAIL PROTECTED]" > > > > <[EMAIL PROTECTED]> wrote: > > Hi all, im doing an application which is based on several plugins, but > > the plugins system doesnt work correctly. I have added a route like > > this: > > > $Rou

Best Auth System For This Setup?

2007-04-20 Thread Sliv
Hello, This is my first post - I'd like to say thanks to the Developers and the Community for this great framework, I really hope to learn a lot from you folks and possibly someday be able to contribute something of value back to you all. I'm currently developing a customized application which w

RE: multi-page forms

2007-04-20 Thread Mariano Iglesias
See Tarique? Sarcasm gets to you as well from time to time, I'm not the only one ;) -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON

Re: Cake app not running, index.php offered for download

2007-04-20 Thread byBartus
I was having similar problem, so i defined ('DEBUG', 2) in core.php in the live app and magically it worked, then set again DEBUG to 0 and still working. Why? I do not still understand, but did the trick for me. Ps. My app is in a subdomain, which needs that the Document Root to be app/webroot.

Re: allowEmpty in validate

2007-04-20 Thread R. Rajesh Jeba Anbiah
On Apr 19, 2:05 am, nate <[EMAIL PROTECTED]> wrote: > It technically means "allowNotPresent" as in "not present in the array > of data to be saved", but I felt that was too cumbersome. (English is not my first language) I'm scratching my head--isn't allowEmpty alias for optional? or Do we hav

Plugins not working correctly, several errors on basic.php and dispatcher.php

2007-04-20 Thread [EMAIL PROTECTED]
Hi all, im doing an application which is based on several plugins, but the plugins system doesnt work correctly. I have added a route like this: $Route->connect('/myplugin/:controller/:action', array('plugin' => 'myplugin', 'controller' => 'tests', 'action' => 'index')); (i know the controller an

Re: Plugins not working correctly, several errors on basic.php and dispatcher.php

2007-04-20 Thread AD7six
On 20 abr, 14:10, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi all, im doing an application which is based on several plugins, but > the plugins system doesnt work correctly. I have added a route like > this: > > $Route->connect('/myplugin/:controller/:action', array('plugin' => > 'myplug

Re: multi-page forms

2007-04-20 Thread Dr. Tarique Sani
On 4/20/07, Aannd duhan <[EMAIL PROTECTED]> wrote: > but its not working please explain a step by step implementation for > that. > Means where to put $ways.which will be the starting function that i > have to pass in url. > Its urgent plz Please transfer $1000,000 to my Swiss Bank accoun

Re: Generating .js files in Cake

2007-04-20 Thread AD7six
On 20 abr, 12:39, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm trying to generate some Javascript as a js file to ensure > clientside caching of a bunch of client side preferences. I've > inserted a route as follows: > > $Route->connect('/prefs.js', array('controller' => 'preferences',

Re: mod_rewrite and application/xhtml+xml

2007-04-20 Thread AD7six
On 20 abr, 10:27, bej78729 <[EMAIL PROTECTED]> wrote: > I am trying to implement a mixed xhtml and svg document. > > The layout starts with: > > "; ?> > > http://www.w3.org/1999/xhtml"; > xmlns:svg="http://www.w3.org/2000/svg";> > > I can get a static page like this to render properly us

Generating .js files in Cake

2007-04-20 Thread [EMAIL PROTECTED]
I'm trying to generate some Javascript as a js file to ensure clientside caching of a bunch of client side preferences. I've inserted a route as follows: $Route->connect('/prefs.js', array('controller' => 'preferences', 'action' => 'prefsJs')); However, this does not connect to the controller s

Persistent Model Inheritance

2007-04-20 Thread Cam
Apologies for bringing up an old topic- http://groups.google.com/group/cake-php/browse_thread/thread/777d147ce08d5751/0dd9ad7ef9a00638 http://groups.google.com/group/cake-php/browse_thread/thread/bfa7c40de0744b24/aa981a4bb17a3c1b?lnk=gst&q=inheritance&rnum=10#aa981a4bb17a3c1b I have recently sta

Re: Silly HTTPS quesiton...

2007-04-20 Thread Martin Schapendonk
2007/4/20, Paul Webster <[EMAIL PROTECTED]>: > Like I said, this may not be the "best practice" way to do it, but to me > it did it good enough given the situation I was addressing. Criticism > and feedback most welcome. With that solution, you might experience browser security warnings when post

mod_rewrite and application/xhtml+xml

2007-04-20 Thread bej78729
I am trying to implement a mixed xhtml and svg document. The layout starts with: "; ?> http://www.w3.org/1999/xhtml"; xmlns:svg="http://www.w3.org/2000/svg";> I can get a static page like this to render properly using a .xhtml file ending. Apache sends the document as Content-Type: app

Re: multi-page forms

2007-04-20 Thread Aannd duhan
want to make forms for the way: register->leagueregister->payment- >recap How to use form wizard for this way. I have put form wizard in component I have loaded it into my controller i.e users_controller I have action and validate action and .thtml related to all steps. I have put $ways array int

Re: Error while uploading files

2007-04-20 Thread Davide
Samuel DeVore wrote: > > http://us2.php.net/manual/en/features.file-upload.errors.php By the link you provided it's noticed that the error is raised because there's no set for the ini variable "upload_tmp_dir". I've tried something like the following (I hoped) but didn't work, and I can even und

Re: migration of website

2007-04-20 Thread Marcus T. Jaschen
laptop wrote: > 2. What is the best way to integrate PHP with the likes of vbulletin > and word press?? I've written a VbauthComponent for this. It simply checks the vB Cookie, tests its validity (against the vB user table) and sets some session and view variables with vB username, email and so