Re: (In-site) search with CakePHP -- where to start?

2007-05-14 Thread Vladimir
http://www.xapian.org/ Xapian is an Open Source Search Engine Library, released under the GPL. It's written in C++, with bindings to allow use from PHP Xapian is a highly adaptable toolkit which allows developers to easily add advanced indexing and search facilities to their own applications. It

Re: Help for newbies

2007-05-14 Thread Changoso
Ok I changed my file as you are saying $cakeCache = array('File'); To: $cakeCache = array('File', array( 'dir' = dirname(dirname(__FILE__)) . DS . 'tmp', 'prefix' = 'cakecache_', 'lock' = false )); but I am still having the: Your cache is NOT working. Edit:

Re: Help for newbies

2007-05-14 Thread Changoso
I've fixed thw The other problem is that I dont have that neat style that Cake usually gives.. it just shows me a white page but no style. what I did, it was a vhost and that way xammp doesnt mess with the root file. On May 13, 4:02 pm, Changoso [EMAIL PROTECTED] wrote: Hello! well this is

Re: Bulletin board system and cakePHP

2007-05-14 Thread [EMAIL PROTECTED]
So I found a kind of half-solution. I have decided for phpbb2 (for its largest mod database and community support). In phpbb2 template system you cannot use PHP in the templates. So I downloaded dothings mod, which takes php doc, runs it with output capturing and then assigning the captured

i18n with subphrases

2007-05-14 Thread V
Hello! I get i18n working, and it is a great improvement. btw, it would be also nice to see an i18n routing :) this way it would be possible to give descriptive urls in any language but my question is not this if I understood it well, then the __( ) function does not implement string

Ajax domainchecker width cake1.2

2007-05-14 Thread Eppo
Some ajax questions: I have a div called domaincheck. In that div i want to load 5 other divs with the domainextentions. If you look at the example below, when all domains are showed in the div domaincheck then an ajax icon wil apear and that one updates the status of the domain if it's

Set id or class via $ajax - link ?

2007-05-14 Thread Dan Ballance
Hi there, Is it possible to pass html settings such as 'id' or 'class' through the $ajax-link helper? The api lists the syntax as: AjaxHelper::link ($title, $href = null, $options = array(), $confirm = null, $escapeTitle = true) It then goes on to list the options as ajax related attributes,

rss building with rss-helper in 1.2 does not work

2007-05-14 Thread Thomas
Hello, I am trying to get the rss working with the help of the rss-helper of 1.2, but somehow cake doesn't spit out valid rss. Here is the problem and what I've done: - I have followed the instructions at http://cake.insertdesignhere.com/posts/view/8 - When I type webroot/model.rss as url in

RE: rss building with rss-helper in 1.2 does not work

2007-05-14 Thread Mariano Iglesias
First of all, don't assume things are not working just because it doesn't work for you: http://bakery.cakephp.org/comments.rss That's an RSS feed generated with CakePHP 1.2 and works like a charm. So you know this is how it works: On app/config/routes.php add: Router::parseExtensions( 'rss'

Re: rss building with rss-helper in 1.2 does not work

2007-05-14 Thread Dr. Tarique Sani
On 5/14/07, Mariano Iglesias [EMAIL PROTECTED] wrote: First of all, don't assume things are not working just because it doesn't work for you: http://bakery.cakephp.org/comments.rss Corollary to above - Don't assume it will work for everyone just because it works for you / some That said

RE: rss building with rss-helper in 1.2 does not work

2007-05-14 Thread Mariano Iglesias
Not applicable. If you want to start a car without gas, don't come and say the engine is not working. -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your

Re: Display without index

2007-05-14 Thread Gonzalo Servat
On 5/14/07, Enchy [EMAIL PROTECTED] wrote: Hi I have seen it before where you dont have to create a index.thtml or edit. You just setup your controller and model and it automatically goes to a page where you can edit any column in your table. How is this done? Are you talking about

