Re: Bake Screencast not Working?

2010-03-15 Thread Jeremy Burns
I have this problem too. If you view the page source you'll see the URL to where the screen casts actually are. I find that if you place that URL directly into your browser's address bar you can play them. However, some of them have no sound. Jeremy Burns jeremybu...@me.com On 14 Mar 2010,

Re: Bake Screencast not Working?

2010-03-15 Thread John Andersen
I don't have quicktime installed, but extracted the source address from the page: http://ia340902.us.archive.org/0/items/SettingUpTheCakephpConsoleOnWindows/windows_console_setup.mov which I could open and view with VLC with sound. Enjoy, John On Mar 15, 12:16 am, mailman nmail...@shaw.ca

Re: Data Validation not working

2010-03-15 Thread Lucca Mordente
Probably there is an error at database level. Make sure your server table structure and constraints are the same of your local machine. On 15 mar, 01:20, SeeVik vikramvmalhotra1...@gmail.com wrote: Hello all I am using CakePHP 1.2 and I am trying to implement a simple form data validation.

Re: PHP 5.3 open short tag does't working on cakePHP 1.2.6

2010-03-15 Thread jacmoe
I strongly advise not using them! They doesn't make the template more clean - it makes it much harder to spot the PHP code. Allow me to quote from debuggable.com: The first thing I recommend is using the fully qualified syntax (?php ?) for php tags instead of the short one (? ?). Why? Well

Using 2 tables in a function

2010-03-15 Thread Chrriss
Hi! I have a function where I use a different table from my model: $this-User-Rolling-table = 'rolling_tmps'; then I make a request: $modifyModel = $this-User-Rolling-find('first', array('conditions' = array('Rolling.id' = $id))); then I try to change the table for the second time:

Help a noob with a session(?) issue

2010-03-15 Thread jorgt...@gmail.com
I keep getting these error messages, they don't show up every time I view a page, but every 20th pageview or so. My tmp and session directory are set chmod 777. I've tried switching the session engine from php to cake's own, but that didn't make a difference. Has anyone come across this before, or

Re: Using 2 tables in a function

2010-03-15 Thread John Andersen
Don't do that! Do it the way that CakePHP expects you to work with the database! :) Create another model for the rolling_tmps table. Load this model in the controller, when you need it and where you need it, then perform your processing using both models. Enjoy, John On Mar 15, 2:57 pm,

Re: Using 2 tables in a function

2010-03-15 Thread Chrriss
Thank you! It works now :) On 15 mar, 14:40, John Andersen j.andersen...@gmail.com wrote: Don't do that! Do it the way that CakePHP expects you to work with the database! :) Create another model for the rolling_tmps table. Load this model in the controller, when you need it and where you

Re: Help a noob with a session(?) issue

2010-03-15 Thread Julian 86
How are you working on the server?? Did you push the new code with a ftp programm? Then you override the permissions of the tmp directory... On 15 Mrz., 14:19, jorgt...@gmail.com jorgt...@gmail.com wrote: I keep getting these error messages, they don't show up every time I view a page, but

Re: View cache with theme

2010-03-15 Thread Maury
That's right. However, I would like to cache the complete view, separeted by theme. It is easy to explain. On my system the stores use different themes. And I want to cache by thema, since the shops are in the same project. Thank you very much. On 13 mar, 07:00, John Andersen

Re: View cache with theme

2010-03-15 Thread Maury
That's right. However, I would like to cache the complete view, separeted by theme. It is easy to explain. On my system the stores use different themes. And I want to cache by thema, since the shops are in the same project. Thank you very much. On 13 mar, 07:00, John Andersen

Re: Concept of seamless registration

2010-03-15 Thread Yura Linnyk
LunarDraco, thanks for feedback, but are you sure you are not overly dramatic? What is the underlying danger? That users will learn to follow links to access their accounts and then scammers get them? I disclaimed in the very beginning, that you probably won't want to implement a seamless

Tree behaviour when parent is in other table?

2010-03-15 Thread LDSign
Hi I use the tree behaviour mainly for sorting items (with moveup/ movedown). These items have their parents in an other table (foreign key). The parent_id from the tree will be left null. Of course this will make some trouble when moving the items around. How could I tell CakePHP to look for a

Xampp Lite and CakePHP error

2010-03-15 Thread Celso
I am migrating my cakephp app from USBwebserver to xampplite and i getting this error: Error: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you

Re: Xampp Lite and CakePHP error

2010-03-15 Thread Bernardo Vieira
Just configure the propper timezone in php.ini date.timezone setting: http://www.php.net/manual/en/datetime.configuration.php date.timezone = America/Sao_Paulo On Mon, Mar 15, 2010 at 12:59 PM, Celso cels...@gmail.com wrote: I am migrating my cakephp app from USBwebserver to xampplite and i

