Re: Inflection Problem with word Analyses... expects model AnalyAsis

2006-11-08 Thread meek
Do I need to customize my Inflections.php file to make this work or is this a bug that should be addressed? I'm using version 1.1.10.3825. Thanks I got the same result. The following in /app/config/inflections.php solved it: $irregularPlural = array('salesanalysis' = 'salesanalyses'); I

How to make localhost/username/add?

2006-11-08 Thread Eric
Hi, I know how to do like localhost/eric. But How Can I make fuction add( ) works for localhost/eric/add. Cause I should pass the param to the add function, i think --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Scaffolding's data?

2006-11-08 Thread Valeron
Hi all, when I'm scaffolding, the information from belongsTo is populated and a select box is provided as well, The information is selected with the following SQL statement with scaffolding SELECT `RawMaterialsCategory`.`idxRawMaterialsCategory`, `RawMaterialsCategory`.`Code`,

Re: No mod_rewrite on *nix host

2006-11-08 Thread Troy Schmidt
Depends on what kind of host you have. Some of them that isn't enough and you have to also delete the .htaccess files (since it reads them just doesn't honor). Also, I have one (netfirms) where I have to explicitly tell it the BASE_URL since it runs PHP in some weird CGI mode that doesn't

Re: Caching not working

2006-11-08 Thread Troy Schmidt
So is your caching set for the view that is calling the img src or the view that is called by img src? Also, since you are getting the results out of database shouldn't you be using query caching to achieve your result? I am no view caching expert. On Nov 7, 12:39 pm, Kesher [EMAIL PROTECTED]

Re: How to make localhost/username/add?

2006-11-08 Thread Grant Cox
I recommend you work through http://manual.cakephp.org/appendix/blog_tutorial , a lot of these basic questions will be answered for you. If you have a function add() in your eric controller, you can go to localhost/eric/add . In that function look for the existance of $this-data - whether a

Re: User Authentication and User Management

2006-11-08 Thread Ismael S. Kafeltz
I have the same problem that you. I opted to use ACM because othAuth has no documentation, examples, tutorials for you learn it. ACM is very easy to use and for my needs. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Debugging SQL

2006-11-08 Thread floepi
Hi, i looked through various discussions about the cake sql debugging but could not really work out how to do this yet. Can someone please tell me step by step what i need to do so i can see the SQL statement and the error. I try to save something and Cake does not tell me anything why it does

Re: Debugging SQL

2006-11-08 Thread Bert Van den Brande
in core.php put the debug level to 1 or 2 ? On 11/8/06, floepi [EMAIL PROTECTED] wrote: Hi, i looked through various discussions about the cake sql debugging but could not really work out how to do this yet. Can someone please tell me step by step what i need to do so i can see the SQL

Re: How to make localhost/username/add?

