Re: htaccess e distinct

2007-09-10 Thread Vinicius Cruz
é isso. No caso local, tudo bem, poderia colocar na pasta webroot. Tava procurando uma forma alternativa, para poder enviar para o servidor, sacou? Vinicius Em 09/09/07, Bill [EMAIL PROTECTED] escreveu: Galera, resolvido o problema de instalar algo na pasta do cake. Meu amigo Tulio Faria deu

Re: htaccess e distinct

2007-09-10 Thread Bill
Pro servidor é a mesma coisa, se coloca na mesma pasta, e para acessar não rpecisa colocar o caminho todo até esta pasta, usa apenas www.seusite.com.br/phpmyadmin q o cake já redireciona via .htaccess é isso. No caso local, tudo bem, poderia colocar na pasta webroot. Tava procurando uma

Re: Resgatar o Id gerado pelo último INSERT

2007-09-10 Thread Thiago Paes
Tenta $this-Question-getLastInsertId(); On 9/10/07, hostdesigner [EMAIL PROTECTED] wrote: Eu estou tentando resgatar o último ID gerado pelo INSERT, mas, sempre dá um erro. if ($this-Question-save($this-data)) { $questions_id = $this-Question-lastInsertId(); } ERRO: 1064: You

Re: HABTM association with three different models

2007-09-10 Thread AD7six
On Sep 10, 3:34 am, lemon [EMAIL PROTECTED] wrote: Hi everybody :) Well first I want to say, that I've already searched answers to my question in this group, and in google, but without results :( My question is: It's possible to associate three different models with HABTM

Re: HABTM association with three different models

2007-09-10 Thread AD7six
On Sep 10, 8:03 am, AD7six [EMAIL PROTECTED] wrote: On Sep 10, 3:34 am, lemon [EMAIL PROTECTED] wrote: Hi everybody :) Well first I want to say, that I've already searched answers to my question in this group, and in google, but without results :( My question is: It's possible

Advice on retrieving groups of authorized objects

2007-09-10 Thread Fran Iglesias
Hi, I've been researching on ACL, trying to find a way to implement this to authorize users to access the resources in my application. I've found several tutorials and articles in the Bakery and other webs about CakePHP and I think I understand de basis and how to implement access control

Re: Updating multiple id's with the AJAX helper

2007-09-10 Thread Anthony
Well, it seems as though Cake is being picky... In my view which is rendered for the AJAX output, if I have this code, it works: ?php echo $ajax-div('id1', array('style'='display:inline')); ? test content 1 ?php echo $ajax-divEnd('id1'); ? ?php echo $ajax-div('id2',

Advanced helper testing

2007-09-10 Thread Daniel Hofstetter
Hi all, Anyone an idea how to unit test a helper method which adds stuff to the head area of an HTML page (the functionality is similar to HtmlHelper::css() when $inline is set to false)? Thanks, daniel -- Daniel Hofstetter http://cakebaker.42dh.com

Re: Advanced helper testing

2007-09-10 Thread Daniel Hofstetter
Ok, I found the answer myself, I have to use View::renderLayout(). Cheers, daniel -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

Re: Advanced helper testing

2007-09-10 Thread AD7six
On Sep 10, 11:32 am, Daniel Hofstetter [EMAIL PROTECTED] wrote: Hi all, Anyone an idea how to unit test a helper method which adds stuff to the head area of an HTML page (the functionality is similar to HtmlHelper::css() when $inline is set to false)? Hi Daniel, 1) call method to test 2)

Re: ConnectionManager::getDataSource - Non-existent data source

2007-09-10 Thread nej
Any ideas? On Sep 8, 3:49 pm, NicoE [EMAIL PROTECTED] wrote: Hello everybody. We are moving a site made with CakePHP from one development server to a production server. In the first one, everythink works fine but when trying to login in the second one, the following error appears: Fatal

Grab parent ARO from ACL

