Re: User Authentication and User Management

2006-11-09 Thread AD7six
Hi all, What /exactly/ is the scope being discussed..? The easiest way to make something not generic/reusable is to make it do more than one thing. On Nov 8, 4:25 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Wouldn't it be nice... if we had a cake authentication component (like othAuth 0.5)

Re: access to $HTTP_RAW_POST_DATA

2006-11-09 Thread chwagssd
I found this at http://www.phpbuilder.com/board/showthread.php?t=10304087 , hope it helps. -- From the user comments in the PHP manual for predefined variables where $HTTP_RAW_POST_DATA is discussed. It should be noted that

Re: Problems connecting to MySQL 4.1 on PHP 5.1.1 using IIS 6

2006-11-09 Thread chwagssd
Hate to ask a simple question, but perhaps it will help. Did you make sure that your database host was localhost? Or could you perhaps use your local ip like 192.181.1.* ? Let us know what you are putting for your database host. --~--~-~--~~~---~--~~ You

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

2006-11-09 Thread f.
Hi, Should I creat a field called order in my, such as topics table? Yes, you should. What worked for me: In my view, I have a div with the sortable items: div id=sortlist ?php foreach ($data as $data): ? div id=artdiv_?php echo $data['Article']['id']; ? class=sortablediv

Re: Ant and SVN

2006-11-09 Thread teemow
i'm using the cli client in ant: target name=svn description= echo message=Export the new application... / exec executable=svn arg line=export -q ${SVN_URL} ${APP_DIR}/ /exec echo message=Done! / /target

Re: Setting a variable for beforeFilter to catch?

2006-11-09 Thread Ismael S. Kafeltz
Cypher, i think you are right. This should work. I guess the problem is that you are *extends* the wrong class. Did you alter the /libs/controllers/app_control.php file? Or you created a new one in another place? --~--~-~--~~~---~--~~ You received this message

Re: User Authentication and User Management

2006-11-09 Thread Ismael S. Kafeltz
It is possible that you are suffering 2 problems: One solution is here: http://groups.google.com/group/cake-php/browse_thread/thread/f19fe8d0eecabadb/227f8de5ff37a5ad?lnk=gstq=acmrnum=3#227f8de5ff37a5ad Second i discovery my self using Beyond Compare, the file db_acl.sql whitch contain sql

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