Re: Xampp Lite and CakePHP error

2010-03-15 Thread Celso
THANKS On 15 mar, 13:15, Bernardo Vieira bvieira.li...@gmail.com wrote: Just configure the propper timezone in php.ini date.timezone setting:http://www.php.net/manual/en/datetime.configuration.php date.timezone = America/Sao_Paulo On Mon, Mar 15, 2010 at 12:59 PM, Celso

Re: Tree behaviour when parent is in other table?

2010-03-15 Thread Jon Bennett
I use the tree behaviour mainly for sorting items (with moveup/ movedown). These items have their parents in an other table (foreign key). The parent_id from the tree will be left null. Of course this will make some trouble when moving the items around. How could I tell CakePHP to look for a

Re: Tree behaviour when parent is in other table?

2010-03-15 Thread Jon Bennett
Think of it like an user/group relation with two tables. Each user belongs to only one group. Now I would like to move the user user up and down in an automagic way... Ahh! ok, in that case, you've gone about it slightly the wrong way. Your User model isn't a tree, teh groups ahh. You don't

Cake 1.3 javascript upgrade issue

2010-03-15 Thread jacmoe
Hi Group :) This code was working perfectly fine in Cake 1.2x : ?php echo $this-Html-scriptBlock(function showTab(name) { var f = $$('div#content .tab-content'); for(var i=0; if.length; i++){ Element.hide(f[i]); } var f = $$('div.tabs a'); for(var

Re: Concept of seamless registration

2010-03-15 Thread jacmoe
Yura The funny thing is that what you're trying to do, OpenID already does: When visiting a site with OpenID enabled, you just paste your OpenID link into the login box, hit enter, and you're logged in. :) Just one link. All over the internet. If you want to act as an OpenID host, you can do

Re: Using 2 tables in a function

2010-03-15 Thread Dr. Loboto
If you really need to change current model table use setSource($newTableName) method of model. On Mar 15, 6:57 pm, Chrriss polet...@wanadoo.fr wrote: Hi! I have a function where I use a different table from my model: $this-User-Rolling-table = 'rolling_tmps'; then I make a request:

Re: Tree behaviour when parent is in other table?

2010-03-15 Thread LDSign
Hi Thank you for your help. Regarding to the user/group-relation: I would like to move a user up and down in ONE specified group. There are users in other groups for example which should not interfer with this particular reorder-action. Example: User, Group, lft, right UserA, GroupA, 1, 2

JSON

2010-03-15 Thread SonnyBurnette
Is there anyway to limit an action to only JSON or XML? I know there is an isXML() method but how do I check for JSON? I am currently using: if ($this-RequestHandler-ext == 'json')... Is there a better way than checking for extension? Check out the new CakePHP Questions site http://cakeqs.org

Show text message on Session flash from different element

2010-03-15 Thread tristan_ph
Hi, I am actually migrating my project to CakePHP 1.3. Before, I was using a custom layout for flash messages. For example. $this-Session-setFlash('some message', 'custom'); Then, I found out that in 1.3 they moved this to elements, so I need to move my app/views/layout/custom.ctp to

Re: Show text message on Session flash from different element

2010-03-15 Thread tristan_ph
Hi guys, I already solved the problem. It is now replaced by $message variable to display the message on custom element from Session::setFlash method() On Mar 16, 1:46 am, tristan_ph tristanpera...@gmail.com wrote: Hi, I am actually migrating my project to CakePHP 1.3. Before, I was using a

Adding a new counter cache

2010-03-15 Thread Brenda
I'm upgrading an existing model to include counters for some of the hasMany relationships. They all start out as zero, even though there are many hasMany records; each record gets updated once a save/delete occurs. Is there any way to tell Cake to go through and update all the counters, so I can

Filter automagic drop down combo box

2010-03-15 Thread Travis
I am working on a farm management app, and have a quick combo box automagic question. Because fields (a grouping of a crop/acres/harvest yields) vary greatly from year to year, I have decided its best to create a new set of all fields each year. The user needs to be able to create events for a

Re: Concept of seamless registration

2010-03-15 Thread Yura Linnyk
Jacob, I am totally fine being persuaded :) I may be totally wrong and that's why I started the talk, because I wanted to learn other opinions. Yet I think there's still not much sites that have OpenID registration enabled, and on another side users aren't used to it. That's why I tried it other

Re: Tree behaviour when parent is in other table?

2010-03-15 Thread Jon Bennett
hi, Thank you for your help. Regarding to the user/group-relation: I would like to move a user up and down in ONE specified group. There are users in other groups for example which should not interfer with this particular reorder-action. Example: User, Group, lft, right UserA, GroupA,

Re: PHP 5.3 open short tag does't working on cakePHP 1.2.6

2010-03-15 Thread anak newbie
Thanks Jacob! I see it then i should change all short_open_tags in my many apps and it's meaning pain :) cheers On Mon, 2010-03-15 at 05:05 -0700, jacmoe wrote: I strongly advise not using them! They doesn't make the template more clean - it makes it much harder to spot the PHP code.

Re: JSON

2010-03-15 Thread Sam Sherlock
if($this-.params['url']['ext'] != 'xml') { // set error 404 or whatever } // continue with controller action - S On 15 March 2010 17:44, SonnyBurnette schuch...@gmail.com wrote: Is there anyway to limit an action to only JSON or XML? I know there is an isXML() method but how do I

Re: Tree behaviour when parent is in other table?

2010-03-15 Thread LDSign
Thats exactly why I seperated these things into two tables. They don't belong together in a semantical manner. User/group is only an example, but it shows what I mean. To make it clear. Table A - Item 1 + Table B - Item 1 + Table B - Item 2 + Table B - Item 3 Table A- Item 2 + Table

Re: Adding a new counter cache

2010-03-15 Thread John Andersen
Your second option sounds correct for me! No need to mess around with PHP when the database and a little script can handle it! At least I would use SQL for it :) Enjoy, John On Mar 15, 8:16 pm, Brenda rld0...@gmail.com wrote: I'm upgrading an existing model to include counters for some of the

Re: Tree behaviour when parent is in other table?

2010-03-15 Thread Jon Bennett
Thats exactly why I seperated these things into two tables. They don't belong together in a semantical manner. User/group is only an example, but it shows what I mean. But you simply can't have an MTTP tree spread across tables, as the branches and their positions are instrinictly linked. It's

Broken URLs prevent app_controllers beforeFilter from executing

2010-03-15 Thread Matthew Dunham
I'm passing variables into my main layout in the beforeFilter() method using $this-set in my main app_controller, However, if someone visits a broken URL (where you would get a missing controller|action|view message, the beforeFilter doesn't run so bits of the layout are functioning correctly.

Fatal error: Call to a member function setDate() on a non-object in some_Controller

2010-03-15 Thread Amish
hello, am new to cakephp. Would really appreciate if anyone could help me out. Am just trying to call a model function from controller, and getting the above error. My model code is, class Word extends AppModel { var $useTable = false; function setDate($date1, $date2) { // some code to get

RE: Filter automagic drop down combo box

2010-03-15 Thread Alan Asher
Change your $this-set('fields',$this-Event-Fields-findAllBySeason('2010')); To say $this-set('fields',$this-Event-Fields-find('list',array('conditions'=ar ray('season'='2010'; Basically findby is a normal sql query and find('list') is a special query that returns an array of key value

Re: Data Validation not working

2010-03-15 Thread SeeVik
Hello there Lucca I double checked the server database. Its the same as local database. Since I am doing this application for test, there is only one table, not much room for error. Any other ideas as to how I can isolate the problem? Thanks and Regards ShiVik On Mar 15, 6:51 pm, Lucca

Re: CakeFest IV - America - Help us pick a location!

2010-03-15 Thread Jeffrey Hill
New York, or somewhere in Florida if it's this fall/winter (Tampa/ Orlando/Miami) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to

Kaching: CakePHP Shopping Cart Framework Plugin

2010-03-15 Thread Mike
If your looking for a shoppingcart plugin for CakePHP that is distributed under the MIT License, here you go... http://code.google.com/p/kaching-php Kaching is tailored for developers that want full control on building their online store. Kaching provides the store administration and lots of

Re: Show text message on Session flash from different element

2010-03-15 Thread tristan_ph
Now, my next problem is how to display the flash message in the auth session in login page. My login page looks like this: fieldset ?php if ($this-Session-check('Message.auth')) $this-Session-flash('auth'); ? legend?php

Re: Data Validation not working

2010-03-15 Thread Dr. Loboto
Check model filename - it should be lowercased. If your model is not loaded you'll note absence of validation rules. On Mar 16, 7:57 am, SeeVik vikramvmalhotra1...@gmail.com wrote: Hello there Lucca I double checked the server database. Its the same as local database. Since I am doing this

Re: Broken URLs prevent app_controllers beforeFilter from executing

2010-03-15 Thread Dr. Loboto
I know the only way - create AppError, define there general error() method and run callbacks explicitly. In case of missing controller| action|view $this-controller variable there will be of class CakeErrorController. If someone know better way - you're welcome. On Mar 16, 12:00 am, Matthew