2007-09-10 Thread pigeon
hey everyone, is there an easy way to read the parent ARO of any given ARO, from cake-ACL? I didnt see anything about it in the API docs, thus i must assume its not implemented.. :-( How do you go about it then? thanks! andrew --~--~-~--~~~---~--~~ You

Re: To use a open source Auth system or not

2007-09-10 Thread Baz
As far as I understand, the Auth Component is only half of the story. You still have to set up all that ACL stuff before hand. If you're up to the task: http://lemoncake.wordpress.com/2007/07/15/using-aclbehavior-in-cakephp-12/ then

Re: To use a open source Auth system or not

2007-09-10 Thread Dr. Tarique Sani
On 9/10/07, Baz [EMAIL PROTECTED] wrote: As far as I understand, the Auth Component is only half of the story. You still have to set up all that ACL stuff before hand. No - you can simply use the Auth by writing isAuthorized method in your controller OR model and setting the appropriate

Re: Advanced helper testing

2007-09-10 Thread Daniel Hofstetter
Thanks for your answer. I now use: $view = new View(new AppController()); $this-helper-serverLink('http://example.com/server', false); $content = $view-renderLayout(''); // here comes a not yet existing regex Cheers, daniel -- Daniel Hofstetter http://cakebaker.42dh.com

Re: Advanced helper testing

2007-09-10 Thread Dr. Tarique Sani
On 9/10/07, Daniel Hofstetter [EMAIL PROTECTED] wrote: Thanks for your answer. I now use: Hey - welcome back ;) T -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com

Re: ConnectionManager::getDataSource - Non-existent data source

2007-09-10 Thread AD7six
On Sep 8, 9:49 pm, NicoE [EMAIL PROTECTED] wrote: Hello everybody. We are moving a site made with CakePHP from one development server to a production server. In the first one, everythink works fine but when trying to login in the second one, the following error appears: Fatal error:

Re: To use a open source Auth system or not

2007-09-10 Thread Dr. Tarique Sani
On 9/10/07, Baz [EMAIL PROTECTED] wrote: SoI'll be patiently waiting for Chris or someone else to do that write up. Since there's not going to be an official Manual for 1.2, I guess I have to just wait on enterprising bloggers. There already is a manual for 1.2 and currently in the same

Re: ConnectionManager::getDataSource - Non-existent data source

2007-09-10 Thread nej
We moved from PHP 5 - MySQL 5 to PHP 4 MySQL 3. Are there PHP - MySQL version requirements for CakePHP? On Sep 10, 8:48 am, AD7six [EMAIL PROTECTED] wrote: On Sep 8, 9:49 pm, NicoE [EMAIL PROTECTED] wrote: Hello everybody. We are moving a site made with CakePHP from one development server

Re: Advice on retrieving groups of authorized objects

2007-09-10 Thread AD7six
On Sep 10, 9:24 am, Fran Iglesias [EMAIL PROTECTED] wrote: snip For example. I need to allow several groups to acces to an index action, but I need to retrieve only the items that are are allowed to the logged user. ACL logic does not lend itself easily to mass searching like that, and I've

Re: To use a open source Auth system or not

2007-09-10 Thread Chris Hartjes
On 9/10/07, Matt [EMAIL PROTECTED] wrote: Chris, I found the AuthComponent mentioned in the release for the 1.2.0.5427alpha: http://bakery.cakephp.org/articles/view/the-last-alpha-cake but to be honest I'm not really that confident using an AuthComponent that is in a alpha release. I

Re: To use a open source Auth system or not

2007-09-10 Thread Chris Hartjes
On 9/10/07, Dr. Tarique Sani [EMAIL PROTECTED] wrote: Chris has already written about it in the past can't recall the exact URL but something like two pronged auth or two headed auth Yeah, I did a small post about it:

Re: To use a open source Auth system or not

2007-09-10 Thread Baz
There you go, that just goes to show that I have no clue what I'm talking about. SoI'll be patiently waiting for Chris or someone else to do that write up. Since there's not going to be an official Manual for 1.2, I guess I have to just wait on enterprising bloggers. -- Baz L Web Development

Re: Database Migrations ala RoR

2007-09-10 Thread CraZyLeGs
Hi, I don't think there is a built-in migration system in cakePHP yet. the one that is available is written by a cakePHP user. means it's not official. I heard that john is playing around with migrations in his sandbox, I don't know the progress though. But back to your framework. For it to be

