Re: What is wrong with my mo-file? Was:... Cake does not parse .mo files

2008-04-09 Thread [EMAIL PROTECTED]
That is great. Thank you so much. On Apr 8, 5:42 pm, Larry E. Masters aka PhpNut [EMAIL PROTECTED] wrote: Martin, I have already fixed this in the core. Please update to the latest branch 1.2.x.x from svn. Related ticket:https://trac.cakephp.org/ticket/4420 -- /** * @author Larry E.

Re: ACL: ACOs inherit permission settings backwards?

2008-04-09 Thread David Christopher Zentgraf
Ignore my previous fix, only works under certain conditions. This fix is more robust: Insert: // === WORKAROUND = $perms = Set::sort($perms, '{n}.Aco.id', 'desc'); // = before: $perms = Set::extract($perms, '{n}.' . $this-Aro-Permission-alias); The

Re: Howto secure a form / posted data from tampering?

2008-04-09 Thread Marcelius
Hi Larry thank you very much for your help, but i'm afraid there's just a small problem left (or is this by design?): It doesn't work if you don't define $this-Security- blackHoleCallback. It only works (in my situation) when you define a callback and, if defined, that callback is allways invoked

Re: newbie beforefilter() question

2008-04-09 Thread Adam Royle
try this and see what you get function beforeFilter() { pr($this-params); } On Apr 9, 6:30 pm, . [EMAIL PROTECTED] wrote: in the beforeFilter() function, how do you determine the url parameters? ie localhost/users/param1/param2/ how do i get the param1 and param2 values?

Re: Page specific javascript

