Search Engine Bots Generating Strange Queries

2008-10-30 Thread MikeK
In a general CMS app written in CakePHP I am noticing in my logs invalid queries being generated by various search engine bots including Google, Inktomi, and Yahoo. What I'm wondering is WHY? For example they are requesting http://mysite.com/controller/view instead of the correct

Re: Search Engine Bots Generating Strange Queries

2008-10-30 Thread David C. Zentgraf
I'm totally no expert on this, but I'd guess that the bots are simply trying to walk the tree. If http://mysite.com/directory/subdirectory/subsubdirectory; is valid, then http://mysite.com/directory/subdirectory;, http://mysite.com/directory and http://mysite.com; are probably also valid.

Please Help me to solve the problem in table relationship

2008-10-30 Thread Damodhar
hi am new one to cake php Question : i need to show all the details for the particular user id in the profiles view page i can get the array value in the view page i parse the array and display the records but i can ot able to o in the edit page please help me to finish. please refer the

Re: Tags implementation

2008-10-30 Thread bookme
Thanks RyOnLife !! Finding a tag details from the suggested design by you, need to find from all tables so extra 4 SQL Join query will be perform 1. tags_users (tag_id, user_id) (SQL Join) 2. brands_tags (brand_id, tag_id) 3 products_tags (product_id, tag_id) 4 posts_tags (post_id, tag_id)

Solved Re: Auth passing user model to Acl

2008-10-30 Thread Fran Iglesias
Sorry, forget the issue. It was my fault. First, the problematic node was the ACO node, not the ARO. Acl checking the user model is perfectly OK (obvious). Second. My ACO's aliases were bad constructed. I was thinking on full paths as aliases and that's no longer needed from some time

Re: Politics aside.....

2008-10-30 Thread Wayne Fay
Does that policy change after the election? Or is it a hard and fast rule, effective forever? Perhaps you could write a white paper and get permission to publish it? Wayne On Wed, Oct 29, 2008 at 7:19 PM, Walker Hamilton [EMAIL PROTECTED] wrote: We do get decent traffic numbers. Butwe

Problem with encoding when upgrading to 1.1.20

2008-10-30 Thread Sjurl
Hello, The application im developing has just upgraded from CakePHP 1.1.11 to 1.1.20 and that somehow broke the encoding of the data we show the user from the database. When i changed back to 1.1.11 (changing the cake folder) it all worked as intended again. Im trying to use UTF-8 but the page

Re: HABTM in rc3 need now field id in link table.

2008-10-30 Thread [EMAIL PROTECTED]
Sorry to answer a question with a question... What query would Cake ever need to do to that table where it needed to pick out a single row without knowing the two ids (e.g. article_id, tag_id)? I am of-course talking ab out a clean join table. Not one with extra fields in it. If you make a

AW: Turn off inflections

2008-10-30 Thread Liebermann, Anja Carolin
Hi David, I tried out several variations of $uninflectedPlural = array('.*ive'); But I either get error messages or nothing happens Nothing happens: '.*ive' Errors with: '/.*ive/i' gives preg_match() [function.preg-match]: Unknown modifier '.' '/.*ive/gives preg_match()

Re: AW: Turn off inflections

2008-10-30 Thread David C. Zentgraf
Works for me. In /app/config/inflections.php: $uninflectedPlural = array('.*ive'); Then: debug(Inflector::pluralize('Uebsmwinklusive')); Uebsmwinklusive Do not enter RegEx slashes '/.*/', that screws it up. BTW, looking at your original problem again, you might rather want to use the

Re: 1 Cake file, multiple apps / cake bake

2008-10-30 Thread [EMAIL PROTECTED]
First a little typo: PATH=$PATH:/usr/local/bin:/Users/myUserName/Sites/Cake/1.2.x.x/cake/ console/ Remove the last cake. The path should point to the folder not the file. Do I understand you correctly? You want to have this kind of structure: cake - the root cake - where cake's core is app1

Re: cookie tutorial