2006-11-08 Thread Eric
I got it! Answer by myself 1. config the routes.php add $Route-connect('/*/add/*', array('controller' = 'users', 'action'= 'add')); 2. add new function in the users_controller.php function add($username) { $user = $this-User-findByUsername($username); $this-set('user',

Re: more validate options

2006-11-08 Thread rubo77
i have some now: define('VALID_TELEPHONE', '/^[\(\+0][\/\(\)0-9 \-]+$/'); define('VALID_TELEPHONE_OR_EMPTY', '/^$|^[\(\+0][\/\(\)0-9 \-]+$/'); define('VALID_EMAIL_OR_EMPTY',

Re: Debugging SQL

2006-11-08 Thread floepi
Aarrgh that was easy. I was looking all over the place but not there. Cheers Phil On Nov 8, 1:18 pm, Bert Van den Brande [EMAIL PROTECTED] wrote: in core.php put the debug level to 1 or 2 ? On 11/8/06, floepi [EMAIL PROTECTED] wrote: Hi, i looked through various discussions about

Re: User Authentication and User Management

2006-11-08 Thread Penfold
I am currently working on a project that requires maximum flexiblity for user management so ACM is a no go ( i need users in multipul groups and groups in multipul groups) i am willing to share what i have done so far, othauth is not the best place to start as very complicated and no

Re: User Authentication and User Management

2006-11-08 Thread [EMAIL PROTECTED]
I didn't see ACM when I was looking through cakeForge. I will definitely check it out. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Controller calling an other controller?

2006-11-08 Thread realien
Does someone have an example of 1 controller calling another? I have a controller that gets meta data keys from a database, this is a utility funciton that is used by other controllers, I'm was under the assumption that the $uses variable is just for including additional models in your

Re: Controller calling an other controller?

2006-11-08 Thread Jon Bennett
Does someone have an example of 1 controller calling another? you'll be wanting 'requestAction' sir. Bascially, you call the full url from a controller or view, and the calls the method and returns the result, eg: // tests_controller function getData () { return $this-Test-findAll (); }

RE: Controller calling an other controller?

2006-11-08 Thread Grant Davies
Thankyou, for some reason I'd interpreted the request action as a way to access another view and not just the action of a controller, thanks for the clarification. Grant -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jon Bennett Sent:

Re: Web services, xmlrpc, help!

2006-11-08 Thread Synchro
On Nov 7, 4:10 pm, Chris Hartjes [EMAIL PROTECTED] wrote: First of all, are you using any XMLRPC or XML helpers? I've never used them so that could be causing the problem No. Secondly, the correct call to the action you specified above should be: /things/xmlrpc_doSomething Because you

Re: How to use $ajax-sortable and update in a db?

2006-11-08 Thread jmn2k1
Here you have more info about the parameters and other things.. http://wiki.script.aculo.us/scriptaculous/show/Sortable.create Basically you have to do something like: ul id=items li id=item_1Item/li li id=item_4Other Item/li /ul Where 1, 4 are (in this example) the ids of the items, and then

Re: Web services, xmlrpc, help!

2006-11-08 Thread Synchro
That looks great, how it should be! One thing I'm not clear on from an architectural point of view is to use that it looks like my controllers have to inherit from the Rpc5AppController and model, which implies to me that those controllers become dedicated to rpc calls. I can't see how to

Re: dynamic table names in wordpress

2006-11-08 Thread mozey
still not having any luck with this guys, any input? --~--~-~--~~~---~--~~ 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,

Re: User Authentication and User Management

2006-11-08 Thread Ismael S. Kafeltz
Agreed, it is important to know this because it can affect your choice over ACM. And save days and hours. Thanks Penfold to remember this. Penfold escreveu: I am currently working on a project that requires maximum flexiblity for user management so ACM is a no go ( i need users in multipul

Re: dynamic table names in wordpress

2006-11-08 Thread Chris Hartjes
On 11/8/06, mozey [EMAIL PROTECTED] wrote: still not having any luck with this guys, any input? You won't be able to use the built-in db model stuff if you have constantly changing table names. That would require changes to the model classes themselves, which is likely a topic way beyond

Ant and SVN

2006-11-08 Thread hydra12
I know this is off topic, but please bear with me. Enough people have asked questions about this in the past that someone might be interested. I'm using eclipse and svn for my development. I'm playing with ant, too. I'm trying to use svnant to make my svn task, but I can't get it to work. It

Re: Ant and SVN

2006-11-08 Thread Chris Hartjes
On 11/8/06, hydra12 [EMAIL PROTECTED] wrote: I know this is off topic, but please bear with me. Enough people have asked questions about this in the past that someone might be interested. I'm using eclipse and svn for my development. I'm playing with ant, too. I'm trying to use svnant

Re: How TO make Sortable.serialize works?

2006-11-08 Thread majna
This works for me: Controller: menus ,action sort() if(isset($this-data['Menu']['sorted'])) { $this-layout='ajax'; $sorted = $this-data['Menu']['sorted']; $sorted = str_replace('sortable[]', ,$sorted);

Re: No mod_rewrite on *nix host

2006-11-08 Thread Mike
Troy, I checked the phpinfo() and there was no mod_rewrite. Do the .htaccess files cause a problem if there is no mod_rewrite? AKAL should i delete them? Mike Troy Schmidt wrote: Depends on what kind of host you have. Some of them that isn't enough and you have to also delete the

Re: count(*) in custom query

2006-11-08 Thread [EMAIL PROTECTED]
I'm wondering if anyone has any idea as to the reason for this little annoyance, as it's cropping up for me too (when I get a COUNT() in a custom query within cake)? Though I don't recall it in previous builds of cake and wonder if its due to something new? -Ryan Kevin Uni wrote: hi DJ

Re: User Authentication and User Management

2006-11-08 Thread [EMAIL PROTECTED]
There is a article on bakery http://bakery.cakephp.org/articles/view/128 which is a very good starting point. Actually i'm in the process of making the authentication system more generic, and i'm also working on some simple stuff to be combined with it. But i'm talking more about things like

Re: count(*) in custom query

2006-11-08 Thread nate
See if using findCount makes a difference. --~--~-~--~~~---~--~~ 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

Multiple associations question

2006-11-08 Thread mutabor
Hi guys! Here is my database scheme: http://shakuro.com/db.jpg There you can see that there are a lof of multiple associations. I've been out of cake community for a while, but as far as I know cake has some problems with multiple assosiations. The question is: Will I be able to use Cake

Re: Ant and SVN

2006-11-08 Thread hydra12
Thanks for the links. I'd already tried one, but couldn't get it to work. It seems that, no matter where I put the svnant files, ant can't find them. Here's what I have: property name=svnant value=c:\svnant / property name=svnant.jar value=svnant.jar/ property name=svnClientAdapter.jar

Re: Inflection Problem with word Analyses... expects model AnalyAsis

2006-11-08 Thread NOSLOW
That kinda works, but will that cause problems later on because the CamelCase is not correct? It's reporting: Missing Model...No class found for the model Salesanalysis...in file : app\models\salesanalysis.php. I'm concerned that the model filename is salesanalysis instead of the expected

Re: Web services, xmlrpc, help!

2006-11-08 Thread Synchro
On Nov 8, 6:00 pm, Synchro [EMAIL PROTECTED] wrote: A web services page in the manual would go a long way. A bit more careful reading of the config manual page revealed a couple of errors in what I was thinking. Though admin actions like /admin/thing/function get mapped to admin_function(), the

Quest for the holy grail of the cakePHP-Eclipse setups

2006-11-08 Thread Sonic Baker
There has been some talk on the list about the kinds of editors people use for cakePHP development. Some people have mentioned Eclipse (among others) for a good all round IDE. I personally have been using both 'kate' and 'Quanta' (built on top of kate) for my cakePHP development and while I have

Setting a variable for beforeFilter to catch?

2006-11-08 Thread cypher543
I have a one-user blog, so I don't have a big fancy authentication scheme. What I want to do is lock certain actions so that they are only visible if my session is set. Here's what I did... (without the session checks done) In app_controller.php, I defined the beforeFilter() function: ?php

Re: Setting a variable for beforeFilter to catch?

2006-11-08 Thread francky06l
You should store your variable lock into the Session Object (ei : Session-write(), Session-check or read ). When reading just check the existence of the variable and it's value (in beforeFilter)... On Nov 8, 11:14 pm, cypher543 [EMAIL PROTECTED] wrote: I have a one-user blog, so I don't have a

Protect controller actions from outside requests

2006-11-08 Thread Bret Kuhns
I would like to protect a controller action from being directly accessed directly by its URL. And no, I'm not talking about a user authentication system. I have two controllers: Payments and Orders. Payments is used first to save credit card information from the user, then it redirects to the

Re: Protect controller actions from outside requests

2006-11-08 Thread Larry E. Masters aka PhpNut
Already covered this in the group before...if($this-params['requested'] === true){//do your thing here}-- /*** @author Larry E. Masters* @var string $userName* @param string $realName * @returns string aka PhpNut* @accesspublic*/ --~--~-~--~~~---~--~~ You received

Re: Protect controller actions from outside requests

2006-11-08 Thread Bret Kuhns
@PhpNut Thanks for the quick reply. I tried several queries in the group and on google looking for what I needed and couldn't find a relevant solution (almost all results were about user authentication, othAuth, rdSimpleAuth...). I suppose it helps if you know exactly what to search for, but I

Re: Protect controller actions from outside requests

2006-11-08 Thread Bret Kuhns
@PhpNut The code snippet you gave me didn't work for me. I searched around and found this change ticket: https://trac.cakephp.org/changeset/3783/ . From the looks of the code, the 'requested' key is set to 1, not a boolean. I changed my condition operator to == so that PHP would attempt to cast

Re: Setting a variable for beforeFilter to catch?

2006-11-08 Thread cypher543
Sorry if I wasn't clear on what I wanted... $this-locked is defined so that I can use it in beforeFilter to check if an action is supposed to be accessible by guests or admins. If beforeFilter sees that $this-locked is true, then it will later check if the admin session is created (which I

Anyone have pagination working in 1.2.xx?

2006-11-08 Thread Darian Anthony Patrick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just curious? I'm having a bit of trouble, but I'm not sure if it's because the code is just not ready, or if I'm doing something wrong. Thanks, Darian - -- Darian Anthony Patrick [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG

Re: Bake and new CakePHP 1.1.10.3825

2006-11-08 Thread james revillini
I've done as suggested here, but bake doesn't seem to like it when I specify the app directory that I've been working with all along. Here's how things go : C:\website\mango\cake\scriptsphp bake.php -project C:\website\mango\app ___ __ _ _ ___ __ _ _ __ __ __ _ _ ___ |

Re: Bake and new CakePHP 1.1.10.3825

2006-11-08 Thread gwoo
bake.php -app Try using -app with an existing application. Using -project means build a new application directory. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

Re: Bake and new CakePHP 1.1.10.3825

2006-11-08 Thread Shunro Dozono
Hello, It seems that your current directory of command prompt seems affect the bake.php. Insted of: C:\website\mango\cake\scriptsphp bake.php -project testapp Try: C:\website\mango\cakephp c:\website\mango\cake\scripts\bake.php -project testapp Regards, Shun Dozono 2006/11/9, james

Re: Bake and new CakePHP 1.1.10.3825

2006-11-08 Thread Shunro Dozono
It seems that your current directory of command prompt affects the bake.php. Insted of: C:\website\mango\cake\scriptsphp bake.php -project testapp Try: C:\website\mango\cakephp c:\website\mango\cake\scripts\bake.php -app testapp Shun Dozono

Re: Bake and new CakePHP 1.1.10.3825

2006-11-08 Thread james revillini
That worked! Thanks very much. On Nov 8, 7:32 pm, gwoo [EMAIL PROTECTED] wrote: bake.php -appTry using -app with an existing application. Using -project means build a new application directory. --~--~-~--~~~---~--~~ You received this message because you

Re: Bake and new CakePHP 1.1.10.3825

2006-11-08 Thread james revillini
Hi again - it turns out that there may be more problems. I created Models for a few new tables in the database and verified that the files were in the models directory in C:\website\mango\app\, but after I created Controllers for all of the same models, I checked the controllers directory and

Re: Quest for the holy grail of the cakePHP-Eclipse setups

2006-11-08 Thread ajessup
So with Eclipse, I create a project (which creates the '.project' file), maybe bake or copy in my 'app' directory, check it into the repo, delete the whole lot and then check a wc out of the repo again. This seems like and awful waste to me. How do you do it? If you're using subclipse and

Re: Bake and new CakePHP 1.1.10.3825

2006-11-08 Thread james revillini
My bad. But here's a word of advice: don't create a database table called 'controllers' and then build a model for it - it hoses EVERYTHING, including the bake file. i was trying to do a help system with the following tables: controllers, controller_help_articles, help_articles so i could tie

A process question for core developers: how are fixes to 1.x.x.x ported to 1.2.x.x

2006-11-08 Thread Darian Anthony Patrick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ...since 1.2.x.x. is sort of a moving target. In the case of a bugs being found and fixed in 1.x.x.x after 1.2.x.x branched, how are you handling porting those fixes to 1.2.x.x in light of the fact that the pertinent code may have been refactored or

Re: A process question for core developers: how are fixes to 1.x.x.x ported to 1.2.x.x

2006-11-08 Thread Larry E. Masters aka PhpNut
1.2 has not been released.End of discussion-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @accesspublic*/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Anyone have pagination working in 1.2.xx?

2006-11-08 Thread nate
The paginate() method of the controller is working, the helper is not. --~--~-~--~~~---~--~~ 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

Re: Anyone have pagination working in 1.2.xx?

2006-11-08 Thread Larry E. Masters aka PhpNut
Again 1.2 IS NOT RELEASEDOn 11/8/06, nate [EMAIL PROTECTED] wrote: The paginate() method of the controller is working, the helper is not.-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @accesspublic*/

Re: How to use $ajax-sortable and update in a db?

2006-11-08 Thread Eric
Quite Strange...!! It doesn't work div style=height:200px; div style=float:left; h3This is the first list/h3 ul id=firstlist style=height:200px;width:200px; ?php foreach ($topics as $topic): ? li?php echo $topic['Topic']['created'] ?/li ?php endforeach; ? /div /div ? echo $ajax-sortable

Re: User Authentication and User Management

2006-11-08 Thread [EMAIL PROTECTED]
Dieter, that was an excellent article. it. But i'm talking more about things like user registration forms, password change forms, ... I was also referring to stuff like registration forms and password change forms. As you are in the process of making it more generic, please let me know if

Re: User Authentication and User Management

2006-11-08 Thread [EMAIL PROTECTED]
Penfold wrote: I am currently working on a project that requires maximum flexiblity for user management so ACM is a no go ( i need users in multipul groups and groups in multipul groups) Hmm, I couldn't get ACM to work, perhaps ver 1.0 will come with some docs. i am willing to share what

Re: How TO make Sortable.serialize works?

2006-11-08 Thread Eric
Still not very clear. Add a new field called sorted in the Menu table ? right? --~--~-~--~~~---~--~~ 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

access to $HTTP_RAW_POST_DATA

2006-11-08 Thread zheka
Hello I am converting a php script to a cake based one. The original script is getting input from xForm post via $HTTP_RAW_POST_DATA However the cake based script does not see $HTTP_RAW_POST_DATA for some reason even though it runs on the same server. Why would this be happening? . thank you

Re: How to use $ajax-sortable and update in a db?

2006-11-08 Thread Eric
Where order is an action in your controller where you can do something like: if (isset($_POST['items'])) { $sortableitems = $_POST['items']; $i = 0; foreach ($sortableitems as $item) { $this-UsefulLink-id =

Re: access to $HTTP_RAW_POST_DATA

2006-11-08 Thread [EMAIL PROTECTED]
try this: $HTTP_RAW_POST_DATA = file_get_contents('php://input'); On Nov 9, 12:17 am, zheka [EMAIL PROTECTED] wrote: Hello I am converting a php script to a cake based one. The original script is getting input from xForm post via $HTTP_RAW_POST_DATA However the cake based script does

Problems connecting to MySQL 4.1 on PHP 5.1.1 using IIS 6

2006-11-08 Thread Matt
I'm currently testing out a site on a server running MySQL 4.1, PHP 5.1.1 and IIS 6 and I'm having problems connecting to the database as I always get the message: Your database configuration file is present. Cake is not able to connect to the database. No other errors show up either on that

Re: Automatic plugin detection

2006-11-08 Thread Dr. Tarique Sani
On 10/31/06, Christian Winther [EMAIL PROTECTED] wrote: plugins/$name/$name_uninstall.phpfile for deactivating the plugin ( removing tables ) We have something very similar in cheesecake photoblog - check out 1.5 Beta 1 from http://cakeforge.org/projects/cheesecake/ and then

Re: Quest for the holy grail of the cakePHP-Eclipse setups

2006-11-08 Thread Adrian Godong
Hi,I'm using Eclipse 3.2.0 + PHP plugin from Eclipse (not PHPEclipse)Local workspace setup is just like your number 1. I will have one cake lib for each project.Source control is using CVS. Currently no problem accessing, updating, or comitting. BTW about test suites, any links on how to use it?