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
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
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/
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
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,
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
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
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,
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
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
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
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?
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
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
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,
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
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
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:
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
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
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
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
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
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
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
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
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
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 .* -
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
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
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
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 =
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
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'] =
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
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
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
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
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,
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
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
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
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
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
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
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
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
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 ?
48 matches
Mail list logo