2006-11-09 Thread Bert Van den Brande
I use the Zend Eclipse ( http://www.zend.com/phpide ). Since I prefer not to have 1 shared Cake framework for all my projects I haven't really tested the possibility of defining the Cake framework as a project and then making my projects dependent on the Cake-project. But I've seen some tutorial

Re: Setting a variable for beforeFilter to catch?

2006-11-09 Thread Bert Van den Brande
I think defining locked as a class instance var inside AppController should solve the warning ? On 11/9/06, Ismael S. Kafeltz [EMAIL PROTECTED] wrote: Cypher, i think you are right. This should work. I guess the problem is that you are *extends* the wrong class. Did you alter the

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

2006-11-09 Thread Kjell Bublitz
I've tried to get a perfect plugin-set for eclipse and i was focused on having JSEclipse included, but unfortunatly the CSS support is rather poor on eclipse (there was a really good plugin but seems to be discontinued). I have tried to use the PHPEclipse but the code completion, especially how it

Re: Setting a variable for beforeFilter to catch?

2006-11-09 Thread themanfrombucharest
If I understood your explanation right then this is what happens: the beforeFilter() method gets called before your action method so $this-locked isn't set yet! you could try to have a special class var for your controller that stores the locked actions: class EntriesController extends

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

2006-11-09 Thread Eric
Thanks for your patient! BUT i am confused where should I put the submit_sort? Creat a new js file? or PUT them in the index.thtml? I was created a new function in my controlloer called submit_sort( ), and paste your code. It was wrongl THanks. Asking so silly question. f. wrote: Hi,

Baking unit tests does not use inflections?

2006-11-09 Thread Synchro
I noticed while baking a classic 'status' model, that it creates tests for 'statu', even though I have entries filled in for status = statuses in several places in inflections.php (and the model baking itself seems to use it). Is this a bug in bake?

Re: Problems connecting to MySQL 4.1 on PHP 5.1.1 using IIS 6

2006-11-09 Thread mariano.iglesias
I'm sorry but this is completely out of scope for the purpose of this group. [EMAIL PROTECTED] is for handling messages *REGARDING* CakePHP development, not just general PHP. There are other groups for that. Furthermore, a very basic google search would yield results:

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

2006-11-09 Thread f.
BUT i am confused where should I put the submit_sort? Creat a new js file? or PUT them in the index.thtml? I was created a new function in my controlloer called submit_sort( ), and paste your code. It was wrongl I put in my view (note the wrapping script) It is plain Javascript. There might

Sites Powered by CakePHP

2006-11-09 Thread Mandy
Hi, I haven't been able to find a page on cakephp.org that lists all the sites powered by cakephp. I believe in this framework and use it for a lot of my projects, but some of my clients want to know the biggest applications that this framework is supporting / capable of supporting. For their

Re: Problems connecting to MySQL 4.1 on PHP 5.1.1 using IIS 6

2006-11-09 Thread Matt
Database host is set as localhost, exactly the same setting as used in the when doing vanilla mysql_connect which works fine. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group,

Re: Sites Powered by CakePHP

2006-11-09 Thread nate
Here are a couple that I know of: http://www.pewterreport.com/ http://villagevoice.com/bestof/2006/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Ant and SVN

2006-11-09 Thread hydra12
That worked great! Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: access to $HTTP_RAW_POST_DATA

2006-11-09 Thread zheka
this worked. thank you very much --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL

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

2006-11-09 Thread hydra12
I'm using Eclipse SDK 3.1.2 with PHPEclipse 1.1.8 and Subclipse 1.0.3, and I'm playing with ant integration. Here's how my setup works right now: My workspace is at c:\web\projects. Inside c:\web\projects, I have a cake folder with my default cake install. I made it a project just so I could

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

2006-11-09 Thread Adrian Godong
I just tried your link and it seems that the PHP IDE plugin hosted on eclipse.org IS the Zend PHP IDE for Eclipse. I'm sorry for the confusion created from my previous mail. -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bert Van den Brande

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

2006-11-09 Thread purepear
Damn...i did it... i was playing with $ajax-sortable('items',array('url' = '/items/order')) ... for example I use firebug to catch the request - the parameters are wrong... it seems that they are not in UTF-8. The ajax helper generates js that prints parameters:sortable.serialize('items')

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

2006-11-09 Thread purepear
So... in short : ___ VIEW ( index.thtml ) __ ul id=items ?foreach($items as $item){? li id=item_?= $item['Item']['id']??= $item['Item']['title']?/li ?}? /ul ?= $ajax-sortable('items',array('onUpdate' = function(t){new Ajax.Request( '/items/order',

Default controller?

2006-11-09 Thread Erich C. Beyrent
Silly newbie question here. I have followed the instructions in the manual to set up a default index page, with a new default.thtml layout, which echoes $content_for_layout. What I would like to know is where does $content_for_layout get set? Is there a default controller that gets called

login/logout - module

2006-11-09 Thread dme69
Hello all, I'm quite new to cakephp and i want to know if there is a module to add a login/logout function tp my application ? Thanks for your help. Dominique. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Default controller?

2006-11-09 Thread John David Anderson (_psychic_)
On Nov 9, 2006, at 10:00 AM, Erich C. Beyrent wrote: Silly newbie question here. I have followed the instructions in the manual to set up a default index page, with a new default.thtml layout, which echoes $content_for_layout. What I would like to know is where does

Re: Sites Powered by CakePHP

2006-11-09 Thread Mikee Freedom
There is a list of sites in the wiki somewhere as well. mikee On 10/11/06, nate [EMAIL PROTECTED] wrote: Here are a couple that I know of: http://www.pewterreport.com/ http://villagevoice.com/bestof/2006/ --~--~-~--~~~---~--~~ You received this message

Re: A strange but very critical bug in my app using cake ajax

2006-11-09 Thread PD
AD7six, Thanks for your response. I checked the code. I am still not able to solve this. Because this is happening when I edit a category also. If, as you said, my existing category is being overwritten, then while editing, I should end up in 2 categories with the same name. But what happens is

Re: login/logout - module

2006-11-09 Thread mariano.iglesias
Dominique, This topic has been covered several times on this group. Try searching for authentication, login, all words related. For example: http://groups.google.com/group/cake-php/search?group=cake-phpq=authenticationqt_g=1 You will see it yields quite a number of related topics. Allways try

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

2006-11-09 Thread Petr Vytlačil
I tested your code but it isnt go. Ther is my code: -- SQL Table: === name_tabel: section id: int name: varchar position: int Section Model: === ?php class Section extends AppModel { var $name =

making cake sql-function-aware?

2006-11-09 Thread sbarre
I've been digging around in the archives with searches and I've come across a few people who have this problem, namely dealing with the CakePHP saving routines that aren't DB-keyword-aware.. By this I mean the quoting of NULL and the inability to use functions like PASSWORD() and other database

Re: making cake sql-function-aware?

2006-11-09 Thread Chris Hartjes
On 11/9/06, sbarre [EMAIL PROTECTED] wrote: I've been digging around in the archives with searches and I've come across a few people who have this problem, namely dealing with the CakePHP saving routines that aren't DB-keyword-aware.. By this I mean the quoting of NULL and the inability to

Re: login/logout - module

2006-11-09 Thread dme69
Thanks for your answer and ... Sorry. On 9 nov, 21:25, mariano.iglesias [EMAIL PROTECTED] wrote: Dominique, This topic has been covered several times on this group. Try searching for authentication, login, all words related. For example:

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

2006-11-09 Thread Petr Vytlačil
One question, how I can do sorting in two dimensions. Now its go only in vertical dimension. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

RE: login/logout - module

2006-11-09 Thread Mariano Iglesias
No problem. Glad to be of assistance. -MI -Mensaje original- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de dme69 Enviado el: Jueves, 09 de Noviembre de 2006 06:15 p.m. Para: Cake PHP Asunto: Re: login/logout - module Thanks for your answer and ... Sorry.

Re: dynamic table names in wordpress

2006-11-09 Thread mozey
unfortunat. But, it sure did help. thank you. --~--~-~--~~~---~--~~ 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

[noobie] generateList()

2006-11-09 Thread Christoph
Ok, so I figured out how to generate a SELECT list using different fields, other than the id, as the key = value pair. But I still have some issues. * Is it possible to use multiple fields to make up the value of the select box? Such that it would come out looking something like option

Re: dynamic table names in wordpress

2006-11-09 Thread [EMAIL PROTECTED]
HmmCan't he change the $useTable variable to reflect the name of the table he is working with? Or does that var have to be set before the class is loaded? On Nov 9, 5:08 pm, mozey [EMAIL PROTECTED] wrote: unfortunat. But, it sure did help. thank you.

Re: Default controller?

2006-11-09 Thread Christoph
What's the best way to accomplish this?I'd stick that sort of stuff in AppController (/app/ app_controller.php) as class variables or methods, or in /app/config/ bootstrap.php. What's the controller that's using the view webroot/views/pages/home.thtml ? There are other models/controllers

Re: Sites Powered by CakePHP

2006-11-09 Thread emiliano
Search in google Powered by CakePHP On 9 nov, 15:25, Mikee Freedom [EMAIL PROTECTED] wrote: There is a list of sites in the wiki somewhere as well. mikee On 10/11/06, nate [EMAIL PROTECTED] wrote: Here are a couple that I know of: http://www.pewterreport.com/

Re: Problems connecting to MySQL 4.1 on PHP 5.1.1 using IIS 6

2006-11-09 Thread Matt
Disregard this thread, the cause of the problem was a small typo. --~--~-~--~~~---~--~~ 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

Why so slow???

2006-11-09 Thread [EMAIL PROTECTED]
Why does it sometimes take 12+ hours for a post to show up in a discussion? And other times (rarely) it shows up within minutes. sc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

Re: dynamic table names in wordpress

2006-11-09 Thread georgeL
wp mu is just changeing the prefix of the tables. you can also set the table prefix inside cake somewhere. maybe this is a possible way --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to

Re: Why so slow???

2006-11-09 Thread Olivier Percebois-Garve
Hi. I also use gmail and never experienced such trouble. Keep in mind that are not receiving the email that you are sending, but the answers. Olivvv [EMAIL PROTECTED] wrote: Why does it sometimes take 12+ hours for a post to show up in a discussion? And other times (rarely) it shows up

How to go about RoR-style Controller::flash

2006-11-09 Thread james revillini
If you haven't seen the RoR Screencast: Creating a blog in 15 minutes with Ruby on Rails, check it out so you have some context to what I'm asking about here: http://media.rubyonrails.org/video/rails_take2_with_sound.mov Now that you've seen how the flash method works within the RoR controller,

Re: How to go about RoR-style Controller::flash

2006-11-09 Thread Samuel DeVore
Actually there is something similarin the controller at the end of the method calling path can do this$this-Session-setFlash('The Role has been saved'); see http://api.cakephp.org/class_session_component.html#75c36eab6a62904b4378978cf72a307e you can also define layouts for thisthen somewhere in

Location of foreign key

2006-11-09 Thread Mikee Freedom
Afternoon all, This may be a stupid question but I would like to know as it would make life somewhat simpler at the end of the day. In a hasOne relationship address: e.g. User hasOne UserDetail Where the users table includes core user information and the user_details table includes additional

Re: How to go about RoR-style Controller::flash

2006-11-09 Thread james revillini
Thanks so much! Hm, I have used bake but did not notice this feature. On Nov 9, 10:12 pm, Samuel DeVore [EMAIL PROTECTED] wrote: Actually there is something similar in the controller at the end of the method calling path can do this $this-Session-setFlash('The Role has been saved');

Re: How to go about RoR-style Controller::flash

2006-11-09 Thread Evan
better yet, you can also override AppController::flash() function flash($message, $redirect_url = null, $key = 'flash') { $this-Session-setFlash($message, 'default', array(), $key); if ($redirect_url != null) { $this-redirect($redirect_url); } }

Best practice for CSS

2006-11-09 Thread leamas
I have just started working on CakePHP for a company and I'm trying to get a hang of it. However, I cannot seem to get a straight answer from my research about implementing my own CSS file. Do I have to overwrite/edit the cake.generic.css file? Or can I redirect the url to the CSS to my own?

Re: User Authentication and User Management

2006-11-09 Thread Dr. Tarique Sani
On 11/9/06, Ismael S. Kafeltz [EMAIL PROTECTED] wrote: The ACM man did not work on ACM for months, so don't expect a update so early. You could use the old script if you wish. ( i don't know where to download old versions ) PhpNut_ has said that he will look into it but I think it is an itch

Re: Best practice for CSS

2006-11-09 Thread mariano.iglesias
It's a very simple issue. You shouldn't overwrite / edit the cake.generic.css file but instead produce your own css file. Let's say you've created your own styles.css file. Save this file under your webroot/css directory. Then, edit your app/views/layout/default.thtml file and in the header

Re: Best practice for CSS

2006-11-09 Thread mariano.iglesias
Sorry, $syhtml should be $html. I was just using a helper I've extended from cake's html helper :) So it should be: ?php echo $html-css('styles'); ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: Why so slow???

2006-11-09 Thread Evan
i think you only get to see your own post after someone else has replied to it --~--~-~--~~~---~--~~ 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

Re: transactions

2006-11-09 Thread Kai Zaunick
Hi Grant, was just digging into the mysql transaction problem... It seems if you are using PHP5, you can directly use model-begin, commit and rollback. Every unknown method of your model is directly dispatched as a database query (cake uses the __call function to catch unknown methods). The more