Re: rss building with rss-helper in 1.2 does not work

2007-05-14 Thread bbuchs
This is what I was talking about. Mariano posted some code that should be helpful. But was it necessary to mock the poster? On May 14, 7:58 am, Mariano Iglesias [EMAIL PROTECTED] wrote: Not applicable. If you want to start a car without gas, don't come and say the engine is not working.

RE: rss building with rss-helper in 1.2 does not work

2007-05-14 Thread Mariano Iglesias
Who's mocking who? -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -Mensaje

Re: Use php in js files?

2007-05-14 Thread hydra12
I ended up assigning the variable to a js variable in my view. That worked great. Thanks! On May 12, 3:21 pm, Vladimir [EMAIL PROTECTED] wrote: assigning js var is better because .js file can be cached --~--~-~--~~~---~--~~ You received this message because

Acl in 1.2 question

2007-05-14 Thread Hellbot
Hello, everyone! I'm trying to build an Access Control Tree :-) looking like this: actions - - controller - - - - add - - another - - - - add and setup the following rights for users: supervisor has full access to actions user has full access to controller and no access to another. Here is

Re: rss building with rss-helper in 1.2 does not work

2007-05-14 Thread Thomas
Thanks for the replies. It is indeed helpful. Maybe I should stated it more clearly, but nowhere in my post I was blaming the problem on cakephp... I was just strugling with this problem and I was really looking for a solution. The only thing I said was that it I could not get valid RSS. Of

overriding scaffolding views not possible for whole application

