Re: Form with saving of true/false/null

2009-07-30 Thread delocalizer
You sure you want an explicit third option 'no information on the subject'? Wouldn't it be better to just have a radio group with 2 buttons (Yes/No or True/False) with a default value of NULL for that field in your database? Or if you really want to have a third option to force a user to enter

app_controller beforeFilter does not working !

2009-07-30 Thread DatacenterHellas
Hello all :) I'm creating my application and I have a litle problem with AppController. I have create on /app/ folder a file named app_controller.php inside this file I have write this code : ?php class AppController extends Controller { var $helpers = array('Html');

Re: app_controller beforeFilter does not working !

2009-07-30 Thread DatacenterHellas
Ok ! ! ! What I do is to call from the controller beforeFilter action the AppController::beforeFilter(); But I don't know if that is ok or If I have to do something else ! ! ! ? ? ? Thanks a lot :) On 30 Ιούλ, 11:05, DatacenterHellas merianosni...@gmail.com wrote: Hello all :) I'm creating

Re: Vendors handling with js/css script packages without breaking their file structure

2009-07-30 Thread Christian
Okay. Understood. Thanks! It works like all of you suggested to put all files in one directory under webroot (e.g. webroot/js/syntaxhighlighter/) and then use $html-css('../js/syntaxhighlighter/styles/shCore', null, null, false); $javascript-link('syntaxhighlighter/scripts/shCore', false); I

Re: Free Cake Ebook : How to build your own blog from scratch

2009-07-30 Thread Grzegorz Pawlik
It may be free, but not open :P Tried to copy text to google translate, but it seems to be protected ; ( So it's no use for lots of people right now. You probably should have post info about it on Malaysian cakePhp forum instead of teasing with us :P On Jul 29, 1:27 pm, Azril Nazli

Re: Need advice/tips for sending mass emails with CakePHP

2009-07-30 Thread Grzegorz Pawlik
Why using vendor when cake (1.2) have native email component? On Jul 30, 7:05 am, JamesF usaexportexpe...@gmail.com wrote: that's a good start, i am still trying to get a picture of how it will work together. thanks On Jul 29, 11:46 pm, brian bally.z...@gmail.com wrote: On Wed, Jul 29,

Re: app_controller beforeFilter does not working !

2009-07-30 Thread Andreas Derksen
hi, have you declared an beforeFilter() function in your active controller? try to call parent::beforeFilter(); in that function. i hope the pr($this); call is for test purposes only ;) because you dont print anything in your controllers/models greets Andreas DatacenterHellas schrieb: Ok ! !

Re: Free Cake Ebook : How to build your own blog from scratch

2009-07-30 Thread leop
i dont think a lot of people are able to read that - or know the language at all i wonder... why not using ENGLISH in the first place? I can only assume you made this comment to raise some hackles. While we're at it why don't we just abolish German (I assume that's your first language)?

Re: Free Cake Ebook : How to build your own blog from scratch

2009-07-30 Thread Andreas Derksen
hi, well, in comparison to english, its still to less people who understand that language ;) most open source stuff is written in english, to make it available to all. anyway, thanks for that effort, i'd like to read that ebook, but unfortunately i don't understand malay ;) i would appreciate

Re: How to modify the URLs of $paginator-numbers

2009-07-30 Thread jordicakephp
Thanks a lot for your reply, JamesF. :-D I had written this in my routes.php: Router::connect('/countries/france/list', array('controller' = 'france', 'action' = 'list')); Insted of: Router::connect('/countries/france/list/*', array('controller' = 'france', 'action' = 'list')); Regards.

Re: app_controller beforeFilter does not working !

2009-07-30 Thread DatacenterHellas
What I done is AppController::beforeFilter(); Is that incorect ? ? ? What is the deference of the parent::beforeFilter(); The pr($this) is only for test :) Kind regards Merianos Nikos --~--~-~--~~~---~--~~ You received this message because you are subscribed