2008-10-30 Thread jamescowhen
Awesome, should add that to the cakephp books On Oct 28, 1:34 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: i figured it out. it works if put the following lines in beforeFilter() of the controller (don't put it in app_controller.php) $this-Cookie-name = 'location';   $this-Cookie-time =

Problem on Modify of AppModel

2008-10-30 Thread [EMAIL PROTECTED]
Hi I have add a function on AppModel (function try()) . With this modify when I try to make find('all') on any model I see that the HABTM of the model are empty if I remove the function try I see that all works fine and the HABTM aren't empty. What kind of problem is this? Many Thanks

Re: Problem on Modify of AppModel

2008-10-30 Thread [EMAIL PROTECTED]
Sorry I have forget to tell that with debug=2 I can see that the CAKEPHP does the correct SQL query.But I can see nothing On 30 Ott, 10:22, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I have add a function on AppModel (function try()) . With this modify when I try to make find('all') on

Re: Login Redirect not Redirecting

2008-10-30 Thread [EMAIL PROTECTED]
Try: e($form-create('User',array('action'='login'))); Possibly also: e($form-input('User.username')); e($form-input('User.password',array('type'='password'))); in case the first does not do the trick. I usually define Model.field even when it is not necessary. /Martin On Oct 30, 2:03 am,

Re: Db Design for my first Cake App

2008-10-30 Thread [EMAIL PROTECTED]
At a glance it looks pretty good. A few points and thoughts... most of them not necessary but might be good to have. • created_on and updated_on should loose the _on part to match Cakes conventions and be filled automatically. • You could add created and updated to comments and users as well. •

Cake roadmap - Gwoo's Japan talk

2008-10-30 Thread keymaster
In the talk he gave in Japan, Gwoo said there will be a cake 1.2-RC4, before the 1.2 stable release. He also said a cakePHP 1.3 (php4/5) release is planned with a whole lot of new features, before a cake 2.0 (php5 only). There are plans for cakePHP 3.0 to use features in PHP 5.3 (currently in

Re: Problem with encoding when upgrading to 1.1.20

2008-10-30 Thread [EMAIL PROTECTED]
There is a central application-wide encoding setting in config/ core.php. Make sure you have not forgotten that one. Another basic check is to look at the layout and see what charset is set in the header. (just to make sure) One problem I have seen is that you may think that your old data is in

Re: Problem on Modify of AppModel

2008-10-30 Thread [EMAIL PROTECTED]
At a guess I'd say that the function name try might clash with the try, catch features in php5. But I get a big fat error and not your subtle results. Parse error: syntax error, unexpected T_TRY, expecting T_STRING Try renaming the function and see what happens. /Martin On Oct 30, 10:24 am,

Re: Problem on Modify of AppModel

2008-10-30 Thread [EMAIL PROTECTED]
I find error: If I add in var $name=AppModel; there is the problem Instead If i remove this all works fine On 30 Ott, 11:23, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: At a guess I'd say that the function name try might clash with the try, catch features in php5. But I get a big fat error and

Re: 1 Cake file, multiple apps / cake bake

2008-10-30 Thread gemmes
Thanks for your reply I dont understand why I have a typo? I was following along from this tutorial:http://cakephp.org/screencasts/view/7 everything seems correct to me. Im a Web Designer not a Developer but I am trying to learn more PHP through Cake. I do not know how to setup Virtual

Question about Data Sanitation in CAKEPHP

2008-10-30 Thread [EMAIL PROTECTED]
Hi I would use a systematic method to clean data to insert in DB. I think to use Sanitize::clean function in beforeSave(). Now my question : When I do a research in DB (for example with find) If I don't apply the Sanitize::clean function to the value inside the conditions I don't get the right

Re: 1 Cake file, multiple apps / cake bake

2008-10-30 Thread AD7six
On Oct 30, 11:51 am, gemmes [EMAIL PROTECTED] wrote: Thanks for your reply I dont understand why I have a typo? I was following along from this tutorial:    http://cakephp.org/screencasts/view/7 everything seems correct to me. Im a Web Designer not a Developer but I am trying to learn

Re: Db Design for my first Cake App

2008-10-30 Thread pgraju
Thanks martin! On Oct 30, 8:34 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: At a glance it looks pretty good. A few points and thoughts... most of them not necessary but might be good to have. • created_on and updated_on should loose the _on part to match Cakes conventions and be filled

Whats the best idea to keep DB under version control or under sync with server?

2008-10-30 Thread Abhimanyu Grover
I'm sorry this is not Cake related, but I feel its something which most of developers are missing. I found info about Cake migrations and think it would be too difficult to implement it in my team in short time. What tools or techniques are you using to overcome this problem? I'm aware of a tool

Re: Whats the best idea to keep DB under version control or under sync with server?

2008-10-30 Thread Joel Perras
Take a look at the built-in Cake schema shell. $ cake schema help -J. On Oct 30, 8:21 am, Abhimanyu Grover [EMAIL PROTECTED] wrote: I'm sorry this is not Cake related, but I feel its something which most of developers are missing. I found info about Cake migrations and think it would be too

AW: AW: Turn off inflections

2008-10-30 Thread Liebermann, Anja Carolin
Hi David, The test works for me, too. However in my application I still get Uebsmwinklusife and of course all the errors. I develop with Eclipse and used the search function to look for an ife somewhere in the code of my 848 php-files. I thought maybe bake had left me a Uebsmwinklusife

AW: AW: Turn off inflections

2008-10-30 Thread Liebermann, Anja Carolin
Hi David, I found something which works: $irregularPlural = array('uebsmwinklusive' = 'uebsmwinklusives'); However I still don't understand why it is necessary. Thanks for your help anyway, you pointed me in the right direction! Anja -Ursprüngliche Nachricht- Von:

Re: Array truncates after first letter

2008-10-30 Thread Josey
David and Andy, Thanks for your help, I ended up using a while loop and all turned out well. I appreciate your replies. - Josey On Oct 29, 6:46 pm, David C. Zentgraf [EMAIL PROTECTED] wrote: Double check what you're actually doing: foreach ($popular[2]['Project'] as $project) means

Re: Question about Data Sanitation in CAKEPHP

2008-10-30 Thread [EMAIL PROTECTED]
Is it someone can help me? On 30 Ott, 12:43, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I would use a systematic method to clean data to insert in DB. I think to use Sanitize::clean function in beforeSave(). Now my question : When I do a research in DB (for example with find) If I don't

Cake can't connect to the database

2008-10-30 Thread p brand
Hello, I am just starting out trying to get cake up and running. So I have to framework in place and I have configured database.php to connect to a database on MySQL. When I go to the cake root in the browser I get the correct start up page but then I get this: Cake is NOT able to connect to the

Post Data

2008-10-30 Thread MDB
How do you get form data that is not part of a controller? I have a select / drop down box called dobDay, then in the controller, I have tried $this-data['dobDay'], $_POST['dobDay'] and $this- data['Customer']['dobDay'] (customer = name of form) and nothing works. Can someone please help? TIA

Re: Whats the best idea to keep DB under version control or under sync with server?

2008-10-30 Thread the_woodsman
Unfortunately, there's no easy solution to DB migrations / schema syncing. Our team has tried to use the Cake shell features, but they fell a tiny bit short of being enterprise ready (consistently broke certain tables, etc )- but we're on RC2, so If you're on RC3 this might be mature enough for

Re: Whats the best idea to keep DB under version control or under sync with server?

2008-10-30 Thread [EMAIL PROTECTED]
There are a bunch of tools for a bunch of operating systems (and a bunch of databases). I have only ever used MySQL, so this will concern itself with that db. If you need to keep track of charsets and collations you should choose your weapon carefully. For Mac OS X I have only found Navicat

Renaming cake folder

2008-10-30 Thread zorah
Hi Everyone, Is there a way to rename the folder /cake to /app_engine or something like that Any input is appreciated. Regards, Jed --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this

Re: Renaming cake folder

2008-10-30 Thread Jon Molesa
Yeah, just rename it and then edit CAKE_CORE_INCLUDE_PATH index.php in webroot to use app_engine instead. *On Thu, Oct 30, 2008 at 07:10:17AM -0700 zorah [EMAIL PROTECTED] wrote: Date: Thu, 30 Oct 2008 07:10:17 -0700 (PDT) From: zorah [EMAIL PROTECTED] Subject: Renaming cake folder To:

Looking for suggestion to filter data in cakephp

2008-10-30 Thread mario
Hello everyone, I'm planning to include filters in my new project wherein it will allow the user to filter or show only the information that he/she wants. Of course there would be a search form (textfield,combobox,checkbox, submit button) for this relative to my tables' fieldnames in the

$form-end('Submit');

2008-10-30 Thread MDB
Hello all, is there a way to make this a link rather than a button? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from

Re: HABTM in rc3 need now field id in link table.

2008-10-30 Thread teknoid
Doesn't even matter so much in terms of cake. It's a simple DB design issue. Each record must (should really) have a unique identifier. Considering cake doesn't support compound (or composite) keys it makes the 'id' (primary key column) necessary. First example that popped into my head is a

Re: Looking for suggestion to filter data in cakephp

2008-10-30 Thread [EMAIL PROTECTED]
First I'll admit I did not read through all your code. But I think I get what you are doing. I created a filtering system about a year ago. I wanted/needed something that worked a bit like the find feature in Mac OS X Finder, or in some SQL-GUIs I have used. If you have see this you know what I

Re: PHPShop v2 is a cake app!

2008-10-30 Thread BrendonKoz
I was quite sure it wasn't an issue with the phpshop website (as they declared a sans-serif font family fallback in their CSS), but...I also have Safari 3 (up to date) for Windows installed and still didn't notice an issue. I'm thinking it may be one major cause, but not the only cause. Oh

Re: $form-end('Submit');

2008-10-30 Thread teknoid
In order to have your links triggering a form submit, you'll need to add some JS. On Oct 30, 11:25 am, MDB [EMAIL PROTECTED] wrote: Hello all, is there a way to make this a link rather than a button? --~--~-~--~~~---~--~~ You received this message because you are

Re: PHP 4 signup user problem with created date

2008-10-30 Thread jero
http://groups.google.com/group/cake-php/browse_thread/thread/ddc2025d15a3248a/26971abae06d13e5?lnk=gstq=created+auto#08adaf2645cf2d30 On 13 oct, 19:07, Azril Nazli [EMAIL PROTECTED] wrote: Here is my forum developed in cakephphttp://forum.protonmania.com I have a simple User model withe these

Re: Looking for suggestion to filter data in cakephp

2008-10-30 Thread mario
Thanks Martin. That gave me a bit of an idea of what I'm going to do. And yes I want to know the specific details on how you implemented it. It would also be good if I could see some snippets of your code (model,controller,view) to further understand what you're trying to explain. Btw, I'm

Re: HABTM in rc3 need now field id in link table.

2008-10-30 Thread [EMAIL PROTECTED]
I think we may be getting a bit off track. Are we discussing schools of though on db design CakePHP requirements of application development? For the table articles_tags the unique identifier is the combination of the two ids. Adding a third field called id and use that as another unique

Re: HABTM in rc3 need now field id in link table.

2008-10-30 Thread teknoid
I think we may be getting a bit off track. Are we discussing schools of though on db design CakePHP requirements of application development? Both. Again my point is that, uniqueness of records is a necessity and due to lack of compound key support you need 'id' for cake to function properly. If

Re: Cake roadmap - Gwoo's Japan talk

2008-10-30 Thread Gwoo
The focus right now is on finalizing 1.2 and we'd like to keep it that way until there is an official stable release. At that point the roadmap for 1.3 and 2.0 will be discussed and put into place. The basics are there and anyone is free to contribute ideas in the form of RFC or enhancement

Re: Login Redirect not Redirecting

2008-10-30 Thread thatsgreat2345
Thanks I totally didn't notice I was putting Users instead of User, it works great now thanks a ton! On Oct 30, 2:24 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Try: e($form-create('User',array('action'='login'))); Possibly also: e($form-input('User.username'));

Re: $form-end('Submit');

2008-10-30 Thread MDB
How do you set the from name then? This is what my form looks like now: echo $form-create(null, array('controller' = 'calendar', 'action' = 'scheduleCustomerAppointment')); On Oct 30, 11:45 am, teknoid [EMAIL PROTECTED] wrote: In order to have your links triggering a form submit, you'll

Re: Question about Data Sanitation in CAKEPHP

2008-10-30 Thread Gwoo
The DBO layer handles proper escaping of your data to prevent SQL injection. You do not need to use Sanitize unless you are doing something out of the ordinary. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP

Re: Admin + Members suggested setup??

2008-10-30 Thread Brenton B
Is the Admin routing intended as strictly for Root Admin? Or anyone that can log in? just seems a bit vague. On Oct 29, 11:54 am, Brenton B [EMAIL PROTECTED] wrote: Essentially ... what makes the Admin Routing so special, and why should I use it? What's the advantage over just having all the

Delete Auth Cookie on Logout

2008-10-30 Thread thatsgreat2345
I have a users controller that when logs in redirects to another controller that manages the redirects so if an admin logs in it sends them to the admin controller and if a customer logs in it sends them to the customers controller. They both have different access levels, so when I logout I want

Re: mail component in shell

2008-10-30 Thread LunarDraco
I build and test all my code as a normal controller. I create a normal view for my normal action which will show me the contents of the /view/elements/email/html/ view. The contents of this view are: ?php echo $this-renderElement('email/html/projectemail'); ? This allows me to view the

Re: Delete Auth Cookie on Logout

2008-10-30 Thread teknoid
Auth doesn't set any cookies... logout() should handle deleting the session for you. try to pr($this-Session-read()); anywhere after logout and see what happens. maybe the problem is somewhere else On Oct 30, 3:13 pm, thatsgreat2345 [EMAIL PROTECTED] wrote: I have a users controller that when

Re: Delete Auth Cookie on Logout

2008-10-30 Thread thatsgreat2345
When I do a pr of it , on logout it does a dump of all the data still in the session. Array ( [Config] = Array ( [userAgent] = f221f8a145cf92f820aefa5fc4a585bb [time] = 1225399272 [rand] = 1107590627 [timeout] = 7 ) [Auth]

Re: Delete Auth Cookie on Logout

2008-10-30 Thread thatsgreat2345
I have logout going back to the login page if this is the problem xD On Oct 30, 1:22 pm, thatsgreat2345 [EMAIL PROTECTED] wrote: When I do a pr of it , on logout it does a dump of all the data still in the session. Array (     [Config] = Array         (             [userAgent] =

Re: Delete Auth Cookie on Logout

2008-10-30 Thread thatsgreat2345
Not redirecting to the login page fixed it, I plan on sending it to the homepage after logout but the home page hasn't been created yet thus why i was just sending it back to the login page. On Oct 30, 1:22 pm, thatsgreat2345 [EMAIL PROTECTED] wrote: I have logout going back to the login page

Test Suite and HABTM Models - Not Working

2008-10-30 Thread MikeB
I'm having a problem with the Cake Test Suite throwing errors about HABTM join tables not being found. I've successfully recreated the problem on a much smaller scale. I've created a very basic 3 table database: posts (id, name) posts_tags (post_id, tag_id) tags (id, name) I've baked each

Re: Whats the best idea to keep DB under version control or under sync with server?

2008-10-30 Thread Abhimanyu Grover
Thanks for your replies guys. I am trying out all options right now, will let you know my feedback soon. On Oct 30, 7:07 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: There are a bunch of tools for a bunch of operating systems (and a bunch of databases). I have only ever used MySQL, so this

Jquery or Scriptalicious?

2008-10-30 Thread Matthieu
Hello, I'm gonna create a web app using CakePHP but I'm confused about chosing between Jquery or Scriptalious? Which one should I choose? Does it really matter? What's the differences between them? tks --~--~-~--~~~---~--~~ You received this message because you

Re: Whats the best idea to keep DB under version control or under sync with server?

2008-10-30 Thread Abhimanyu Grover
Thanks, looks like Cake schema would be the only problem solver in my case. @the_woodsman give it a try, works very well with RC3. On Oct 30, 5:36 pm, Joel Perras [EMAIL PROTECTED] wrote: Take a look at the built-in Cake schema shell. $ cake schema help -J. On Oct 30, 8:21 am, Abhimanyu

Re: Jquery or Scriptalicious?

2008-10-30 Thread jjh
Personally, I use jQuery because I like the lightweight library. cakePHP does have Helper that works together with Prototype which can make development a bit easier. I think what it comes down to is which library you are more comfortable working with. On Oct 30, 3:49 pm, Matthieu [EMAIL

Re: Whats the best idea to keep DB under version control or under sync with server?

2008-10-30 Thread Abhimanyu Grover
I posted a small tutorial on same: http://www.gigapromoters.com/blog/2008/10/30/how-to-keep-your-database-under-version-control/ Hoping it will help others. On Oct 30, 5:36 pm, Joel Perras [EMAIL PROTECTED] wrote: Take a look at the built-in Cake schema shell. $ cake schema help -J. On

Re: Post Data

2008-10-30 Thread thatsgreat2345
add debug($this-data); to your controller that is receiving the submitted data. It will display the structure of $this-data On Oct 30, 6:59 am, MDB [EMAIL PROTECTED] wrote: How do you get form data that is not part of a controller?  I have a select / drop down box called dobDay, then in the

Re: Jquery or Scriptalicious?

2008-10-30 Thread 703designs
jQuery is lighter and better engineered. It's becoming the runaway favorite amongst web developers right now. On Oct 30, 8:00 pm, jjh [EMAIL PROTECTED] wrote: Personally, I use jQuery because I like the lightweight library. cakePHP does have Helper that works together with Prototype which can

Re: Jquery or Scriptalicious?

2008-10-30 Thread teknoid
another vote for jquery On Oct 30, 6:49 pm, Matthieu [EMAIL PROTECTED] wrote: Hello, I'm gonna create a web app using CakePHP but I'm confused about chosing between Jquery or Scriptalious? Which one should I choose? Does it really matter? What's the differences between them? tks

Re: Jquery or Scriptalicious?

2008-10-30 Thread Brett Wilton
Don't mean to hijack this threadbut Anyone recommend some good articles for jquery and cakephp ? Or any recommend jquery books ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this

Re: Test Suite and HABTM Models - Not Working

2008-10-30 Thread Anupom
Hi Mike, I think the RC3 bake script still generates old style code, like the following - App::import('Model', 'Post'); class TestPost extends Post { var $cacheSources = false; var $useDbConfig = 'test_suite'; } class PostTestCase extends CakeTestCase { var $Post = null; var

Re: Jquery or Scriptalicious?

2008-10-30 Thread Anupom
JQuery is a complete Javascript library whereas Scriptaculous is a JS animation library - which is kinda like addon to the Prototype library ( they call it a framework though! ). How can we compare them, I think you want to chose between jQuery and Prototype+Scriptaculous? My vote will

Re: Renaming cake folder

2008-10-30 Thread zorah
Thanks Jon. It worked out not as i wanted because the cake folder is still there i.e it is now /app_engine/cake But i guess thats ok. I appreciate your help :) On Oct 30, 10:33 pm, Jon Molesa [EMAIL PROTECTED] wrote: Yeah, just rename it and then edit CAKE_CORE_INCLUDE_PATH index.php in

Re: 404 Errors Stop Working When Using Auth Component

2008-10-30 Thread Rahil
Here is how I fixed the above problem: cake/libs/controller/components/auth.php - startup(): $isAllowed = ( $this-allowedActions == array('*') || in_array($controller-action, $this-allowedActions) ||