2008-04-09 Thread R. Rajesh Jeba Anbiah
On Apr 8, 8:59 am, John R [EMAIL PROTECTED] wrote: Is there an easy way with Cake to get /js/register.js to be automatically included in register.ctp? (And conversely not included if it doesn't exist?) Not automagic, but you may add this in the view file: $this-addScript('register'); --

newbie beforefilter() question

2008-04-09 Thread .
in the beforeFilter() function, how do you determine the url parameters? ie localhost/users/param1/param2/ how do i get the param1 and param2 values? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To

Trying to figure out the best way to set up a Friend to Friend relationship.

2008-04-09 Thread dizz
Hi all, I'm trying to add a friend feature to one of my sites. I am trying to wrap my head around how to set up the relationship. I have a table users which holds all the users info. Each user can have many friends which is just an alias for many users and those friends (users) belong to the

Re: Trying to figure out the best way to set up a Friend to Friend relationship.

2008-04-09 Thread grigri
It depends entirely on whether you want the friendship relation to be symmetric or not. Symmetric: If Fred is Joe's friend then Joe is Fred's friend and vice- versa Asymmetric: Fred can be Joe's friend regardless of whether or not Joe is Fred's friend. An asymmetric relation would be easier to

Re: organizing controlleres into subdirectories

2008-04-09 Thread Dardo Sordi Bogado
Yes, but you will have to learn to use google for this. On Wed, Apr 9, 2008 at 5:00 AM, MarcS [EMAIL PROTECTED] wrote: Hi, I'm wondering if it is is somehow possible to put controllers into subdirectories. sort of like www.cakeapp.com/subdirectory/controller/action

Re: newbie acl question

2008-04-09 Thread Dardo Sordi Bogado
You don't. Check from controller/component and pass the allowed/denied to the view/layout. On Wed, Apr 9, 2008 at 7:19 AM, . [EMAIL PROTECTED] wrote: hi how do you check acl from the View? ie $acl-check(...) in the view, instead of controller. How would I check ACL from my layout? thanks

Re: newbie page not found redirect

2008-04-09 Thread Dardo Sordi Bogado
In beforeFilter() check if user isn't logged In Controller::redirect seccond parameter is the error, set it to 404. http://api.cakephp.org/1.2/class_controller.html#903188d3de83bd65c78bb676f61b3039 On Wed, Apr 9, 2008 at 7:14 AM, . [EMAIL PROTECTED] wrote: hi. i'd like to set up the admin

Re: ACL for Cake 1.2

2008-04-09 Thread Dardo Sordi Bogado
How do you do $this-Acl-check(...) from the View? I don't. That isn't view business. Probably you need to put that logic in a component + helper to keep the MVC fairy happy. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

newbie acl question

2008-04-09 Thread .
hi how do you check acl from the View? ie $acl-check(...) in the view, instead of controller. How would I check ACL from my layout? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to

Re: Translate error messages

2008-04-09 Thread Sliv
The generally recommended method from what I understand is to move the message part of the validation out of the model and into the view for translation. You then define array('error' = __('Validation message', true)) when you create a form input in your view with the form helper in order to

Re: Pagination with Filter/Search Box

2008-04-09 Thread R. Rajesh Jeba Anbiah
On Apr 7, 9:07 pm, Kyle Decot [EMAIL PROTECTED] wrote: I am creating a skatepark directory website, and I want to include a filter/search box where you can search parks by name, and filter by state, price, size, etc. Has anybody done anything similar, or have any suggestions on how to do

Re: Translate error messages

2008-04-09 Thread R. Rajesh Jeba Anbiah
On Apr 9, 1:09 pm, stefanb [EMAIL PROTECTED] wrote: How can I translate the error messages in validate arrays? example: ?php public $validate = array( 'name' = array( 'validtext' = array('rule' =

Re: problem with cake in subdir and slugs?

2008-04-09 Thread dr. Hannibal Lecter
Thanks Joel, I will try that. I'm not sure if this is a permanent solution though. The /cake part should be removed only from the beginning of the url.. And that one is tricky too.. What happens if I create a CakesController? Will have to try that one too.. On Apr 8, 10:37 pm, Joel [EMAIL

Re: organizing controlleres into subdirectories

2008-04-09 Thread MarcS
thanks, that's what I'm looking for. I'm not all that worried about the actual url. I just wanna organize my code a bit better. Is there a way to put view templates into directories as well? I tried just moving it to subdirectories but that gives me an error. I suppose I could change the

Re: Validation criteria alphaNumeric doesn't accept special chars

2008-04-09 Thread avairet
Hi Max and Grigri, I've retested some solutions to validate with a custom regex, but no success! It seems the problem is due to utf-8, because in a iso-8859-1 context, it seems to work... My environment: Cake 1.2.x.x nightly builds PHP 5.2.5 MySQL 5.0.45 Apache 2 I've setted my LOCALE in

Re: organizing controlleres into subdirectories

2008-04-09 Thread Daniel Hofstetter
Hi Marc, thanks, that's what I'm looking for. I'm not all that worried about the actual url. I just wanna organize my code a bit better. Is there a way to put view templates into directories as well? I tried just moving it to subdirectories but that gives me an error. No, this doesn't

404 Question

2008-04-09 Thread Kyle Decot
How can you tell Cake to throw a 404 error via the Controller? Thanks for any help as always. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Validation criteria alphaNumeric doesn't accept special chars

2008-04-09 Thread grigri
Your regexp: '/^[[:alpha:]]/' should probably be '/^[[:alpha:]]+$/' On Apr 9, 3:05 pm, avairet [EMAIL PROTECTED] wrote: Hi Max and Grigri, I've retested some solutions to validate with a custom regex, but no success! It seems the problem is due to utf-8, because in a iso-8859-1 context,

Cakephp GoDaddy again

2008-04-09 Thread fcojaviermu
Hello, i've just signed up with godaddy hosting. First, I put a cake application in root folder, all worked fine. Later I decided to move it to a directory, and made the proper change in godaddy hosting panel (mydomain.com pointing to mydirectory/ ) But I'm getting .htaccess errors. I red a

Re: SQL error when adding item using the scaffolding

2008-04-09 Thread Priya
Thankyou Ben, I was totally stuck up with this problem till I read your solution. Thankyou Andrews for your exact specification of where to modify. Priya On Feb 11, 12:22 am, asturges [EMAIL PROTECTED] wrote: Thanks Ben, I was having the same problem. I knew it had to be something with MySQL,

Problem in helper

2008-04-09 Thread Priya
Hi, I am getting this error: Method HtmlHelper::formTag does not exist Please can anyone help me? Priya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Difference b/w mod_rewrite CakePHP routing

2008-04-09 Thread vinacake
Is CakePHP routing still available if i turn mod_rewrite OFF. How they are linked to each other? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

hasAndBelongsToMany issue

2008-04-09 Thread inma
I have an User class and a PermissionGroup class. User has defined a hasAndBelongsToMany relation with PermissionGroup. If into database exists one user with two permission grups assigned, when I run this code: $userA = $this-User-findAll($sort, $limit, $page); //gets all the User records and

Loop over database results with custom query

2008-04-09 Thread holsen
Being forced into using Cake I'm trying to find out how to avoid getting a custom query result returned as a complete array set at once (seems to be the case with query()) - which will not scale for large datasets where the array and all the internal loops are too heavy in both memory and cpu

Re: Files folder?

2008-04-09 Thread G Kramer
I think I can answer my own question now (which was pretty easy, once I got it).You have to construct the links to the files explicitly: ie, html-link(click here,http://www.mydomain.com/ files/example.pdf). Or, on a system without mod_rewrite, the link would be to:

Re: organizing controlleres into subdirectories

2008-04-09 Thread vinacake
test On Apr 9, 1:00 pm, MarcS [EMAIL PROTECTED] wrote: Hi, I'm wondering if it is is somehow possible to put controllers into subdirectories. sort of likewww.cakeapp.com/subdirectory/controller/actionwww.cakeapp.com/subdirectory2/controller/action and have the same for the views. It is

Re: organizing controlleres into subdirectories

2008-04-09 Thread inma
Yes, you can group your models, controllers and views into subdirectories. You have to set additional paths to models, views and controllers into documentRoot/app/config/bootstrap.php. For example: $modelPaths = array(MODELS.usuarios.DS, MODELS.sistema.DS, MODELS.proyectos.DS);

hasAndBelongsToMany relation issue

2008-04-09 Thread inma
Hi, I have an User class and a PermissionGroup class. User has defined a hasAndBelongsToMany relation with PermissionGroup. If into database exists one user with two permission grups assigned, when I run this code: $userA = $this-User-findAll($sort, $limit, $page); //gets all the User records

Re: 404 Question

2008-04-09 Thread [EMAIL PROTECTED]
ErrorHandler::error404(array('url'='...', 'message'= 'Stuff')); of ErrorHandler::error() if you're feeling the need for more control and less convenience. see: http://api.cakephp.org/1.2/class_error_handler.html for more details simon http://www.simonellistonball.com/ On Apr 9, 3:16 pm, Kyle

Re: 404 Question

2008-04-09 Thread Samuel DeVore
$this-cakeError('error404', array('message' = 'Enter a message here', 'title' = 'Comes right after the error code')); On Wed, Apr 9, 2008 at 7:16 AM, Kyle Decot [EMAIL PROTECTED] wrote: How can you tell Cake to throw a 404 error via the Controller? Thanks for any help as always. --

Re: Database problem

2008-04-09 Thread [EMAIL PROTECTED]
In mode 0, cake caches the table specs to speed up model loading, and remove the need for a describe. The avoid changing the debug level, just clear out relevant app/tmp/ cache/models/ when you change the schema. simon http://www.simonellistonball.com/ On Apr 9, 8:26 am, un155 [EMAIL

Re: hasAndBelongsToMany relation issue

2008-04-09 Thread Joel
Take a look at the Set class in the cake core. More specifically, the Set::extract() method. Read http://www.thinkingphp.org/2007/02/24/cake-12s-set-class-eats-arrays-for-breakfast/ for a few pertinent examples. -Joel. On Apr 9, 10:28 am, inma [EMAIL PROTECTED] wrote: Hi, I have an User

Re: organizing controlleres into subdirectories

2008-04-09 Thread Daniel Hofstetter
Hi inma, Yes, you can group your models, controllers and views into subdirectories. You have to set additional paths to models, views and controllers into documentRoot/app/config/bootstrap.php. You no longer have to set the paths to models and controllers which are in subfolders of

Re: Validation criteria alphaNumeric doesn't accept special chars

2008-04-09 Thread avairet
Grigri, my first example is exactly what you said and it doesn't work... Do you need some glasses ;o)) Aurélien On 9 avr, 16:32, grigri [EMAIL PROTECTED] wrote: Your regexp: '/^[[:alpha:]]/' should probably be '/^[[:alpha:]]+$/' On Apr 9, 3:05 pm, avairet [EMAIL PROTECTED] wrote: Hi

Re: hasAndBelongsToMany relation issue

2008-04-09 Thread [EMAIL PROTECTED]
The usual and unhelpful answer applies: You will have to rearrange your array-data yourself if you need it in that format. I would take another look at the javascript-component you are using... because I can't really figure out why it would require the data in that format. Repeating the

Re: Loop over database results with custom query

2008-04-09 Thread [EMAIL PROTECTED]
First off, I would seriously look at redesign. Cake doesn't tend to play nicely if you don't follow its conventions. That said, what you're after is sort of possible. One way to achieve it would be use multiple database configurations (a separate one for your outer query). AFAIK this will cause

Re: organizing controlleres into subdirectories

2008-04-09 Thread scs
You no longer have to set the paths to models and controllers which are in subfolders of app/models resp. app/controllers, cake automatically finds them. Daniel, I was wondering if this is just a cakephp 1.2 only feature? --~--~-~--~~~---~--~~ You

Re: 404 Question

2008-04-09 Thread Kyle Decot
Thanks a lot guys. Worked Great. On Apr 9, 10:36 am, Samuel DeVore [EMAIL PROTECTED] wrote: $this-cakeError('error404', array('message' = 'Enter a message here', 'title' = 'Comes right after the error code')); On Wed, Apr 9, 2008 at 7:16 AM, Kyle Decot [EMAIL PROTECTED] wrote:  How can

Re: Validation criteria alphaNumeric doesn't accept special chars

2008-04-09 Thread grigri
Grigri, my first example is exactly what you said and it doesn't work... Heh you're right, sorry - I was looking at the one that almost works... Do you need some glasses ;o)) Already wearing them! I've had a think, though - instead of doing a simple regexp, try using a custom validation

Re: organizing controlleres into subdirectories

2008-04-09 Thread DragonI
Coolio! But does anyone know what the overhead/performance is like? On Apr 9, 11:35 am, Daniel Hofstetter [EMAIL PROTECTED] wrote: You no longer have to set the paths to models and controllers which are in subfolders of app/models resp. app/controllers, cake automatically finds them.

|OT| What is your preferred URL structure?

2008-04-09 Thread R. Rajesh Jeba Anbiah
This strange, but I'd really like to know your preferred URL structure: 1. http://foo.com/foos/index/x/1/2 (path like) 2. http://foo.com/foos/index/x/slug_1/slug_2 (path like, but with slug) 3. http://foo.com/foos/index/x/Nam+e+1/Nam+e+2 (path like, but with findByName) 4.

Re: Validation criteria alphaNumeric doesn't accept special chars

2008-04-09 Thread avairet
I'm wearing glasses too! Your solution seems interesting but how be sure the replace method match all possile accented chars typoing by the user? And how invalidate blanks, spaces, symbols, number? I'm not sure to understand very well your suggest... In any case, great thanks to interest of my

Re: organizing controlleres into subdirectories

2008-04-09 Thread R. Rajesh Jeba Anbiah
On Apr 9, 8:44 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On Wed, Apr 9, 2008 at 11:41 AM, DragonI [EMAIL PROTECTED] wrote: Coolio! But does anyone know what the overhead/performance is like? Compared to what? I doubt you'd even notice it. File inclusions are always a

architecture - organizing related models (?)

2008-04-09 Thread R. Rajesh Jeba Anbiah
(The topic not related to the current thread http://groups.google.com/group/cake-php/browse_frm/thread/0133dc7f2dfb1191/6f1665159f7b00d4 ; it's different) I'm interested to know the preferred way of organizing the models and vendor files, for the project say meta search engine - using

cache issues

2008-04-09 Thread Ron Astonvarga
Hello, I have an issue with caching. I have cache switched off ( Configure::write('Cache.check', true); // in core.php ) But my actions are still cached and I need to click on refresh every time I want see the results of the action. I tried to add meta http-equiv=cache-control

Re: Validation criteria alphaNumeric doesn't accept special chars

2008-04-09 Thread grigri
Sorry if I wasn't clear. This is what I mean: [1] Write a function to remove accents. Call it - for example - strip_accents($text). So if strip_accents('Aurélien') returns 'Aurelien'. All the code necessary for this function is in the Sluggable behavior by Mariano. You can just select the

Re: organizing controlleres into subdirectories

2008-04-09 Thread R. Rajesh Jeba Anbiah
On Apr 9, 9:14 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On Wed, Apr 9, 2008 at 11:52 AM, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote: File inclusions are always a overhead unless you use caching; but many times it's ok for the module organization. Cake's way of handling file

Re: SQL-log showing when layout does not have $cakeDebug; defined?

2008-04-09 Thread aka
Ahh thanks for the replies. The name of that variable is a bit misleading :) Should read the documentation (and the source code) more carefully I quess. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group.

Re: organizing controlleres into subdirectories

2008-04-09 Thread Dardo Sordi Bogado
I know people won't believe me, but the alleged overhead of Cake's file inclusion methods will be the least of your worries when building a web app with it. I totally agree, and in the part of client side this can help: http://developer.yahoo.com/yslow/ Yes, caching is a good solution

Re: organizing controlleres into subdirectories

2008-04-09 Thread Chris Hartjes
On Wed, Apr 9, 2008 at 12:29 PM, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote: Ok, you started dodging to be smart; but your conclusions still look more dumber to me. Stupid is as stupid does. Caching is a big help, but sometimes masks other problems. -- Chris Hartjes Internet

Re: organizing controlleres into subdirectories

2008-04-09 Thread Chris Hartjes
On Wed, Apr 9, 2008 at 11:52 AM, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote: File inclusions are always a overhead unless you use caching; but many times it's ok for the module organization. Cake's way of handling file inclusions are real overhead (checking file_exists and then

Calling Controllers With Variables From The Command Line

2008-04-09 Thread pr1000
Hello everyone, I know this subject has been touched upon several times here, but I'm afraid I'm still looking for some guidance and would appreciate some help. Like others, I'm trying to call a controller from the command line. As suggested by some (e.g.

Bakery problems?

2008-04-09 Thread leestrayer
Has anyone else noticed the problems happening in the Bakery? Some tutorials don't come up fully, bad server responses, etc.? (i.e. http://bakery.cakephp.org/articles/view/setting-up-eclipse-to-work-with-cake is comments only, but no article) Tried to create an account and crashed. Tried to login

Re: Bakery problems?

2008-04-09 Thread Sliv
If you check the page 'CakePHP Tickets: How To Help', there is a link to a query on Trac for tickets related to the official web sites (bakery included). You will notice a number of outstanding tickets regarding issues with the Bakery. I just recently started working with folks from the CakePHP

Re: ACL for Cake 1.2

2008-04-09 Thread aranworld
It is important to note that the Authorization Component does not pass ID values when it automatically checks for access. If this is the URL, and the user's ARO alias is 'frank': http://www.cakephp.org/users/edit/23 And you are using Auth in 'actions' mode, the Auth component makes the

Quick Auth component issue

2008-04-09 Thread Antonio Labriola
Hi guys, Hopefully someone could have a quick answer for me. I am trying to use the auth component for authorization in my webapp. I have activated the auth component and app_controller.php, and i have created a users_controller,user model, and users table in the database, all to the

Re: ACL: ACOs inherit permission settings backwards?

2008-04-09 Thread aranworld
The idea of basing inheritance on id order is really not going to work, because over the course of usage, ACO nodes are bound to be added in a non-linear fashion. This is why lft and rght values are used instead to determine inheritance. I am able to reproduce this bug as described. However,

Re: Quick Auth component issue

2008-04-09 Thread aranworld
This is what my form looks like: ?php echo $form-create('User',array('action' = 'login')); ? fieldset class=form ?php echo $form-error('User.username'); ? ?php echo $form-input('User.username', array('label'='Username') ); ? ?php echo $form-error('User.passwd'); ? ?php echo

Re: Quick Auth component issue

2008-04-09 Thread Chris Hartjes
On Wed, Apr 9, 2008 at 2:48 PM, Antonio Labriola [EMAIL PROTECTED] wrote: Has anyone had anything similar to them? I didnt think it was going to be this difficult to get the simple authorization up and running. Any help would be appreciated, thanks. Have you tried the various

Re: ACL: ACOs inherit permission settings backwards?

2008-04-09 Thread Chris Hartjes
On Wed, Apr 9, 2008 at 2:34 AM, David Christopher Zentgraf [EMAIL PROTECTED] wrote: Ignore my previous fix, only works under certain conditions. This fix is more robust: Insert: // === WORKAROUND = $perms = Set::sort($perms, '{n}.Aco.id', 'desc'); //

Re: organizing controlleres into subdirectories

2008-04-09 Thread aranworld
By the way, I think plugins are another elegant way to handle this type of code organization. The main issue is the sharing of models between plugins, but I think this can be worked with. Now that the test suite handles plugin tests, it is even easier than before to use plugin directories for

Re: ACL: ACOs inherit permission settings backwards?

2008-04-09 Thread aranworld
I am currently working on a test patch file that will at least demonstrate the behavior being described. Like I said in my previous post, though, I'm not sure if this is considered a bug or not. On Apr 9, 12:06 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On Wed, Apr 9, 2008 at 2:34 AM, David

Re: Quick Auth component issue

2008-04-09 Thread Baz
Because there are so many bits and pieces associated with Auth, it's hard to diagnose your problem without ALL your code. However, let's try the reverse. Look at these: http://book.cakephp.org/view/172/authentication http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/(downloadable

Re: ACL: ACOs inherit permission settings backwards?

2008-04-09 Thread Chris Hartjes
On Wed, Apr 9, 2008 at 3:15 PM, aranworld [EMAIL PROTECTED] wrote: I am currently working on a test patch file that will at least demonstrate the behavior being described. Like I said in my previous post, though, I'm not sure if this is considered a bug or not. That's excellent. Even

New to Cake, questions about views, htmlhelpers and saving data

2008-04-09 Thread Brian
First off I am familiar with php and mysql, I can create small applications (although they might not be too efficient.) So, I decided to get my feet wet with CakePHP. I figured I would create a user based system and then can add on aspects of my applications from there. I first started off with

Cross site POST

2008-04-09 Thread vold
Hi, i use Cake 1.2 and would like to know how I can allow a certain action/controller to get POST-data from a foreign site/application. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

Re: Validation criteria alphaNumeric doesn't accept special chars

2008-04-09 Thread Sliv
If you want to test your regular expressions as well, there's tools like: https://addons.mozilla.org/en-US/firefox/addon/2077 http://www.google.ca/search?hl=ensafe=activeclient=firefox-arls=org.mozilla%3Aen-US%3Aofficialhs=2PLq=regular+expression+testerbtnG=Searchmeta= and resources like:

Re: |OT| What is your preferred URL structure?

2008-04-09 Thread majna
I have: /news/sport -for category /news/sport/skate/downhill-categroy too (unlimited depth) /news/sport/skate/downhill/new-kids-in-da-hood - for news article Not best solution for seo, but some day sitemap http://www.sitemaps.org/ will make

Re: architecture - organizing related models (?)

2008-04-09 Thread Stephen Orr
I can't answer all your points, but in theory, you could probably achieve what you're aiming for in (2) by making SearchEngine a factory class which instantiates the other classes on demand. But you'd probably do better with a different architecture. My suggestion would be to use a call such as

Stats Question

2008-04-09 Thread Kyle Decot
I would like to be able to see some stats about my users/guest in my admin panel, such as what pages their visiting, how long they are there, etc. Does anyone have any suggestions as to how I would go about doing this? I basically want to be able to have a facebook type Recent Activity section

Re: ACL: ACOs inherit permission settings backwards?

2008-04-09 Thread aranworld
I added a patch file to the ticket: https://trac.cakephp.org/ticket/4450 which adds some tests which demonstrate the behavior. I set it up to generate a failed test. On Apr 9, 12:17 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On Wed, Apr 9, 2008 at 3:15 PM, aranworld [EMAIL PROTECTED] wrote:

Webroot folder in Plugins

2008-04-09 Thread MYRZ
After some time reusing and perfecting some code for cakephp, i think it's time to put all the reusable stuff in a plugin. But, In the manual (which I realize is not up to date any more for 1.2), i found that the controllers, models and views folders could be placed in such a plugin, but not

Find statement not updating in foreach loop

2008-04-09 Thread skoggins
Hi all, I have a method which loops through an array of ids and deletes the corresponding Note record. Upon deleting, it also checks whether the associated Document is still associated with other Notes. If it isn't, it should be deleted. The problem I'm having is that even though I am calling

Re: New to Cake, questions about views, htmlhelpers and saving data

2008-04-09 Thread Sliv
Have you looked at http://book.cakephp.org and searched http://bakery.cakephp.org yet? There's quite a bit more info there than in the manual. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To

Custom SQL call problem

2008-04-09 Thread Defranco
Hi, I'm attempting to read a stored procedure contents (its code) by issuing the following sql command: SHOW CREATE PROCEDURE my_stored_procedure That would return a table like: procedure | sql_mode | Create Procedure ---

Re: Quick Auth component issue

2008-04-09 Thread John R
Hint: ?php echo $form-input('password'); ? On Apr 9, 2:16 pm, Baz [EMAIL PROTECTED] wrote: Because there are so many bits and pieces associated with Auth, it's hard to diagnose your problem without ALL your code. However, let's try the reverse. Look at these:

Re: OT: What code editors do you all use?

2008-04-09 Thread CraigFisher
Used to use CrimsonEditor - now use Eclipse (PDT) - the extra functions are worth the bloat... On Apr 8, 5:09 pm, John R [EMAIL PROTECTED] wrote: Just curious .. The only features I really use in an editor are code highlighting and FTP ... all of the crazy PHP IDEs are incredibly bloated for

Re: cache ignores prefix (after #6323 fix)

2008-04-09 Thread Krommenaas
Same prob here, cache prefix is completely ignored (I'm using File engine on 1.2) even when I set it with Cache::config() in core.php and even after applying that fix in changeset #6323. Looking at the code in that changeset I wonder whether the $settings array isn't empty in the functions

Re: New to Cake, questions about views, htmlhelpers and saving data

2008-04-09 Thread Brian
I have looked at both quite a bit. I will have to take another look and see if I can find some examples to work with. Thanks On Wed, Apr 9, 2008 at 5:01 PM, Sliv [EMAIL PROTECTED] wrote: Have you looked at http://book.cakephp.org and searched http://bakery.cakephp.org yet? There's quite a

Display progress of an AJAX-called script in a view

2008-04-09 Thread gmwebs
I have been playing around with the Ajax helper and am trying to display the progress of a script, in realtime, called by $ajax- link(). I have seen how the different callbacks work, but I can't seem to find if there is a way to send a series of responses during the call to the server script.

Re: New to Cake, questions about views, htmlhelpers and saving data

2008-04-09 Thread Marcin Domanski
come on irc #cakephp @ freenode as for the original question: How does one go about modifying the data before it is saved? the most appropriate place is the models beforeSave() callback On Wed, Apr 9, 2008 at 11:05 PM, Brian [EMAIL PROTECTED] wrote: I have looked at both quite a bit. I will

Re: hasAndBelongsToMany relation issue

2008-04-09 Thread Joel
The query: $records = $this-Author-findAll(); will return nested associative arrays in the form: Array ( [0] = Array ( [Author] = Array ( ...// Fields from the Author model ) [Book] = Array

Re: New to Cake, questions about views, htmlhelpers and saving data

2008-04-09 Thread Joel
If you're looking to modify the data before it is saved to the DB, then you need to use the Model::beforeSave() callback, or whichever filter is appropriate for your needs. Also, the automatic password hashing is only present in the official Auth component of CakePHP 1.2. The blog tutorial was

Re: Calling Controllers With Variables From The Command Line

2008-04-09 Thread Grant Cox
No, stick with the dispatcher. You can easily pass data just as a second parameter: $result = $Dispatcher-dispatch($url, array('cli'=true, 'source'= $mime_source)); then in your controller action you can just access $this-params['source'] to get the data passed. Let me guess, you're writing

Re: OT: What code editors do you all use?

2008-04-09 Thread aranworld
I really love Cream, which is a redistribution of vim with all the bells and whistles added and with all the configuration options that people more used to mouse click environments use ... though it also supports a hard-core mode if you really want to use the keyboard navigation technices of vim.

Re: ACL: ACOs inherit permission settings backwards?

2008-04-09 Thread David Christopher Zentgraf
1) Ticket was posted earlier in this thread: https://trac.cakephp.org/ticket/4450 2) Somebody generously wrote a test and attached it to above ticket. 3) I wouldn't consider this an official fix, it's more of a workaround hack. If ACOs are supposed to inherit permissions as well, the check

Re: OT: What code editors do you all use?

2008-04-09 Thread mbavio
Aptana rocks! But Textmate for Mac is amazing... Cheers, mbavio On Apr 9, 8:22 pm, aranworld [EMAIL PROTECTED] wrote: I really love Cream, which is a redistribution of vim with all the bells and whistles added and with all the configuration options that people more used to mouse click

Re: newbie acl question

2008-04-09 Thread .
what controller would i check in for the layout? or use helper? On Wed, Apr 9, 2008 at 4:14 AM, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: You don't. Check from controller/component and pass the allowed/denied to the view/layout. On Wed, Apr 9, 2008 at 7:19 AM, . [EMAIL PROTECTED] wrote:

Re: architecture - organizing related models (?)

2008-04-09 Thread the_woodsman
Interesting stuff - I think you seem to be implying the need for certain design patterns, and Stephen is on the money with the Factory (http://en.wikipedia.org/ wiki/Factory_method_pattern) , or perhaps the Strategy pattern (http:// en.wikipedia.org/wiki/Strategy_pattern) - but again, this might

Re: newbie acl question

2008-04-09 Thread Dardo Sordi Bogado
Probably, I will check in the AppController::beforeFilter(); or even better make a component. Helpers are meant for the view, not the controller. Given the fact that I haven't read your code, and you haven't explained what are you trying to accomplish I can't give you further assistance. What

Re: Stats Question

2008-04-09 Thread Adam Royle
If you only need the stats for your own interests, then I suggest you use some pre-made stats package. Mint is pretty good in this regard, all you need to do is install it on your server and add a javascript link in your layout. You can also creating your own stats plugins if you want to track

database configuration on domain

2008-04-09 Thread Fabian
I'm getting this warnings: Warning: mysql_connect(): Can't connect to MySQL server on 'montana- realty-co.com' (111) in /home/content/b/e/n/benjimecutchen/html/cake/ libs/model/dbo/dbo_mysql.php on line 100 Warning: mysql_select_db(): supplied argument is not a valid MySQL- Link resource in

Re: ACL: ACOs inherit permission settings backwards?

2008-04-09 Thread David Zentgraf
Thanks aranworld, saw your message just now. I think the use case is when you're not using groups, and you have a lot of children. In that case it's a lot easier to generally allow access to the parent, but deny access to a few selected children, for example. Additionally it's just expected

Re: cache ignores prefix (after #6323 fix)

2008-04-09 Thread Gwoo
Check the test cases. Add some for your situation. If the tests pass for you then something else is messing with the prefix. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

Helpers Callbacks

2008-04-09 Thread Renan Gonçalves
Hello all! I'm looking at helpers and saw callbacks that won't used. The callbaks is: beforeLayout and afterLayout. And I wanna know ... Theese callback will be used? Thanks! -- Renan Gonçalves - Software Engineer Cell Phone: +55 11 8633 6018 MSN: [EMAIL PROTECTED] São Paulo - SP/Brazil

Re: ACL: ACOs inherit permission settings backwards?

2008-04-09 Thread aranworld
Thanks for the clarification. That does make sense to me. I didn't notice the problem, because I am using the following in my app_controller.php to solve the same problem. I will admit is not the most elegant solution, but it does work: function beforeFilter() { $this-Auth-allowedActions

  1   2   >