Form helper to add a * to required fields

2009-07-30 Thread Taff
Hey, there is so much functionality in cakePHP, but how would I go about adding an asterisk (as text) to all required fields? It's seldom you have a form without a required field, so I'm presuming it's possible without hacking into the helper.php. Unfortunately I can't see where. Thanks, Taff

Re: Best way to 'bake' with cake PHP....2 ways I have been told to do it...which is the correct way?

2009-07-30 Thread icc97
I follow this web page: http://www.webdevelopment2.com/cakephp-bake-baking-models-controllers-views-cakephp-12/ go into your cakephp root folder and type cake bake mynewapp On Jul 29, 2:17 pm, David d...@kabaddle.com wrote: Hello, Just a simple question about how you initially bake your

Re: validates() not working on all functions...

2009-07-30 Thread number9
Thanks for the reply, that makes sense. I actually ended up going with a more robust image upload component that has sorted the validation issues. On Jul 28, 11:57 am, delocalizer conrad.leon...@hotmail.com wrote: Are you setting your data to the model in the controller action before

Re: Form helper to add a * to required fields

2009-07-30 Thread euromark (munich)
in my opinion you have to... thats because the logic of your validation rule does not always match the result cake puts in the form fields in the view (adding class required) you can check that out by adding a style to required like background-color: red its pretty messed up some fields are not

Re: Free Cake Ebook : How to build your own blog from scratch

2009-07-30 Thread euromark (munich)
totally agree with andreas posting stuff in your mother tongue in an english forum is just not appropriate how would you feel if everybody starts to use his mother tongue this would be a multiculti whatever group without anybody beeing able to read anything else so no - write in english or post

Re: retrieving data from hasMany configuration

2009-07-30 Thread brian
In addition to what James suggested, you should modify the Comment class: class Comment extends AppModel { var $name = 'Comment'; var $belongsTo = array('User'); } And give the comments table a user_id column (to match the type of users.id). On Thu, Jul 30, 2009 at 1:02 AM,

Re: Free Cake Ebook : How to build your own blog from scratch

2009-07-30 Thread Grzegorz Pawlik
For the record: I'm gr8tful for every publication about cake tipstricks. In most cases 90% of it I.m familiar with, but I like to read it because of this 10% that will be new, suprising, fresh and useful. So there's lots of stufff in english doesn't convince me - I just want to read this one too,

Re: Cakephp multilingual

2009-07-30 Thread Marco
Yannis, I think you are using the translate behavior. Try this everytime user changes language: if (!class_exists('L10n')) { App::import('Core', 'L10n'); } $l10n = new L10n(); $l10n-get($lang); On Jul 29, 8:37 am, Yannis ikasso...@gmail.com wrote: I can see from the  debug output

Re: Using mod_rewrite without .htaccess overhead (quick solution)

2009-07-30 Thread brian
On Thu, Jul 30, 2009 at 1:35 AM, JamesFusaexportexpe...@gmail.com wrote: i would be interested in seeing the gains for this too. only problem is you need access to http.conf which might destroy the portability of your app if you plan to distribute it. still if you are talking about a server

Re: Need advice/tips for sending mass emails with CakePHP

2009-07-30 Thread brian
On Thu, Jul 30, 2009 at 4:36 AM, Grzegorz Pawlikgrzegorzpaw...@gmail.com wrote: Why using vendor when cake (1.2) have native email component? Unlike Cake's EmailComponent, the SwiftMailer package includes a couple of plugins, AntiFlood Throttler, that are meant for use in situations where

Re: app_controller beforeFilter does not working !

2009-07-30 Thread brian
You call it as parent::beforeFilter(), not AppController::beforeFilter(). parent is a keyword that refers to the class that some other class extends. And use parent::beforeFilter() only if the your controller also has a beforeFilter() method. If it does not, AppController's beforeFilter() will

AJAX implementation with cakePHP (jquery preferred)