Re: To use a open source Auth system or not

2007-09-10 Thread Baz
Sorry, I left out something from that statement: ...until 1.2 goes stable. Yeah, I found it too, but no Auth stuff. Two-Headed Application Authentication in CakePHP 1.2 : http://www.littlehart.net/atthekeyboard/2007/07/28/two-headed-application-authentication-in-cakephp-12/ But, I'm too

Re: Advanced image manipulation in Cake? (cropping, resizing)

2007-09-10 Thread grigri
Try this one: http://www.dhtmlgoodies.com/index.html?whichScript=image-crop On Sep 9, 9:31 pm, d'plus [EMAIL PROTECTED] wrote: Chris Hartjes napisał(a): On 9/9/07, d'plus [EMAIL PROTECTED] wrote: But can I achieve editing like this

Re: Advanced image manipulation in Cake? (cropping, resizing)

2007-09-10 Thread Erich C. Beyrent
I use a helper for image manipulation. A simple example would be: ?php class ImageHelper extends Helper { var $helpers = array('Html'); var $cacheDir = 'imagecache'; // relative to IMAGES_URL path function link($file) { return $this-Html-link($this-Html-image($file,

Re: ConnectionManager::getDataSource - Non-existent data source

2007-09-10 Thread AD7six
On Sep 10, 3:06 pm, nej [EMAIL PROTECTED] wrote: We moved from PHP 5 - MySQL 5 to PHP 4 MySQL 3. Are there PHP - MySQL version requirements for CakePHP? It is not afaik the reason for your specific error but unless you have MySql version 4.x joins won't work. hth, AD

Re: Links in flashes

2007-09-10 Thread grigri
I'd do something like this: create an element for each flash chunk you want to display, then store the references in the session - separately from the normal flash data. /app/elements/flash-email-not-unique.ctp : div class=flash-chunk h3Email not unique/h3 p Someone is already using the email

Re: Advice on retrieving groups of authorized objects

2007-09-10 Thread Fran Iglesias
Thank you AD, I guess it's better for me to activate the B plan. In my pre-cakaphp developer life, I wrote a simpler, yet functional, system. I could try to improve it with some ideas from ACL's. Major limitations was granularity (it works on group basis) and it was not hierarchical. --

Trouble with HABTM

2007-09-10 Thread Sebastian Choren
Hi. I've got 2 models, n-m, and i'm trying to asociate them with HABTM, so i wrote this code: ?php class Media extends AppModel { var $name = 'Media'; var $belongsTo = array('MediaCategory' = array( 'foreignKey' = 'category_id' )

Error in i18n after baking fresh new admin controllers and views

2007-09-10 Thread Charlie van de Kerkhof
Hi, I used bake before in v1.2 and working alright for me. But after a certain svn update (don't know which version) my admin_index gives an error in i18n: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1048577 bytes) in /cake/libs/i18n.php on line 379 And when I

Re: Database Migrations ala RoR

2007-09-10 Thread John David Anderson
On Sep 10, 2007, at 7:43 AM, CraZyLeGs wrote: Hi, I don't think there is a built-in migration system in cakePHP yet. the one that is available is written by a cakePHP user. means it's not official. I heard that john is playing around with migrations in his sandbox, I don't know the

Re: Trouble with HABTM

2007-09-10 Thread Samuel DeVore
table name is plural medias_rate_requests On 9/10/07, Sebastian Choren [EMAIL PROTECTED] wrote: Hi. I've got 2 models, n-m, and i'm trying to asociate them with HABTM, so i wrote this code: ?php class Media extends AppModel { var $name = 'Media'; var $belongsTo =

Re: does cakephp has a helper for select tag ?

2007-09-10 Thread francky06l
$form-select On Sep 10, 5:11 pm, Seth [EMAIL PROTECTED] wrote: I'm trying to create a dropdown list .. but i can't find a helper for it like there is for imput, radio, checkbox etc, dose cake has a helper for it or i'm just missing it from docs ? Thanks. Claudiu

does cakephp has a helper for select tag ?

2007-09-10 Thread Seth
I'm trying to create a dropdown list .. but i can't find a helper for it like there is for imput, radio, checkbox etc, dose cake has a helper for it or i'm just missing it from docs ? Thanks. Claudiu --~--~-~--~~~---~--~~ You received this message because you

Re: Error in i18n after baking fresh new admin controllers and views

2007-09-10 Thread Charlie van de Kerkhof
I've seen this in the code on that particular line: $data = fread($file, 120); 120 ?? I will submit a trac ticket. On Sep 10, 5:06 pm, Charlie van de Kerkhof [EMAIL PROTECTED] wrote: Hi, I used bake before in v1.2 and working alright for me. But after a certain svn update (don't know which

Re: does cakephp has a helper for select tag ?

2007-09-10 Thread francky06l
Which version of cake ? if cake 1.2 $form-select() (form helper), $html-select() for cake 1.1 (html helper). On Sep 10, 5:11 pm, Seth [EMAIL PROTECTED] wrote: I'm trying to create a dropdown list .. but i can't find a helper for it like there is for imput, radio, checkbox etc, dose cake has a

Re: does cakephp has a helper for select tag ?

2007-09-10 Thread Seth
Thanks! but i have try that and is not working i get this message Fatal error: Call to undefined method FormHelper::select() and i have imported in my controller helpers for Html and Form ... and i don't get any erros with input or radio on the same form .. but i get with this select, any hints ?

Re: does cakephp has a helper for select tag ?

2007-09-10 Thread soknet
Note that $form-select it's only for Cake 1.2 On Sep 10, 5:23 pm, francky06l [EMAIL PROTECTED] wrote: $form-select On Sep 10, 5:11 pm, Seth [EMAIL PROTECTED] wrote: I'm trying to create a dropdown list .. but i can't find a helper for it like there is for imput, radio, checkbox etc, dose

Re: Model question v1.2

2007-09-10 Thread Troy Gilbert
That's not a bug. Data is always returned in this format: Array ( [ModelName] = Array ( [fieldname1] = 'value' [fieldname2] = 'value' ) ) Am I correct in my thinking that the reason data is returned this way is for the scenario where a model

Re: Model question v1.2

2007-09-10 Thread Chris Hartjes
On 9/10/07, Troy Gilbert [EMAIL PROTECTED] wrote: Am I correct in my thinking that the reason data is returned this way is for the scenario where a model has an association, e.g. if post had a user: Array ( [Post] = Array ( [field1] = 'value', [field2] = 'value' ) [User] = Array

Re: Error in i18n after baking fresh new admin controllers and views

2007-09-10 Thread Chris Hartjes
On 9/10/07, Charlie van de Kerkhof [EMAIL PROTECTED] wrote: I've seen this in the code on that particular line: $data = fread($file, 120); 120 ?? I will submit a trac ticket. Not a bug. is used as a bitwise operator: http://www.litfuel.net/tutorials/bitwise.htm 1 20 is 1,048,576 So

Re: Updating multiple id's with the AJAX helper

2007-09-10 Thread Anthony
Well, for anybody in a similar situation, I have solved this problem. It seems as though the second code only works like so: ?php for ($i=1; $i=$div_total; $i++) { ? ?php echo $ajax-div($div_id . $i, array('style'='display:inline')); ?test content?php echo $i; ?? php echo $ajax-divEnd($div_id .

Re: Database Migrations ala RoR

2007-09-10 Thread Gwoo
Joel Moss also wrote a migrations that integrates with 1.2. http://joelmoss.info/switchboard/blog/2583:Migrations_v33 One of the best things about Cake is how easy it is to drop these third party packages into vendors. The Cake 1.2 core has a alpha version of the CakeSchema that John refers to.

Re: Grab parent ARO from ACL

2007-09-10 Thread Gwoo
$this-Acl-Aro-findByParentId() --~--~-~--~~~---~--~~ 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

EXTJS forms, Cake, and AJAX

2007-09-10 Thread hydra12
I'm trying to use the froms from EXTJS with cake. When my form posts, this is what is in $_POST: [action] = submit [last_name] = Buckner [first_name] = Mark Nothing shows up in $this-data. How do I get it into this format? [data] = Array ( [User]=Array

Re: EXTJS forms, Cake, and AJAX

2007-09-10 Thread majna
Sory : name form inputs like : data[User][first_name]; On Sep 10, 8:27 pm, majna [EMAIL PROTECTED] wrote: name form inputs like : data[User][first:name]. or $this-data['User']['first_name] = $this-params['form'] ['first_name']; ... On Sep 10, 8:15 pm, hydra12 [EMAIL PROTECTED] wrote:

Re: EXTJS forms, Cake, and AJAX

2007-09-10 Thread majna
name form inputs like : data[User][first:name]. or $this-data['User']['first_name] = $this-params['form'] ['first_name']; ... On Sep 10, 8:15 pm, hydra12 [EMAIL PROTECTED] wrote: I'm trying to use the froms from EXTJS with cake. When my form posts, this is what is in $_POST: [action] =

1.2 ready for prime time?

2007-09-10 Thread Troy Gilbert
I'm wondering how stable 1.2 is currently? I've got a site with a minimal feature set currently built with 1.1 and we're about to do a significant rework/expansion of the site over the next month. Would it make sense to migrate to 1.2? Where can I go to get a good comparison of 1.1 vs. 1.2 in

Re: dynamic internationalization --multilanguage website

2007-09-10 Thread cakeFreak
hey guys, sorry for my late replay, and cheers for your help. I'll try to be less cryptic. Let's take a multilingual website with a specular section in language 1 (italian), and language 2 (english). When in other circumstances I was in this kind of situation I used to add an extra language

Re: 1.2 ready for prime time?

2007-09-10 Thread Chris Hartjes
On 9/10/07, Troy Gilbert [EMAIL PROTECTED] wrote: I'm wondering how stable 1.2 is currently? I've got a site with a minimal feature set currently built with 1.1 and we're about to do a significant rework/expansion of the site over the next month. Would it make sense to migrate to 1.2? Where

Re: EXTJS forms, Cake, and AJAX

2007-09-10 Thread hydra12
That did it! Thanks! On Sep 10, 1:28 pm, majna [EMAIL PROTECTED] wrote: Sory : name form inputs like : data[User][first_name]; On Sep 10, 8:27 pm, majna [EMAIL PROTECTED] wrote: name form inputs like : data[User][first:name]. or $this-data['User']['first_name] = $this-params['form']

Re: Trouble with HABTM

2007-09-10 Thread nerohc
Now i can read the model and i get the relation, but when i try to save a new one, it saves the first model, but it doesn't save the relation table. Instead it makes a delete: 1 INSERT INTO `rate_requests` (`user_id`) VALUES (4) 2 SELECT LAST_INSERT_ID() AS insertID 3 DELETE

Re: 1.2 ready for prime time?

2007-09-10 Thread Ismael S. Kafeltz
I abandoned cake few days ago and now I'm using Ruby on Rails because I think cake takes too much time to evolve and I could wait more one year to finally use it seriously. In my opinion you should study RoR before rework/expansion because you will have immediately results. On 10 set, 15:50,

Re: 1.2 ready for prime time?

2007-09-10 Thread Chris Hartjes
On 9/10/07, Ismael S. Kafeltz [EMAIL PROTECTED] wrote: I abandoned cake few days ago and now I'm using Ruby on Rails because I think cake takes too much time to evolve and I could wait more one year to finally use it seriously. In my opinion you should study RoR before rework/expansion

RE: 1.2 ready for prime time?

2007-09-10 Thread Mariano Iglesias
He's not asking if he should try RoR, he's asking about 1.2 availability. So if you just wanna fill up your inbox with arguments, go somewhere else. I know a couple of blogs that would benefit from that. -MI --- Remember,

Re: 1.2 ready for prime time?

2007-09-10 Thread Sonic Baker
My EURO 0.02 I would personally like to applaud and thank the CakePHP team for remaining focused on releasing *quality* software rather than pumping up their version numbers like so many commercial products. I am quite happy to wait as long as it takes for 1.2 in the knowledge it'll be solid

Re: 1.2 ready for prime time?

2007-09-10 Thread Troy Gilbert
Show me how to build Digg with Ruby on Rails and I will believe that RoR is better than a PHP-backed solution. There, I said it. I certainly agree with that sentiment (hence, why I built the site with CakePHP in the first place). I've read all of The David's presentations (and books) on RoR

Re: 1.2 ready for prime time?

2007-09-10 Thread francky06l
Just my 2 cents : I have used 1.1 for my first application now live. I am in development stage for the second one and I am using 1.2. I admit that I could not get to 1.1 anymore. Once you tried it, you can't go back .. I have to migrate my first application, but . well it works and I wait a

Re: AuthComponent - Alternate ways to hash passwords?

2007-09-10 Thread Sonic Baker
On 9/6/07, francky06l [EMAIL PROTECTED] wrote: - do not use the name password in the views (login or other user management views), but another dummy name. Handle this dummy name (hash or whatever and replace in your password field) prior to save. Why not use the name 'password'? Does it

Re: 1.2 ready for prime time?

2007-09-10 Thread John David Anderson (_psychic_)
On Sep 10, 2007, at 2:06 PM, Troy Gilbert wrote: Show me how to build Digg with Ruby on Rails and I will believe that RoR is better than a PHP-backed solution. There, I said it. I certainly agree with that sentiment (hence, why I built the site with CakePHP in the first place). I've read

Re: Trouble with HABTM

2007-09-10 Thread robechar
ummm, I think its the hasOneAndBelongsToMany should be hasAndBelongsToMany as far as I know there isn't a hasOneAndBelongsToMany On Sep 10, 8:01 am, Sebastian Choren [EMAIL PROTECTED] wrote: Hi. I've got 2 models, n-m, and i'm trying to asociate them with HABTM, so i wrote this code: ?php

Re: AuthComponent - Alternate ways to hash passwords?

2007-09-10 Thread francky06l
Actually to the Auth component, not the Security one .. Cheers On Sep 10, 10:42 pm, Sonic Baker [EMAIL PROTECTED] wrote: Aha, Thanks for clearing that up. I didn't realise you were referring specifically to the security component. I thought you meant in general user forms. Cheers, Sonic

Re: dynamic internationalization --multilanguage website

2007-09-10 Thread francky06l
Well you can use the current language ('Config.language') to set it in your DB and then use the current language as a condition when querying. In anyway that will force the user to enter his post in the language he decided to display the page ...Unless you can detect the language from the fields

Re: 1.2 ready for prime time?

2007-09-10 Thread Brad Daily
I'll pipe in here to say that the next version of SlideShowPro Director (1.1) will run on Cake 1.2. We've been in beta testing for a few months now, and with our current release candidate installed on north of 500 domains, we haven't seen any Cake related issues. Issues of my own making, however,

Re: AuthComponent - Alternate ways to hash passwords?

2007-09-10 Thread Sonic Baker
Aha, Thanks for clearing that up. I didn't realise you were referring specifically to the security component. I thought you meant in general user forms. Cheers, Sonic On 9/10/07, francky06l [EMAIL PROTECTED] wrote: Yes it does, I mean for me .. Because when a user enters his password I

Re: Trouble with HABTM

2007-09-10 Thread AD7six
On Sep 10, 9:42 pm, nerohc [EMAIL PROTECTED] wrote: snip $this-data['Media']['Media'] = 15; That's supposed to be an array of all values to which the RateRequest is associated. The delete is because before saving the new habtm associations, cake will delete the old ones (otherwise it would be

Re: Strange routes/Router::url() behavior

2007-09-10 Thread biesbjerg
Hi, Correct way to implement above route would be: Router::connectNamed(array('community_id')); Router::connect('/:community_id/bulletins/:action/*', array('controller' = 'bulletins'), array('community_id' = '[0-9]+')); On Sep 10, 10:40 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have

Re: Strange routes/Router::url() behavior

2007-09-10 Thread [EMAIL PROTECTED]
Thanks, I was not aware of the new explicit nature. On Sep 10, 5:15 pm, biesbjerg [EMAIL PROTECTED] wrote: Hi, Correct way to implement above route would be: Router::connectNamed(array('community_id')); Router::connect('/:community_id/bulletins/:action/*', array('controller' =

Re: New Router usage as of 5535 $Route-connectNamed()

2007-09-10 Thread [EMAIL PROTECTED]
Originally I thought this was an optional new feature, but for those who were passing arrays with arbitrary named values to Router::url() and its friends HtmlHelper::url() and HtmlHelper::link(), note that the parameter must be defined with a $Route-connectNamed() in routes.php or the router

Routes + CAKE_ADMIN (admin routing)

2007-09-10 Thread guigouz
Hello I'm writing a little catalog for a client, and setup Section and Product controllers with admin routing, so /admin/sections manages sections and /admin/products manages products I want to point /admin to /admin/sections, but I'm struggling with app/ config/routes.php. Already tried:

Doxyfile

2007-09-10 Thread [EMAIL PROTECTED]
Could someone please post the Doxyfile used to generate the api documentation for cakephp. I am guessing some modification was required to get it to support several phpdoc style comments. thanks David --~--~-~--~~~---~--~~ You received this message because you

help on changing the mouse cursors on google maps

2007-09-10 Thread Gayathiri
Hi, I am using google maps in my webpage. I allow the user to set location of any place on the goolge maps. Google maps allows to use hand cursor on the map and on clicking the map, a plaemark is set. while user tries to place placemarks on the map. I want to show a placemark cursor instead of

Ajax submission not working from ajax-generated form

2007-09-10 Thread zeroStar
This is my situation: the user clicks on an ajax link and this updates a div with an ajax response, which also contains this form: form name=postComntForm ?=$form-input('Comment.comment', array('rows'=2, 'cols'=30, 'label'=''));? ?=$form-hidden('Comment.created_at', time());?

[1.2.x.x] Is there a complete ACL/Auth howto ?

2007-09-10 Thread イタリア人
First of all, Hello everybody :) I'm pretty new to formalized ACL stuff as I've been using hand made code till now and I'm not used to write applications using frameworks. I've been reading so many confusing things all around and it's not really clear where to get info, real info. The moment is

Pagination photo blog combination

2007-09-10 Thread Arendp
I am getting into CakePHP but I keep struggling with the following problem: I have a photo collection and use pagination to order the photos. I also try to order a list of collections which I can modify, add and delete. Both photos and collections are based on rdBloggery. Because I want to use

Re: API Documentation Generator

2007-09-10 Thread [EMAIL PROTECTED]
I looked all over for there doxyfile. I would love to see it as they somehow (my guess though alieses) support several phpdoc only style comments.. David On Sep 7, 6:52 am, MarkH [EMAIL PROTECTED] wrote: On Sep 6, 4:53 pm, djiize [EMAIL PROTECTED] wrote: Where did you see it was parsed

AfterSave Processing -- In Model or Controller?

2007-09-10 Thread MikeK
I have a question about where to put some code. In a fishing tournament scoring system 2 classes are at issue: Catches and ScoreCard (a ScoreCard is a tournament entry -- standings are the ordered list of ScoreCards for a given Tournament). The tournament abstraction is layered over an underlying

CakePHP taking 1 minute+ to answer requests

2007-09-10 Thread gearb0x
Hey guys, Ive had a similar problem to this on an unrelated cake project before (unrelated other than being programed by me as pointed out by someone on IRC last night :P) Whats happening is if i don't let a page load 100% before i click a link on it cake will take 1min+ to answer the requests.

Re: CakePHP taking 1 minute+ to answer requests

2007-09-10 Thread abba bryant
My guess would be that outputting binary blobs through a script ( meanign an http request, a db request, a second http request + output ) for each image is simply taking a long time. I wouldn't be surprised if outputting binary data like images was in some fashion a synchronous event either by

Re: AfterSave Processing -- In Model or Controller?

2007-09-10 Thread Grant Cox
I would put the functionality into your User model. Have a function addCatch(), which can also look at all the User's ScoreCards and update them appropriately. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake