I know there are ample tutorials on acl, and a few posts in here, but
I haven't been able to find anything to help my specific problem.
I'm using acl with auth to control access to actions - that all works
fine on my normal controllers.
I have then added a plugin, which has actions using
Hello all,
I am trying to fetch the list of all ACO as a tree from the acos
table. I hope there will be some function in acl to fetch all the aco
list as an array. Already there is a console method acl view aco. So
what is the php function to do the same so that I can use it in my
controllers.
Does no one ever encountered this problem? How did you overcome it
respectively; other than attaching a file which works.
On 28 Okt., 08:39, JuergenRiemer [EMAIL PROTECTED] wrote:
still looking for a solution:
How can I use the Email Component from within ashellscript _and_
pass on data to
Off the top of my head I have used this quite a while ago:
$this-Acl-Aco-findAll();
$this-Acl-Aco-generatetreelist();
I'd venture the guess that $this-Acl-Aco-find('threaded') should
work too.
On 29 Oct 2008, at 16:18, jst4fun wrote:
Hello all,
I am trying to fetch the list of all ACO as
Can confirm this happening, but don't know the reason. What's
interesting: it only occurs sometimes, not all the times.
As a quick fix I usually just add the killed model to $uses. What to
note then: I found that the order of the models in the uses variable
play a role too!
Cheers,
Tobi
On Oct
Teknoid, you may be right but the fixtures for the tests in the core
create loin tables without a pk.
E.g:
var $fields = array(
'article_id' = array('type' = 'integer', 'null' = false),
'tag_id' = array('type' = 'integer', 'null' = false),
'indexes' = array('UNIQUE_TAG' =
David thanks, that worked. :)
On Oct 29, 1:10 pm, David C. Zentgraf [EMAIL PROTECTED] wrote:
Off the top of my head I have used this quite a while ago:
$this-Acl-Aco-findAll();
$this-Acl-Aco-generatetreelist();
I'd venture the guess that $this-Acl-Aco-find('threaded') should
work too.
On Oct 29, 8:03 am, cbankier [EMAIL PROTECTED] wrote:
I know there are ample tutorials on acl, and a few posts in here, but
I haven't been able to find anything to help my specific problem.
I'm using acl with auth to control access to actions - that all works
fine on my normal controllers.
On Oct 28, 11:45 pm, 703designs [EMAIL PROTECTED] wrote:
Just an idea. I think that the Bakery's in a good position right now
(as the heart of the Cake community), and that the CakePHP knowledge
base and its usability would improve if discussions took place in a
regular web forum rather
first of all sorry for the empty message that i sent before this one.
Personally i created my own ACOs tree structure in this way, i added a
root node
then i created two big branches 'controllers' and 'admin'
$aco-create(array('parent_id' = $root_id, 'model' = null, 'alias'
= 'controllers'));
I have got a response from leighmac now. They were doing an upgrade
and have just sent me correct details.
thanks for your reply
On Oct 28, 9:59 pm, tobi_one [EMAIL PROTECTED] wrote:
I got the email with the download _immediately_ after paypal payment!
You should contact leighmac...
Sorry, the first time I answered without reading thoroughly.
Thomas is right you can post the user id and use that in your action.
Anyway, that issue seems weird, have you set any custom routes? Try
updating the core.
On Tue, Oct 28, 2008 at 11:32 PM, R. Davila [EMAIL PROTECTED] wrote:
Hi
Hi,
I have a problem with this.
Using Auth with Acl and action authoroization.
If fails beacause Auth pass the entire user model data to the
AclComponent-check() method instead of an simple array with model and
foreign_key keys.
Could this be a misconfiguaration of the Auth Component in
As brazilian actually I am cheering for McCain, any news on a CakePHP-
powered site for McCain?
LOL let me see this Obama's website...
On Oct 28, 2:54 pm, Mariano Iglesias [EMAIL PROTECTED]
wrote:
Is this a way to convince us Bakers to vote for Obama?
Nate wrote:
Hey, very cool. You
Mathew, your font blockiness appears to be a resolution dependent
issue. If you're not using your monitor's native maximum resolution,
try setting it to that and see if the problem persists. If it does
not, there's probably little that Pablo could do; if it does, I'm not
entirely sure... :P
I believe this is corrected by adding a primary id key to your mapping
table.
On Oct 15, 7:33 am, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I finally opened my eyes and found the file model.php where all models
are defined for the tests.
This bug is not caught by the tests since it appears
I did a lot of work and research into this issue of which I thought
martin.westin responded to.
A primary id field is required in order for the current code to work.
I have some changes and test that could be made to the core that would
correct the problems that exist when an id key is not
Mathew, your font blockiness appears to be a resolution dependent
issue. If you're not using your monitor's native maximum resolution,
try setting it to that and see if the problem persists. If it does
not, there's probably little that Pablo could do; if it does, I'm not
entirely sure...
Hi guys,
I am looking for a function in CakePHP which is executed after the
dispatching and processing a request.
I wish to log controller / model behavior for some debugging. Should I
just use destructor functions or is there any sweet solution available
in CakePHP for this already?
Hi
I would use the Error HAndling of CAKEPHP.
I create a my function in app_error.php
Now if I set the debug to 0 if I use this function I get always
another page (I think the error404 )
If I set debug to 1 I get the right error's page but I get a
performance's worsening.
What can I do ?
Many
Off the top of my head, I think the closest thing would be
afterFilter() in the Controller or the shutdown() in a component. Is
that late enough?
On Oct 29, 10:24 am, Abhimanyu Grover [EMAIL PROTECTED] wrote:
Hi guys,
I am looking for a function in CakePHP which is executed after the
Yea, I'm aware of the callbacks, as Nate suggested afterFilter might
work.
On Oct 29, 7:47 pm, Samuel DeVore [EMAIL PROTECTED] wrote:
If you look athttp://book.cakephp.org/view/21/A-Typical-CakePHP-Request
there are a few places to look into
for models there are
I've thought about afterFilter, yet to see how it goes. Thanks for the
reply.
On Oct 29, 7:45 pm, Nate [EMAIL PROTECTED] wrote:
Off the top of my head, I think the closest thing would be
afterFilter() in the Controller or the shutdown() in a component. Is
that late enough?
On Oct 29, 10:24
I understand how to pull an app out of the cake folder by modifying
the index.php inside webroot. What I'm after is how to put the app -
once I've moved it out of the root cake folder by itself - into a
subfolder of an application that is not a cake application.
For example, say I have an
Hi Martin,
I tested my app on another cake installation (same version), et voilá,
the limit 1 is appended...so it seems that there is something odd
going on with my installation...also weired: the debug tells me that
the resulting query is
SELECT TableNick.my_integer_field FROM my_table
How can i read from the aroaco table values associated with an
aro(aco)?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe
On Oct 29, 4:42 am, AD7six [EMAIL PROTECTED] wrote:
On Oct 28, 11:45 pm, 703designs [EMAIL PROTECTED] wrote:
Just an idea. I think that the Bakery's in a good position right now
(as the heart of the Cake community), and that the CakePHP knowledge
base and its usability would improve if
I created the database, then the models. I tried out the scaffolding,
and that worked great. Then I was able to cake bake to get
controllers and views. Now I'm working on modifying this thing. I
don't want to select all from the table, just items that don't have a
comment.
?php
class
OK it wasn't that simple but it worked.
I managed to move transfer the query terms and the query types into
the model this way.
its not a pretty sight but it does the job.
I have one problem but its a thing for another thread
On Oct 29, 12:54 am, Ita [EMAIL PROTECTED] wrote:
Now that I think
I would guess the main reasons the admins prefer a google group are:
searching capability, maintenance simplicity, and free bandwidth/
storage.
The searching aspect is by far the most important for me. I rely
heavily on this group for information.
Nonetheless, there are features provided by
That is how queries with pagination and conditions worked for me:
http://groups.google.ch/group/cake-php/msg/09277228f45365ac
Hope it helps!
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Jason
Qualkenbush
Gesendet: Mittwoch, 29.
Hi,
I have 2 models Item and Defect.
both of them have description.
an Item can have many Defects and my defects table has a an item_id
field.
Now I'm trying to create a search query that will search both the item
description and the defect description.
What I do is this:
$this-Item-bindModel(
Hi all,
I just encountered an error in my program due to inflections.
My model is called Uebsmwinklusive, it uses the table
uebsmwinklusives. What happened, when I tried to use the index.ctp,
which uses arrays like: $uebsmwinklusive['Uebsmwinklusive']['id'], I get
an error Undefined index:
I have seen this problem a few time. It is not specifically related to
Firefox as I have seen it in IE as well. Pretty sure that your browser
is doing an improper font substituion for the PHPshop Lucinda
font-family. Probably the Helvetica font in Windows.
Don't recall exactly how I resolve on
maybe this will help:
http://teknoid.wordpress.com/2008/08/29/dealing-with-errors-in-cakephp/
On Oct 29, 1:14 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Is It someone that can help me?
On 29 Ott, 15:25, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi
I would use the Error HAndling of
I have done this with Apache aliases and based off of
http://book.cakephp.org/view/35/Advanced-Installation
This solution has the cake code outside of the website.
1) I physically put the Cake into /var/www/cakeapps/mycakeapp
Where /app and /webroot are under this structure
2) In the
cake does not create joins for hasMany (only hasOne and belongsTo)
On Oct 29, 12:27 pm, Ita [EMAIL PROTECTED] wrote:
Hi,
I have 2 models Item and Defect.
both of them have description.
an Item can have many Defects and my defects table has a an item_id
field.
Now I'm trying to create a
Once I get home I can check on my laptop or desktop on the same
resolution with Firefox 3 and look a bit further in to the issue. I
can also selectively install/uninstall fonts to see if bujanga is
correct. ...hopefully I remember when I get home. ;)
On Oct 29, 10:07 am, Mathew [EMAIL
Even if those test pass (due to their nature), a primary key column
should be created in a vast majority of cases.
p.s. It could also be that the tests need to be updated.
On Oct 29, 4:34 am, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Teknoid, you may be right but the fixtures for the tests in
when debug = 0, AppError::missing*() methods don't get called, instead
you should override ErrorHandler::error404()
[EMAIL PROTECTED] wrote:
Is It someone that can help me?
On 29 Ott, 15:25, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi
I would use the Error HAndling of CAKEPHP.
I
Many Thanks
On 29 Ott, 18:28, teknoid [EMAIL PROTECTED] wrote:
maybe this will
help:http://teknoid.wordpress.com/2008/08/29/dealing-with-errors-in-cakephp/
On Oct 29, 1:14 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Is It someone that can help me?
On 29 Ott, 15:25, [EMAIL
(Echoing some of keymaster's comments)
And while many will disagree, I like having the available post
formatting options available with most forums. Syntax highlighting for
code, headers, etc. are all nice to have. The search feature here is
good, but no better than the search engines provided
Hi
I have this question.
I would have in my production system ( debug=0 ) a logging system for
php error and MySQL error.
For example if in a save operation of a model there is a MySQL error I
would that the user doesn't see anything but that in the log file
something is registered.
How can I
Here's an interesting problem I've run into today:
I've created a query in my controller that will go out and grab the 3
most viewed projects each user has.
Here is my find as well my variable for the view:
$popular = $this-Project-find('all',
array(
Is It someone that can help me?
On 29 Ott, 15:25, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi
I would use the Error HAndling of CAKEPHP.
I create a my function in app_error.php
Now if I set the debug to 0 if I use this function I get always
another page (I think the error404 )
If I set
On Oct 29, 6:47 pm, Josey [EMAIL PROTECTED] wrote:
Here's an interesting problem I've run into today:
I've created a query in my controller that will go out and grab the 3
most viewed projects each user has.
Here is my find as well my variable for the view:
$popular =
Da-Omiete Iboroma
I'm not sure why your email didn't make it to the board, but I'll try
to answer.
The file /etc/my.cnf and /etc/my.ini are interchangeable I believe.
Just depends on the naming convention in use.
The critical thing is to include the 'group' [mysqld] and to restart
mysql
Thanks for your reply.
When I run that bit of code I get the following error.
Fatal error: Cannot use string offset as an array in /var/www/
mortfolio/www.mortfolio.com/html/app/views/users/view.ctp on line 108
Note that if I just print the name by passing $popular[2]['Project']
['name'] all is
Essentially ... what makes the Admin Routing so special, and why
should I use it? What's the advantage over just having all the checks
in my own code? (ex: checks that they're logged in as admin and have
the right permissions)
On Oct 28, 1:33 pm, Brenton B [EMAIL PROTECTED] wrote:
Quick
I am newbie baker. I was following the quickwall tutorial from the
book CakePHP Application Development. I got stuck at the Form
Validation part. The situation is, when the validation conditions are
met, the data is successfully added to the database but if there is
any input error, what I get is
You sir and a freaking genius, and I'm going to name my first child
after you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To
I don't really agree with the should part. For a standard join
table I see no reason for an extra id, and I have not noticed of heard
of such a requirement before.
Also, when a decision is taken to start requiring a single-field pk in
join-tables I would have expected a bit more of a heads-up
How else would ensure uniqueness of records if cake does not/will not
support composite keys?
On Oct 29, 3:42 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I don't really agree with the should part. For a standard join
table I see no reason for an extra id, and I have not noticed of heard
of
You can put in app_model
something like (this is from cake 1.1 see 1.2 API if changed):
function onError()
{
$db = ConnectionManager::getDataSource('default');
if (isset($db-error))
{
//log here $db-error
Hi All,
I have a windows tutorial which shows me how to create 1 cake folder
that is used for all CakePHP localhost applications built(using WAMP).
I am trying to set this up on my mac. Can anyone point me to a site
that shows me this? or Can anyone tell me how to do this?
I am trying to get
Hi everyone,
I'm using the Auth component and here is my beforeFilter() in my
controller:
function beforeFilter() {
$this-Auth-allow('*');
$this-Auth-deny('add', 'delete', 'edit');
$this-Auth-loginAction = '/users/login';
}
Now the problem is if I go to
..and for mysql connection errors,
you can test in __construct ()
if $db-connection is empty...
On Oct 29, 9:52 pm, majna [EMAIL PROTECTED] wrote:
You can put in app_model
something like (this is from cake 1.1 see 1.2 API if changed):
function onError()
{
$db =
Try putting the words you do not want inflected in the
$uninflectedPlural array.
Gruß,
Dav
On 30 Oct 2008, at 01:33, Liebermann, Anja Carolin wrote:
Hi all,
I just encountered an error in my program due to inflections.
My model is called Uebsmwinklusive, it uses the table
If have only an id in the finderquery i Get the errorSQL Error:
1241: Operand should contain 1 column(s).
If I put the pharentesis I can solve, but if I have more ids, I get
the error..
What the solution...
and `PizzeDolci`.`persona_id` IN
({$__cakeID__$})
I am building an AJAX application in Cake where you choose products,
then accessories to go with those products.
In the accessories-picking page, I was hoping to use one large Ajax
form where users click on radio buttons to choose accessories. The
complicated part is that when a user clicks
Double check what you're actually doing:
foreach ($popular[2]['Project'] as $project)
means you're going over the fields inside $popular[2]['Project'].
The first time $project will be Gallery (the first field inside
['Project']).
The next time it'll be This is for testing and so on.
Then
I solved so:
//how results?
$NumberResults = $this-Person-findCount($SubSQL);
//If the result is 1 I must change the sql code
$PieceOfSql ='{$__cakeID__$}';
if($NumberResults==1) $PieceOfSql = '({$__cakeID__$})';
but It is
Hi, David
Sorry for that...
The announcements was in Japanese only.
(There was an information at http://events.php.gr.jp/events/show/55
though.)
Next time, let us post the news at this google group.
Still, you can watch Garrett's talk at
CakePHP and Beyond / Garrett J Woodworth (Cake Software
Thanks! See if I can catch the next one... :)
Chrs,
Dav
On 30 Oct 2008, at 09:38, sdozono wrote:
Hi, David
Sorry for that...
The announcements was in Japanese only.
(There was an information at http://events.php.gr.jp/events/show/55
though.)
Next time, let us post the news at this
I am having trouble with the redirect, I have manually inserted the
username/password values, I have hashed the password with the correct
security salt. However when I go to users/login and type in the
username and password it does not redirect me to what I have specified
in $loginRedirect it
I was unable to reproduce the issue. However, I made the presumption
that you're using Windows (Windows XP SP3, specifically), but I did
find some hits on Linux users with issues of fonts (Arial) looking
blocky.
http://www.mozilla.org/unix/customizing.html (search for making fonts
more readable
Hi Brendon,
I think I might have an answer to what is happening with the font.
It appears that Windows does not come with the Lucida Grande font,
and that font is a standard Apple's font found on the Mac OS.
When I installed Safari from Apple on my Windows XP computer. That
browser installed
Has anyone tried adapting CakePHP to work with something like GTK, or
even Cocoa? The rapid development of Cake would be an interesting mix
with a GUI toolkit.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP
Hi all,
I'm trying to create a map mashup using CakePHP for my first Web App
with Cake :) But I'm just afraid that I'm not structuring my database
correctly...
The idea: A simple mashup with google maps which allows people to
submit/search points of interest on a map and click on the pointers
Thanks Marcus.
We're fixing that. We forgot about it
On Oct 28, 11:50 am, Marcus Silva [EMAIL PROTECTED] wrote:
Very nice, got stuck on this page
thoughhttp://radar.barackobama.com/news_items/
The links would not work and could not go back to the home page.
On Oct 28, 4:43 pm, Nate
We do get decent traffic numbers.
Butwe have a policy of not releasing them. Sorry.
On Oct 28, 2:44 pm, teknoid [EMAIL PROTECTED] wrote:
Very nice.
I imagine that you get some decent traffic there?
Any chance you could share some numbers, experiences and how cake is
holding up?
Maybe
Oh, but on the holding up side of things, I'm using head, and I can
tell you that all the speed enhancements that the guys have done in
core are a godsend.
On Oct 28, 2:44 pm, teknoid [EMAIL PROTECTED] wrote:
Very nice.
I imagine that you get some decent traffic there?
Any chance you could
BrendonKoz
It's simple search. nothing complicated.
I built a podiatry resource site awhile back. I used Zend Framework's
implementation of Lucene. (There's some article in the bakery about
how to implement it.)
For this site, though, merely a simple text search.
On Oct 28, 3:04 pm,
Really a very nice site.Thanks for sharing Walker.
On Thu, Oct 30, 2008 at 8:22 AM, Walker Hamilton [EMAIL PROTECTED]wrote:
BrendonKoz
It's simple search. nothing complicated.
I built a podiatry resource site awhile back. I used Zend Framework's
implementation of Lucene. (There's some
So it just can't handle the conditions?
What should I do in this case? create my own query?
On Oct 29, 7:29 pm, teknoid [EMAIL PROTECTED] wrote:
cake does not create joins for hasMany (only hasOne and belongsTo)
On Oct 29, 12:27 pm, Ita [EMAIL PROTECTED] wrote:
Hi,
I have 2 models Item
75 matches
Mail list logo