Roles, groups and users with Cake ACL

2006-06-26 Thread johnwik
Hi everyone! I have studied the manual about Cake's implamentation of ACL but I can't figure out how to use ACL with an authentication and access control system that uses roles together with groups and users. How do I create roles when setting up the ARO's? My system needs to be able to create

model controller plur problem...

2006-06-26 Thread [EMAIL PROTECTED]
I have controller StovesController.php I have model Stove.php Both generated by Baker (before this day - I have not problem with him, except JS \' in wrong place delete So, no change in core, no change in routes... But, when I ask in browser: http://site.com/stoves I got: issing Model

Re: Cake setup on OS X - no CSS/img t

2006-06-26 Thread believ3r
I've modified my httpd conf to read: DocumentRoot /Users/adrien/Sites Files there are accessible to me via http://127.0.0.1/filename As a result, I store all my sites in my Sites folder, and coeus is one folder directly within Sites - so accessible 'automatically' via http://127.0.0.1/coeus/

Re: Add script to head dynamically in controller or view

2006-06-26 Thread [EMAIL PROTECTED]
Yes, four out of five housewives agree, HeadHelper makes for flufflier, tastier cakes! Ask your grocer for HeadHelper, the choice of all discriminating bakers! [EMAIL PROTECTED] wrote: Wow - HeadHelper just made my site run much faster (no unnecessary js loads!) and saved me a ton of work. It

Re: How to update multiple divs with one ajax call

2006-06-26 Thread stefano
Ok, obviously is something related to my Firefox and it's extensions... I'll keep you informed on my investigation... Stefano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group,

Re: Cake setup on OS X - no CSS/img t

2006-06-26 Thread Jon Bennett
As a result, I store all my sites in my Sites folder, and coeus is one folder directly within Sites - so accessible 'automatically' via http://127.0.0.1/coeus/ So I don't *think* its an alias!? I'd recommend setting up virtual hosts on mac os x for development, this way you can mimic a live

Re: Ajax Back button

2006-06-26 Thread RosSoft
I haven't worked on it yet :s --~--~-~--~~~---~--~~ 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

beforeFilter bug?

2006-06-26 Thread carlosrg
Hi, I'm trying to add a little user authentification to my product controller. My code is: class ProductsController extends AppController { var $protectedActions = array('add', 'edit', 'delete'); function beforeFilter(){ if (in_array($this-action,

hasMany + save()

2006-06-26 Thread Repsah
I'm sure I've seen it asked before but I can't find the correct thread... anywayAssuming I have a model Userwhich hasMany AttributeIs there a way to call a single $this-User-save($this-data) to save values both in the users table and in the attributes table. I give it as a fact I'm building a

Re: model controller plur problem...

2006-06-26 Thread [EMAIL PROTECTED]
I am shure. stoves, stove... No one word stofe... --~--~-~--~~~---~--~~ 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

Re: beforeFilter bug?

2006-06-26 Thread AD7six
Hi Carlosrg, I would suggest putting else { pr ($this-action); die; } In your before filter and calling the delete method, seeing what it says and go from there. Cheers, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: model controller plur problem...

2006-06-26 Thread AD7six
Hi Vladiq, I don´t know why it would be different between bake and running your app, but in your /app/config/inflections.php file you can define $irregularPlural = array('stove' = 'stoves'); and in this way this plural will be handled correctly. Cheers, AD7six PS. Who is cakeshop?

Rails-like testing methods in the TestSuite

2006-06-26 Thread Mark Somerville
Hi everyone. I've added a new branch to the testsuite SVN (https://cakeforge.org/plugins/scmsvn/viewcvs.php/branches/?root=testsuite) to create a more Rails-like approach to testing in CakePHP. There will be little documentation until it is more solid and stable, but the README.txt file in the

Re: Rails-like testing methods in the TestSuite

2006-06-26 Thread nate
I like everything except the YAML. --~--~-~--~~~---~--~~ 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

Re: beforeFilter bug?

2006-06-26 Thread AD7six
Hi Carlosrg, Your post indicates that the checkSession method is run for a delete call. What does checkSession do? *If it does not contain a die statement your code will continue to run. *If checkSession returns a value, it is not passed to beforeFilter *If beforeFilter does not return False,

Re: Rails-like testing methods in the TestSuite

2006-06-26 Thread Mark Somerville
nate wrote: I like everything except the YAML. Thanks for the feedback, Nate. Do you have an alternative to YAML in mind? Mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

Re: Rails-like testing methods in the TestSuite

2006-06-26 Thread nate
Thus far we've tended to favor pure-PHP configuration, or INI-based formats where better suited. See paths.php and tags.ini.php in cake/config/ to get an idea. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake

Re: Roles, groups and users with Cake ACL

2006-06-26 Thread sicapitan
I used othAuth as it is readable both in code and in db tables. I had a little bit of trouble setting up, but thats because I'm a noob. Othy (CrazyLegs) has a nother version coming but it has not been tested yet, still, you can grab it here:

Re: Cake setup on OS X - no CSS/img t

2006-06-26 Thread John David Anderson (_psychic_)
On Jun 26, 2006, at 1:54 AM, Jon Bennett wrote: As a result, I store all my sites in my Sites folder, and coeus is one folder directly within Sites - so accessible 'automatically' via http://127.0.0.1/coeus/ So I don't *think* its an alias!? I'd recommend setting up virtual hosts on

Re: How to update multiple divs with one ajax call

2006-06-26 Thread sicapitan
i know i can update multiple divs with one call, but can I specify their content in the call as well? like ? echo $ajax-link('User Control', array('/users/admin','/company/company_menu/'), array('update' = array('main_content','main_menu'))); ? would be great but isn't the case is there

Re: Ajax Back button

2006-06-26 Thread sicapitan
oh ok i might since im in the area ive seen a few solutions, it'll have to be in a helper i guess --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: File uploads, image uploads

2006-06-26 Thread clemos
hi jon and all what is on line 219 of your /myserver/app/controllers/businesses_controller.php ? for file upload, I actually use this component which does perfectly the job : http://cakeforge.org/snippet/detail.php?type=snippetid=36 I've written my own File model, FilesController and stuff

Re: Roles, groups and users with Cake ACL

2006-06-26 Thread John Zimmerman [gmail]
On the road map for CakePHP version 1.2 an authentication class is listed.I am not sure what the details are for this class, but it might be helpful in kind of creating a cake standard for this type of thing. On 6/26/06, sicapitan [EMAIL PROTECTED] wrote: I used othAuth as it is readable both in

Re: Creating a CakePHP Content Management System

2006-06-26 Thread John David Anderson (_psychic_)
On Jun 26, 2006, at 1:20 PM, BlenderStyle wrote: Okay, so I want to create a basic CakePHP CMS. All I need is a table with pages and CRUB operations. I tried customizing the PagesController (pages_controller.php) but I had very little luck. It seems PagesController works a lot

Re: Creating a CakePHP Content Management System

2006-06-26 Thread John Zimmerman [gmail]
I would go with creating the seperate docs controller. That way if you did want to use a static page for something you can still make use of the pages controller.On 6/26/06, BlenderStyle [EMAIL PROTECTED] wrote: Okay, so I want to create a basic CakePHP CMS. All I need is a tablewith pages and

Re: Creating a CakePHP Content Management System

2006-06-26 Thread BlenderStyle
I originally tried copying pages_controller.php to app/controllers but I had very little luck with this. Check out my post: http://groups.google.com/group/cake-php/browse_thread/thread/ae5753812a770b90/# --~--~-~--~~~---~--~~ You received this message because

Re: View cache

2006-06-26 Thread AD7six
AD7six wrote: Hi all, if you have define ('CACHE_CHECK', true); // in app/config/core.php cache in your list of helpers // in your controller var $cacheAction = true; //in your controller Cake will generate cache files for your views. However (as I understand it ) cacheAction is the

Re: Cake setup on OS X - no CSS/img t

2006-06-26 Thread gwoo
I have to ask if you restarted apache? You have this section but add the rewrite logs to see if anything is happening IfModule mod_rewrite.c RewriteEngine On RewriteLog /var/log/httpd/rewrite.log RewriteLogLevel 3 RewriteCond %{REQUEST_METHOD} ^TRACE RewriteRule .* -

Re: Cake setup on OS X - no CSS/img t

2006-06-26 Thread Adrien Motte
I had restarted apache.I replaced the IfModule part of my httpd.conf with yours, and tried to restart Apache (sudo apachectl graceful)I get this error:Syntax error on line 1091 of /etc/httpd/httpd.conf: IfModule takes one argument, Container for directives based on existance of specified

schema support for postgresql 8.1

2006-06-26 Thread arielsantana
Hello to all. I have an application that uses postgresql-8.1, but the tables are in different schemes. The tables that in the scheme public, work perfectly, but the other does not work. From a console of postgresql I can accede with the following annotation select * from

Re: Roles, groups and users with Cake ACL

2006-06-26 Thread johnwik
Sounds great! Will this new authentication class have some kind of layer where you could plugin different authentication services, ie http://www.ja-sig.org/products/cas/ ? The road map mentions LDAP, which in my opinion would be a very good feature for Cake. It should be possible to

Re: schema support for postgresql 8.1 [Solved]

2006-06-26 Thread Ariel Santana
Solved.After looking i found a patch made by "Gonçalo Marrafa"[1], which modifies the file dbo_postgres.php.The model I am thus:class IinInstitucion extends AppModel { var $name = 'iininstitucion'; var $useTable = 'iininstitucion'; var $tablePrefix = 'instituciones.'; var $primaryKey =

Re: Roles, groups and users with Cake ACL

2006-06-26 Thread John David Anderson (_psychic_)
On Jun 26, 2006, at 2:56 PM, johnwik wrote: Sounds great! Will this new authentication class have some kind of layer where you could plugin different authentication services, ie http://www.ja-sig.org/products/cas/ ? The road map mentions LDAP, which in my opinion would be a very good

Re: updating an existent field

2006-06-26 Thread dima
Fabrizio, You might have to do something like this: $this-data['User']['id'] = $subscribed['User']['id']; $this-data['User']['subscribed'] = 1; ... $this-User-save($this-data); // Notice that Cake in v1.0+ will fetch the User index from $this-data. - or - $subscribed['User']['subscribed'] =

Re: updating an existent field

2006-06-26 Thread Fabrizio Mancini
oh what a fool i amthanks a lot for your tips, while reading your suggestion, i've realized that i'm trying to access an object that doesn't exist!!!$this-data in my case doesn't exist because i'm starting from a link with a parameter!! i was getting so used to $this-data that i wanted to use it

Re: Creating a CakePHP Content Management System

2006-06-26 Thread John David Anderson (_psychic_)
On Jun 26, 2006, at 4:00 PM, BlenderStyle wrote: Okay, I have a question. My docs table/model/controller/views thing is working fine now but I'm not sure how to go about listing my docs in the default layout. You might look at using an element or using requestAction to do that. -- J

CakePHP and Lighttpd

2006-06-26 Thread John David Anderson
I've been trying to create a setup for CakePHP that would allow me to package up my application and have it work almost anywhere. I also tire of mod_rewrite and .htaccess oddness from place to place, so I've found a way to pair up CakePHP and lighttpd to have my own little setup. I've

Re: Add script to head dynamically in controller or view

2006-06-26 Thread Zach Cox
Hi RosSoft,I needed to link to an externally hosted js file for a Google Map so I added to your awesome HeadHelper (see attached). I added a new register_jsexternal function and a corresponding case in print_registered(). Thanks,ZachOn 6/24/06, RosSoft [EMAIL PROTECTED] wrote: HeadHelper is your

Re: Creating a CakePHP Content Management System

2006-06-26 Thread BlenderStyle
John David Anderson (_psychic_) wrote: You might look at using an element or using requestAction to do that. I'm confused about how exactly requestAction works. Here's a snippet of my DocsController: function getList() { $this-set('doclist', $this-Doc-generateList(null, 'weight desc', null,

Re: model controller plur problem...

2006-06-26 Thread cakeshop
Hello AD7six... I have been a baker for some times but I just joined the group. It's nice to meet you and other bakers here. Thinking about openning my own cakeshop someday... ;) I mean a cakephp developer. AD7six wrote: Hi Vladiq, I don´t know why it would be different between bake and

Re: Creating a CakePHP Content Management System

2006-06-26 Thread BlenderStyle
Thanks for your help, John, I got it working. Here's what I did: controllers/docs_controller.php: function getList() { $this-set('doclist', $this-Doc-generateList(...); } views/docs/get_list.php: [echo $doclist using foreach] views/layouts/default.thtml: echo

Re: Roles, groups and users with Cake ACL

2006-06-26 Thread [EMAIL PROTECTED]
The app I'm working on has a fairly distinct set of roles. Very rarely will privileges be different than those afforded by the basic role. This has led me to question ACL, and it's need for a record for every user... Is ACL the answer in these less-complex situations? Although it occurs to me

Re: Roles, groups and users with Cake ACL

2006-06-26 Thread John David Anderson (_psychic_)
On Jun 26, 2006, at 7:53 PM, [EMAIL PROTECTED] wrote: The app I'm working on has a fairly distinct set of roles. Very rarely will privileges be different than those afforded by the basic role. This has led me to question ACL, and it's need for a record for every user... Is ACL the answer

Re: How to update multiple divs with one ajax call

2006-06-26 Thread sicapitan
can RequestHandler help me with this? --~--~-~--~~~---~--~~ 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

Re: use ajax link with more div's

2006-06-26 Thread sicapitan
did you find a solution, makiemark? --~--~-~--~~~---~--~~ 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

Re: Add script to head dynamically in controller or view

2006-06-26 Thread RosSoft
Thanks, I've updated the snippet http://cakeforge.org/snippet/download.php?type=snippetid=147 Now the register_js() handles directly the external url if it begins with http:// or https:// --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Add script to head dynamically in controller or view

2006-06-26 Thread RosSoft
Thanks, I've updated the snippet http://cakeforge.org/snippet/download.php?type=snippetid=148 Now the register_js() handles directly the external url if it begins with http:// or https:// --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: File uploads, image uploads

2006-06-26 Thread poorna
hi friends, if v upload a file ,then the file(which was uploading by me) goes to where?? whether it wil go to database/webserver??? plz reply immediately.. i am new to php... clemos wrote: hi jon and all what is on line 219 of your /myserver/app/controllers/businesses_controller.php ?