2007-05-14 Thread Gilles Dubois
In Cake 1.1.13, it was possible to override the views in cake/libs/ views/templates/scaffolds for the whole application by creating views in app/views/scaffold/*.scaffold.thtml. It doesn't work in Cake 1.2.0.4451alpha. Is it a bug or do you, development team, intented to do so (i.e. removing

RE: rss building with rss-helper in 1.2 does not work

2007-05-14 Thread Mariano Iglesias
Cool, try with that car model I sent you, it should show you how to start your engine. -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge.

RE: rss building with rss-helper in 1.2 does not work

2007-05-14 Thread Mariano Iglesias
Geez that's freaking hot. 6 C here. -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar

Re: rss building with rss-helper in 1.2 does not work

2007-05-14 Thread Thomas
Damn, 43! 15 here... Still two unresolved issues. 1. For some reason, the RSS is not valid yet. The reason: about 8 spaces before the ?xml... ? starts. Anyone have a clue how I can get rid of these spaces? When I save the rss file and I remove these spaces, everything works! 2. There is still a

Howto: Change 404 Not found pageTitle?

2007-05-14 Thread DragonI
Hi, When I set DEBUG to 0 and I test with bogus controller names, I get 404 Not found as the pageTitle - which is perfect. But is there a way of overriding / changing the page title? Thanks --~--~-~--~~~---~--~~ You received this message because you are

Re: rss building with rss-helper in 1.2 does not work

2007-05-14 Thread Thomas
Oh, and maybe it is also good to show how my template file (in view/ rss) looks: - ?xml version=1.0 encoding=iso-8859-1? rss version=2.0 channel

Re: i18n with subphrases

2007-05-14 Thread dardosordi
use sprintf/printf: sprintf(__('there_are %d comments'), 16); On May 14, 5:07 am, V [EMAIL PROTECTED] wrote: Hello! I get i18n working, and it is a great improvement. btw, it would be also nice to see an i18n routing :) this way it would be possible to give descriptive urls in any

Re: Cake 1.1 vs 1.2

2007-05-14 Thread dardosordi
Just use 1.2 it's great! On May 14, 1:32 am, Aaron Shafovaloff [EMAIL PROTECTED] wrote: If it's a long-term enterprise application, and you're just getting started, my opinion is to start using 1.2. On May 13, 8:35 pm, Oshuma [EMAIL PROTECTED] wrote: I've recently started a project using

Re: Cake 1.1 vs 1.2

2007-05-14 Thread Chris Hartjes
On 5/14/07, Aaron Shafovaloff [EMAIL PROTECTED] wrote: If it's a long-term enterprise application, and you're just getting started, my opinion is to start using 1.2. Although I don't know about the enterprise label, I have to agree that going with 1.2 is probably a better idea. It's very

ADODB

2007-05-14 Thread dasiel
Hi I'm using adodb to connect to my DB (MSSQL2000) and when I write: function returnSomething { $this-set('data',$this-MyModel-findAll()); } I get the following message from the browser: Warning: Missing argument 2 for DboAdodb::fields(), called in mySite

Using More Than One Layout In A Controller

2007-05-14 Thread [EMAIL PROTECTED]
I'm working on my first phpcake application and I'm trying to create a nice admin front-end to the database. I'm using obAuth and I uncommented CAKE_ADMIN from the config. I'd like to use a different layout for my login function in my Users controller than the admin front-end when you login.

Re: Using More Than One Layout In A Controller

2007-05-14 Thread rtconner
You have it right. I do that all of the time. Just set $this-layout within one of your actions. On May 14, 8:55 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm working on my first phpcake application and I'm trying to create a nice admin front-end to the database. I'm using obAuth and I

Re: Tag model: Counting more than one model type

2007-05-14 Thread Tane Piper
Thanks for that, but it didn't work in the end for what I needed to do. This is the code I ended up with in my model, so anyone working with a cloud tag can give it a try: function tagcloud() { return $this-query(SELECT `Tag`.`id`, `Tag`.`tag`,

Database Table Management

2007-05-14 Thread Oshuma
I'm currently using a collection of SQL scripts to manage my database tables. The scripts are pure SQL which I just 'source' in the mysql command-line utility. However, with a growing number of tables, single scripts are getting a bit hard to manage. Is there a better way to handle database

can router work together with $paginator-prev

2007-05-14 Thread [EMAIL PROTECTED]
Router::connect('/admin/projects/:action/*',array('controller' = 'projects', 'action' = 'index',CAKE_ADMIN=true)); when I do this like above,$paginator-prev and -next don't work. where is problem? --~--~-~--~~~---~--~~ You received this message because you are

Re: Database Table Management

2007-05-14 Thread Chris Hartjes
On 5/14/07, Oshuma [EMAIL PROTECTED] wrote: I'm currently using a collection of SQL scripts to manage my database tables. The scripts are pure SQL which I just 'source' in the mysql command-line utility. However, with a growing number of tables, single scripts are getting a bit hard to

A quick question model

2007-05-14 Thread Ming
Hi, I am a newbie to cake. I just read cake's manual and have a quick question: class User extends AppModel { // Its always good practice to include this variable. var $name = 'User'; what does this $name mean? is it mandatory? Can I name it something else? If I do not have this

Re: A quick question model

2007-05-14 Thread John David Anderson (_psychic_)
On May 14, 2007, at 10:34 AM, Ming wrote: Hi, I am a newbie to cake. I just read cake's manual and have a quick question: class User extends AppModel { // Its always good practice to include this variable. var $name = 'User'; what does this $name mean? It's a way to ensure

Dynamic sub menus

2007-05-14 Thread shird05
I am still fairly new to cake and am trying to get some more info on how to do a dynamic submenu using components and elements, and have looked thru some of the posts and the manuals and can not seem to get a good example or explanation on this, most of it points to the old wiki which is no

Re: How to get the content of a 'custom' POST-Request

2007-05-14 Thread Chris Hartjes
On 5/14/07, Marcus [EMAIL PROTECTED] wrote: Hello guys, I'm trying to get the plain data from a POST (not a submitted form!) request. Think about such a request: POST /baz/post_test HTTP/1.1 Host: foobar.baz Content-Type: text/xml Content-Length: 666 abc def123/def /abc How can

Re: acl help aro-create

2007-05-14 Thread [EMAIL PROTECTED]
ACL in 1.2 has changed (quite significantly). AFAIK ACL is not yet functional in 1.2. http://groups.google.com/group/cake-php/msg/b03b899ebb73b488?hl=en; On May 14, 1:12 pm, christianandradet [EMAIL PROTECTED] wrote: hi i am working with cakephp 1.2..., i'am traying to use this in

Re: How to get the content of a 'custom' POST-Request

2007-05-14 Thread Marcus
Yes, I want to parse it with SimpleXML. But to do this I need to access this data from within CakePHP - and this is my problem: I can't access the POST body (XML snippet) in my controller action ... (in this case we have a XML snippet in the POST request but it's also possible that we have plain

Re: How to get the content of a 'custom' POST-Request

2007-05-14 Thread Chris Hartjes
On 5/14/07, Marcus [EMAIL PROTECTED] wrote: Yes, I want to parse it with SimpleXML. But to do this I need to access this data from within CakePHP - and this is my problem: I can't access the POST body (XML snippet) in my controller action ... I don't follow you here. You mean you can't

othAuth Performance

2007-05-14 Thread Dave J
Hi guys, I've just started using CakePHP a couple of weeks ago and so far I'm beyond impressed with its flexibily and simplicity. I'm currently implementing othAuth for the administration pages of the app and so far its been great and works fine. My question is this. as it is right now...

Re: How to get the content of a 'custom' POST-Request

2007-05-14 Thread Marcus
On May 14, 8:39 pm, Chris Hartjes [EMAIL PROTECTED] wrote: Yes, I want to parse it with SimpleXML. But to do this I need to access this data from within CakePHP - and this is my problem: I can't access the POST body (XML snippet) in my controller action ... I don't follow you here. You

Re: How to get the content of a 'custom' POST-Request

2007-05-14 Thread Chris Hartjes
On 5/14/07, Marcus [EMAIL PROTECTED] wrote: I don't follow you here. You mean you can't access the $_POST variable at all? The $_POST variable is empty if I try to dump it with debug() in my controller ... Okay, I'm even more confused now (but that's common these days). I'm assuming

Re: othAuth Performance

2007-05-14 Thread Chris Hartjes
On 5/14/07, Dave J [EMAIL PROTECTED] wrote: My question is this. as it is right now... I'm using CakePHP's admin routing functions to implement the admin actions (ie. the admin actions are sitting alongside the 'public' actions in the same controller). Now, on a heavily visited

Re: $ajax-observeField only updating/displaying when cake debug=2 (?!)

2007-05-14 Thread keymaster
Thanks for the reply Chris. That wasn't the problem though, I cleared out the cache completely, problem is still occuring. Any other ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post

Re: How to get the content of a 'custom' POST-Request

2007-05-14 Thread Marcus
On May 14, 9:11 pm, Chris Hartjes [EMAIL PROTECTED] wrote: I don't follow you here. You mean you can't access the $_POST variable at all? The $_POST variable is empty if I try to dump it with debug() in my controller ... Okay, I'm even more confused now (but that's common these

Re: i18n with subphrases

2007-05-14 Thread V
I didn't tried your example, but if I have understood it well, then __('dont_echo') would still echo dont_echo, so to achieve what you wrote you should use __('dont_echo', true) this would probably work, but is tedious, given that you need very often to add some substrings as an other idea it

cake delivers strange session data

2007-05-14 Thread jyrgen
without changing anything on the server, session data seem corrupt. all of sudden the data column does not contain neatly serialized data like : Config|a:3:{s:4:rand;i:6637528;s:4:time;i:1179... but UPDATE `sessions` SET `data` = '7YDr60NnYV1R2asLTAPMDb-

Re: How controller method, called by $ajax-dropRemote, can get ID of a dropped element.

2007-05-14 Thread [EMAIL PROTECTED]
bump. i have the same problem! on irc nobody seems to know this either :'( On Apr 12, 1:08 pm, Derim [EMAIL PROTECTED] wrote: Hi I want to use drag and drop feature in my new CakePHP project. I spent most the day today trying to figure out how controller action, called by $ajax-dropRemote

Re: $ajax-observeField only updating/displaying when cake debug=2 (?!)

2007-05-14 Thread keymaster
...further debugging yields some interesting tidbits... When debug=2, the 'url' specified in $ajax-observeField() is invoked. I determined this by having the cake action output a log. When debug=0, the 'url' specified in $ajax-observeField() is not getting invoked (no log from the cake action).

Re: How to get the content of a 'custom' POST-Request

2007-05-14 Thread [EMAIL PROTECTED]
Perhaps you should try: $post_data = file_get_contents ('php://input'); That will tell you if your data is being posted correctly. On May 14, 4:11 pm, Marcus [EMAIL PROTECTED] wrote: On May 14, 9:11 pm, Chris Hartjes [EMAIL PROTECTED] wrote: I don't follow you here. You mean you can't

Re: Display without index

2007-05-14 Thread Langdon Stevenson
Hi L, look in the manual for scaffolding. Regards, Langdon Enchy wrote: Hi I have seen it before where you dont have to create a index.thtml or edit. You just setup your controller and model and it automatically goes to a page where you can edit any column in your table. How is this

Re: cake delivers strange session data

2007-05-14 Thread jyrgen
here's another debug message. INSERT INTO `sessions` (`data`,`expires`,`id`) VALUES ('WoONRKQof- dpa5Lk1aqI_xbaYeex74vqPLtW1mBgp9_Qnr9MDsstjrHy_FdX6BAjwOMJgnKMkGNrO866i1WSxubOkjHSI7jnWiVXkvCQBeyJDkV8Lfh64sZ- hsY1in1W7eB2SdIMIb73lSK7PS6fc6Y-ThkwtlX_EAQG15S6LF602kyJFZbuy5rRS__S- Agv',

Re: Regular expression in Router::connect

2007-05-14 Thread Aaron Shafovaloff
By the way, I need it to exclude multiple strings. So something to the effect of: Router::connect('/:group/:curriculum/*', array('controller'='curriculum'),array('curriculum'='!xyz AND !abc AND !mno')); On May 14, 3:38 pm, Aaron Shafovaloff [EMAIL PROTECTED] wrote: With Router::connect I'd

Re: cake delivers strange session data

2007-05-14 Thread jyrgen
the aforementioned problem went away after one hour or so. perhaps i should consider changing my hosting provider .. thanks for looking over this :-) jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

HABTM Join extra data

2007-05-14 Thread [EMAIL PROTECTED]
From what I can see in trac the next release will have a mechanism for including extra columns from a habtm join table. In the meantime, are there some techniques that might help me to get around this issue? Thanks, Jon --~--~-~--~~~---~--~~ You received this

Re: Regular expression in Router::connect

2007-05-14 Thread Aaron Shafovaloff
Wooo hoo! I figured it out: Router::connect('/:group/:curriculum/*', array('controller'='curriculum'),array('curriculum'='\b(?:(?! curriculum|courses|facilitators|configuration)\w)+\b')); Thanks to: http://www.roscripts.com/PHP_regular_expressions_examples-136.html On May

Question about findAll array

2007-05-14 Thread Dazweeja
I'm sure this is a newbie question but I've been unable find the answer. If I run findAll on a simple table with no joins, I get an array with an unnecessary middle level with the model name, eg. Array ( [0] = Array ( [User] = Array ( [id] = 1 [username] = user1 [emailaddress] = [EMAIL

Re: HABTM Join extra data

2007-05-14 Thread stacey
Like this? http://groups.google.com/group/cake-php/browse_thread/thread/bef70558f7854732/6363603e04fcee68?lnk=stq=rnum=10#6363603e04fcee68 Check out the 3rd post by nate. On May 14, 7:07 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: From what I can see in trac the next release will have a