2009-07-30 Thread matalina
I have a basic application created. I have a list of categories, a list of items that can be part of only one category, and a list of these items. Currently the application requires that you create the list, and then you would add each item to the list through a separate interface. (at least

Re: Using mod_rewrite without .htaccess overhead (quick solution)

2009-07-30 Thread AD7six
On Jul 30, 2:35 pm, brian bally.z...@gmail.com wrote: On Thu, Jul 30, 2009 at 1:35 AM, JamesFusaexportexpe...@gmail.com wrote: i would be interested in seeing the gains for this too. only problem is you need access to http.conf which might destroy the portability of your app if you plan

Send Simple Mail With CakePHP !

2009-07-30 Thread Abraham Boray
Hey Guys I have a Contact form Like this : form action=comments/UserMailToME method=post name=ContactMeBoard id=ContactMeBoard label for=textfieldname/label input type=text name=textfield id=textfield / label for=textfield2e-mail/label input type=text

Counter Cache behavior for HABTM relations

2009-07-30 Thread Luke
Hi I have a HABTM Relationship and was using CounterCache, following the below script: http://bakery.cakephp.org/articles/view/counter-cache-behavior-for-habtm-relations It worked well, till I decided that a user should be able to choose more than 1 Category. Since than the CounterCache is

Re: A sample application for case study

2009-07-30 Thread Mateo
You're right. Looks like a very useful repository. Thank you! On Jul 29, 5:26 pm, Miles J mileswjohn...@gmail.com wrote: http://thechaw.com/projects Didnt look hard enough eh? On Jul 29, 2:33 pm, Mateo elchapolincolor...@gmail.com wrote:   I've looked considerably trying to find a

Re: Send Simple Mail With CakePHP !

2009-07-30 Thread brian
Have a look at this http://bakery.cakephp.org/articles/view/brief-overview-of-the-new-emailcomponent http://www.google.com/search?q=cakephp+email On Thu, Jul 30, 2009 at 10:43 AM, Abraham Borayabrahambo...@gmail.com wrote: Hey Guys I have a Contact form Like this : form

Group arrays, possible with Set?

2009-07-30 Thread Andreas Derksen
Hi! I've got an array with this structure: Array ( [...] [37] = VideoLAN [38] = VideoLAN\Quick Settings [39] = VideoLAN\Quick Settings\Audio [40] = VideoLAN\Quick Settings\Interface [41] = VideoLAN\Quick Settings\Video [...] ) Now i need it to be grouped together like this:

Re: AJAX implementation with cakePHP (jquery preferred)

2009-07-30 Thread JamesF
i just use jquery's .load and and other ajax functions all i do is include jquery in my layout. i personally don't use the ajax helper. it comes down to rendering your ajax data views without a layout, using jquery to load the results. ex. i need to get a list of users. in my view i call

Re: retrieving data from hasMany configuration

2009-07-30 Thread JamesF
seconded On Jul 30, 8:16 am, brian bally.z...@gmail.com wrote: In addition to what James suggested, you should modify the Comment class: class Comment extends AppModel {    var $name = 'Comment';    var $belongsTo = array('User'); } And give the comments table a user_id column (to

Re: Need advice/tips for sending mass emails with CakePHP

2009-07-30 Thread JamesF
i would love to use cakes native email component and whip something up from the shell but it might be like treading water to get it to work for 5000 emails a day. On Jul 30, 8:46 am, brian bally.z...@gmail.com wrote: On Thu, Jul 30, 2009 at 4:36 AM, Grzegorz Pawlikgrzegorzpaw...@gmail.com

Lack of error missing connection

2009-07-30 Thread Giedrius D
Hi, I'd like to notify about a little bug in error reporting. CakePHP reports that theres a Missing Database Table when actually theres Missing Database Connection. To reproduce this create some fake database config and attempt to use some model using that fake config. I tried it on latest 1.2

ACL authorization - record specific authorization

2009-07-30 Thread Phunkk
Hi, For a project I'm implementing its CakePHP ACL-component. I'm making use of the CRUD-authorization. I want to be able to specify rights on a record specific level, but I have a feeling the core component doesn't support this. Therefore I've altered the file /cake/libs/controller/components/

using jquery with cakephp

2009-07-30 Thread jeremy
hai guys, am looking for using jquery with cakephp... i googled a lot but didnt get appropriate tutorials for this can anyone send me links or tutorials of perfroming both the client side and server side validations in cakephp using jquery.. THANZ IN ADVANCE

Re: Vendors handling with js/css script packages without breaking their file structure

2009-07-30 Thread JamesF
you could set up an apache alias to your app/vendors directory at mysite.com/vendors and link to css like this echo $html-css('/vendors/mystyle.css', NULL, NULL, false); same would work for javascript On Jul 30, 4:24 am, Christian christian.lusz...@gmail.com wrote: Okay. Understood. Thanks!

Re: Vendors handling with js/css script packages without breaking their file structure

2009-07-30 Thread JamesF
or ../../vendors/ not sure myself but the point is you could do it this way On Jul 30, 11:25 am, JamesF usaexportexpe...@gmail.com wrote: you could set up an apache alias to your app/vendors directory at mysite.com/vendors and link to css like this echo $html-css('/vendors/mystyle.css',

Re: How to modify the URLs of $paginator-numbers

2009-07-30 Thread JamesF
doh! On Jul 30, 4:52 am, jordicakephp jordicake...@gmail.com wrote: Thanks a lot for your reply, JamesF. :-D I had written this in my routes.php: Router::connect('/countries/france/list', array('controller' = 'france', 'action' = 'list')); Insted of:

is this a bug?

2009-07-30 Thread Martin Radosta
Before posting a ticket let me know your opinion. Here is a test case about the problem. http://bin.cakephp.org/view/622164608 Cake is doing two things bad, but maybe this is the workform. 1) When binded to a hasMany, it adds the id (or primary key) field to the query instead of just doing

Re: Counter Cache behavior for HABTM relations

2009-07-30 Thread Luke
Hi, I just found the solution myself I think, I added foreach ($this-foreignTableIDs[$assocData['className']] as $id) into the updateCounters method and it now updates for every category. Maybe this comes handy for someone. It seem to work and I get no error message anymore.

Re: Need advice/tips for sending mass emails with CakePHP

2009-07-30 Thread JamesF
for anyone following this topic...i found a post with a bit more information: http://forums.devnetwork.net/viewtopic.php?f=52t=68497 basically discussed send bulk emails with swiftmailer via CRON On Jul 30, 11:23 am, JamesF usaexportexpe...@gmail.com wrote: i would love to use cakes native

How to handle non English text searches?

2009-07-30 Thread Martin Westin
Hi, This has been nagging at the back of my head for a long time. I feel like I should be using schema migrations. Especially for one constantly evolving app I work on. But I have not found any way that handles non English text without my interfering with the schema details directly (in MySQL in

Re: afterFind() inconsistencies ?

2009-07-30 Thread Dr. Loboto
Post your controller code. afterFind will be called as much times as much you call find. On Jul 29, 9:38 pm, iFeghali igor.fegh...@gmail.com wrote: anyone ? On 28 jul, 17:31, iFeghali igor.fegh...@gmail.com wrote: Hello All, I found myself stuck for a week in an issue that I would

Re: setFlash and redirect problem

2009-07-30 Thread Dr. Loboto
Error before redirect causes blank page. Turn debug on and look at this error. On Jul 29, 10:29 pm, Eddy Josafat eddyjosa...@gmail.com wrote: I have same problem and I don't use any translation. $this-Session-setFlash('Contraseña modificada', 'notificación');

cake process sequence

2009-07-30 Thread lordG
Hi Guys, Does any know if there is an graph of process flow of how Cake loads itself? This would be really helpful. Thanks. G --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group,

Plural Singular with software

2009-07-30 Thread Manolet Gmail
Hi, im building an application to collect pieces of software. the problem is that software dont have a plural form. i dont know what to do, i know i can create an inflector but... i dont know how to call the array for the foreachs, i mean foreach ($software(plural) as $software(singular) i know

Re: Struggeling with MVC and multiple views

2009-07-30 Thread Dr. Loboto
If you want to render non-default view for an action just call $this- render('my_view_name') in controller explicitly. This way you can have more views then actions. On Jul 5, 8:45 pm, Reinder reindervis...@gmail.com wrote: Thanks for your response, however I don't think this solves the acl

Efficient ways to retrieve data from models with high association depth

2009-07-30 Thread Roel
Hi, I'm using CakePHP for quite some time now and I really love it, but I hadn't come around to make use of the complex association possibilities for models. So I started to play around with them for a personal project I just started. Although the advantages Cake offers are numerous, I stumbled

get the controller from the named argument

2009-07-30 Thread Evert
I have a named argument in my URLs, so it could look like this: /subdomain:www/home /subdomain:forum/topic/23 etc.. now I want that some of those named-arguments go to certain controllers and all the others go the pages-controller but I am a complete noob when it comes to routing. I tried

Re: Building views for an extended HABTM

2009-07-30 Thread DavidH
WooHoo!!! After struggling with this for nearly 2 weeks I've managed to get it working. Oh boy! The pain I've been through trying to sort this out; but I'm so chuffed I got it sorted without anyone responding to the (several) postings I've made on this topic. I'll try to put a blog posting

Re: Efficient ways to retrieve data from models with high association depth

2009-07-30 Thread JamesF
have you tried using Containable behavior? On Jul 30, 12:16 pm, Roel roel@gmail.com wrote: Hi, I'm using CakePHP for quite some time now and I really love it, but I hadn't come around to make use of the complex association possibilities for models. So I started to play around with them

Re: Vendors handling with js/css script packages without breaking their file structure

2009-07-30 Thread Christian
yes, that Apache alias should work, but I wanted to modify in cakephp only. Maybe for the next project I can use this. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group,

Re: Vendors handling with js/css script packages without breaking their file structure

2009-07-30 Thread JamesF
use the .htaccess in your webroot to create the alias then On Jul 30, 1:16 pm, Christian christian.lusz...@gmail.com wrote: yes, that Apache alias should work, but I wanted to modify in cakephp only. Maybe for the next project I can use this. Thanks!

Re: Plural Singular with software

2009-07-30 Thread euromark (munich)
foreach ($software as $sware) {} would work as well as just foreach ($software as $s) {} etc be creative :) the scope of this var is so small that you should not bother too much here On 30 Jul., 17:34, Manolet Gmail mano...@gmail.com wrote: Hi, im building an application to collect pieces of

Re: Free Cake Ebook : How to build your own blog from scratch

2009-07-30 Thread JamesF
(source: Wikipedia) not a source On Jul 30, 4:43 am, leop ponton@gmail.com wrote: i dont think a lot of people are able to read that - or know the language at all i wonder... why not using ENGLISH in the first place? I can only assume you made this comment to raise some hackles.

how to set CHECKED with form helper radio

2009-07-30 Thread leafchild
If I use form helper to create radio button, how can I set CHECKED? For example, if I do like this, where I can set CHECKED if I want to? $radio_btn = array(1=Yes, 0=No); echo $form-radio(Test.test, $radio_btn );

Re: Send Simple Mail With CakePHP !

2009-07-30 Thread Abraham Boray
Well that doesn't help me out , i'm new in CakePHP . And I'd like to see a very very simple example to start with =) I searched the web ,but without getting the point HOW TO SEND MAIL WITH CAKEPHP' Hope u undestand me guys Regards Abraham On Jul 30, 3:10 pm, brian bally.z...@gmail.com wrote:

Re: Send Simple Mail With CakePHP !

2009-07-30 Thread Kyle Decot
That's about as easy as you're going to get. The Email Component is pretty straightforward. If you're looking for a really easy way to send simple emails, just use the PHP mail() function. http://www.php.net/manual/en/function.mail.php On Jul 30, 1:27 pm, Abraham Boray abrahambo...@gmail.com

Re: Efficient ways to retrieve data from models with high association depth

2009-07-30 Thread Roel
I've tried Containable but it doesn't help lower the number of queries made. In fact in some circumstances Containable creates unnecessary queries (https://trac.cakephp.org/ticket/5864). To be clear, I have no trouble getting my data. It's just, from a perspective of someone who handwritten his

Re: Vendors handling with js/css script packages without breaking their file structure

2009-07-30 Thread AD7six
On Jul 30, 12:07 am, Miles J mileswjohn...@gmail.com wrote: You cant link to css/js in vendors. You have to place it in the webroot js/css folders. based on what are you stating that? --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Efficient ways to retrieve data from models with high association depth

2009-07-30 Thread AD7six
On Jul 30, 9:00 pm, Roel roel@gmail.com wrote: I've tried Containable but it doesn't help lower the number of queries made. In fact in some circumstances Containable creates unnecessary queries (https://trac.cakephp.org/ticket/5864). To be clear, I have no trouble getting my data. It's

Re: how to set CHECKED with form helper radio

2009-07-30 Thread Miles J
Do not use $form-radio(), you should be using $form-input(). $form-input('Test.test', array('type' = 'checkbox', 'options' = $radio_btn, 'value' = 1)); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group.

Re: cake process sequence

2009-07-30 Thread Andreas
http://book.cakephp.org/view/21/A-Typical-CakePHP-Request greets Andreas lordG schrieb: Hi Guys, Does any know if there is an graph of process flow of how Cake loads itself? This would be really helpful. Thanks. G --~--~-~--~~~---~--~~ You received

Adding an Admin Section/Help with the Acl App in the Cookbook

2009-07-30 Thread Sarah
I would like to add an admin portion to my app. So far I have followed the Acl example in the Cookbook most of the way. What I don't is how the aros work. If I create a user, how do I (or even can I) choose whether this new user is an admin or a regular user? Or do I have to create a second

executing no realtionship tables

2009-07-30 Thread abhishekh
Hi, I have some static tables in my database. they have no relationship with any other tables. That table store read only data. How do I fetch data from that table, without writing any custom query, from any model.? -- View this message in context:

HABTM search custom query

2009-07-30 Thread cookiebaker
Hi, This is my first post and please forgive me if this question is already answered. I building a business directory and I encounter a problem when searching using paginate. This is my simplified database design sections ( id, name) categories_sections(category_id, section_id) categories (id,

Re: Efficient ways to retrieve data from models with high association depth

2009-07-30 Thread Roel
Ah I like your idea of encapsulating the two finds in a model method. That seems much better than putting the logic in the controller. Thanks. Could you please elaborate on the Linkable (and OneQuery) behavior? Anything with regard to optimizing database performance for related models seems

Execute a MS SQL stored procedure and receive values from Output parameter, How?

2009-07-30 Thread zonium
Any one could give me clue on how to call or execute a MS SQL stored procedure, passing parameters to it and receiving a value from it using Output parameters? I successfully use query() to invoke stored procedures and get result set but I am not sure how to get the value returns via Output

Re: get the controller from the named argument

2009-07-30 Thread Roel
Hi, I'm not 100% sure but I think the urls you want to use aren't going to work because of the slashes in the named argument. Now the named argument 'subdomain' will be 'www' and 'home' will be passed as an other variable. Maybe you could do something like this: url: /subdomain/www/home

Re: Routing /group/person/post instead of /post/id

2009-07-30 Thread Roel
Well the link provided should offer enough information. One thing you could do is (out of the top of my head): Router::connect('/:group', array('controller' = 'groups', 'action' = 'view')); Router::connect('/:group/:user', array('controller' = 'users', 'action' = 'view'));

CakePHP tests execution with phing or any other build tool?

2009-07-30 Thread Abhimanyu Grover
I've created build process for one of our project and now I want to add some tests to it, for verification of code. Command line integration is easy, but I couldn't find out the way where build tool will know if tests were passed or failed. Anyone doing this already? Thanks

Re: executing no realtionship tables

2009-07-30 Thread JamesF
you still should set up a Model for your table. there are a number of methods for working with your data, like var $uses, bindModel, etc this should get you started: http://book.cakephp.org/view/86/Creating-and-Destroying-Associations-on-the-Fly On Jul 30, 4:22 pm, abhishekh timba...@gmail.com

Auth Component

2009-07-30 Thread pete123456
Hi, i've added var $components = array('Auth'); to my AppController. Now i need to login on every single page, is there a way to remove the Authentication within certain controllers? thanks pete -- View this message in context: http://www.nabble.com/Auth-Component-tp24749664p24749664.html

Re: Auth Component

2009-07-30 Thread brian
class SomeController extends AppController { function beforeFilter() { parent::beforeFilter(); $this-Auth-allowedActions = array('someAction', 'someOtherAction'); } On Thu, Jul 30, 2009 at 9:10 PM,

Re: Auth Component

2009-07-30 Thread Miles J
No you should use allow(). http://book.cakephp.org/view/563/Setting-Auth-Component-Variables --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: Free Cake Ebook : How to build your own blog from scratch

2009-07-30 Thread j0n4s.h4rtm...@googlemail.com
Can't you all be a little nicer towards each other? :/ Its great to have non-English tutorials around. There is not non- English group. It would make sense to prefix your initial posting with [lang] or [lang-LANG] - that way it won't disturb others. I mostly disagree with euromark. One thing he

Re: Auth Component

2009-07-30 Thread brian
True, but only if you pass zero arguements or '*'. I'd forgotten about that. Otherwise, it amounts to the same thing. function allow() { $args = func_get_args(); if (empty($args) || $args == array('*')) { $this-allowedActions = $this-_methods; } else {

Re: Auth Component

2009-07-30 Thread pete123456
thanks that seems to work, no i run into another issue. on my UsersController. the login form shows up but when i try to login i always get the message username/password correct. $someone['User']['password'] has the hashpassword but its still not working. any hints? thanks function login() {

capital letters for models

2009-07-30 Thread pete123456
hi, i have database tables with capital letters. is it possible to use them? whenever i try to use USER cake turns it into u_s_e_r. is there a way to avoid that? thanks pete -- View this message in context: http://www.nabble.com/capital-letters-for-models-tp24750294p24750294.html Sent from

Re: capital letters for models

2009-07-30 Thread Sam Sherlock
in the model var $useTable = 'USER'; http://book.cakephp.org/view/436/useTable - S 2009/7/31 pete123456 lumot...@gmail.com hi, i have database tables with capital letters. is it possible to use them? whenever i try to use USER cake turns it into u_s_e_r. is there a way to avoid that?

EmailComponent DomainKeys - SPF Records - Not Working -Solution-

2009-07-30 Thread JamesF
Hey all I just wanted to share how i got DomainKeys and SPF records to work with CakePHP's EmailComponent. The first prerequisite was to obviously enable SPF record and DomainKeys from cpanel. (actually i used /usr/local/cpanel/bin/install_domain_keys_installer myusername (from bash shell))

Re: HABTM search custom query

2009-07-30 Thread JamesF
you need to set the conditions for your query in the $paginate variable. $this-paginate = array('whatever models and conditions array') http://book.cakephp.org/view/249/Custom-Query-Pagination On Jul 30, 4:48 pm, cookiebaker rsujee...@gmail.com wrote: Hi,  This is my first post and please