Re: error in post

2008-09-09 Thread Kalt
Hi, You have to include the FormHelper first, in your UsersController or in the AppController : var $helpers = array('Form', 'Html', 'Javascript'); But in the last version of Cake, it's included automatically. What version are you working with ? wael altahawi a écrit : hi i m trying to

Re: error in post

2008-09-09 Thread wael altahawi
Thanks for your answer i m working on cake_1.1.19 i have included var $helpers = array('Form', 'Html', 'Javascript'); but also i get *Fatal error*: Call to undefined method FormHelper::create() in * c:\AppServ\www\applogic\app\views\users\index.ctp* on line *1* On Tue, Sep 9, 2008 at 10:16 AM,

Re: error in post

2008-09-09 Thread David C. Zentgraf
See: http://groups.google.com/group/cake-php/msg/3a0042bc4063ed68?hl=en The documentation you're reading is for a newer version of Cake. On 9 Sep 2008, at 15:56, wael altahawi wrote: Thanks for your answer i m working on cake_1.1.19 i have included var $helpers = array('Form', 'Html',

Re: cake schema run create doesn't keep my connection argument?!

2008-09-09 Thread avairet
Ok, nobody answer... but I have tested again with Eclipse's console and it works ! I don't understand why there is an issue with Windows CLI... On 8 sep, 14:56, avairet [EMAIL PROTECTED] wrote: Hi, When I launch cake schema run create DbAcl -connection club on a CLI, tables Aros, Acos,

Re: missing view

2008-09-09 Thread David C. Zentgraf
The URL /test implies /test/index, which means Cake will look for this: app/controllers/test_controller.php (needs to have function index()) app/views/test/index.ctp (or .thtml for Cake 1.1) app/views/layouts/default.ctp is optional, you don't need it in the beginning. Eventually you will

Re: missing view

2008-09-09 Thread David Christopher Zentgraf
On 9 Sep 2008, at 16:28, David C. Zentgraf wrote: The URL /test implies /test/index, which means Cake will look for this: app/controllers/test_controller.php (needs to have function index()) app/views/test/index.ctp (or .thtml for Cake 1.1) Forgot of course that test_controller.php

Re: error in post

2008-09-09 Thread wael altahawi
Thanks very much it's working fine now On Tue, Sep 9, 2008 at 11:09 AM, David C. Zentgraf [EMAIL PROTECTED] wrote: See: http://groups.google.com/group/cake-php/msg/3a0042bc4063ed68?hl=en The documentation you're reading is for a newer version of Cake. On 9 Sep 2008, at 15:56, wael altahawi

Find: conditions and fields

2008-09-09 Thread Liebermann, Anja Carolin
Hello, I still have some problems with the parameters for find I have two different sets of parameters but I have the impression the result doesn't react on them, but simply gives me a list with nearly all of my datasets: Version 1: $params = array( 'conditions' =

Re: Find: conditions and fields

2008-09-09 Thread David C. Zentgraf
See: http://groups.google.com/group/cake-php/msg/7d17a42d764ccce4?hl=en Your problem is not in your conditions, it's right here: $this-set('textmasters', $this-paginate()); Yes, this in fact does give you *everything*. On 9 Sep 2008, at 17:04, Liebermann, Anja Carolin wrote: Hello, I

Re: Best profiler for cake php?

2008-09-09 Thread RichardAtHome
I'd also like this info. XDebug crashes my apache (on windows) too :-( On Sep 9, 5:42 am, Dianne van Dulken [EMAIL PROTECTED] wrote: Hi, I was just wondering what profiler everyone else was using.  I'm having trouble finding one that will work with my cakephp setup. Xdebug causes my

Re: Find: conditions and fields

2008-09-09 Thread RichardAtHome
What David said. You have to add your conditions to the paginate call. Check out the google groups FAQ: http://groups.google.com/group/cake-php/web/faq Scroll down to: How to add paginate support for custom queries? On Sep 9, 9:13 am, David C. Zentgraf [EMAIL PROTECTED] wrote:

Re: Error: C:/xampp2/htdocs/test/cake/console\config\ not found

2008-09-09 Thread Malcolm Krugger
Toby Type in the full path of everything c:/full/path/to/php.exe c:/full/path/to/cakephp/cake/console/cake bake and it works like a charm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post

AW: Find: conditions and fields

2008-09-09 Thread Liebermann, Anja Carolin
Thank you both. I will try to work with this and coem back, if I get stuck somewhere. Anja -Ursprüngliche Nachricht- Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von RichardAtHome Gesendet: Dienstag, 9. September 2008 10:46 An: CakePHP Betreff: Re: Find:

fatal error Cannot access empty property in view.php on line 744

2008-09-09 Thread Malcolm Krugger
Using the latest cake 1.2 version All was fine then one day suddenly I started receiving this error after I had freshly baked an application fatal error Cannot access empty property in view.php on line 744 What could be the cause of this strange error ? Malcom

Re: fatal error Cannot access empty property in view.php on line 744

2008-09-09 Thread Malcolm Krugger
Ok I found it var $helpers = array('Html', 'Form', ''); Changed to var $helpers = array('Html', 'Form'); and evertything as usual works like a charm Malcolm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Can't seem to do an update when calling save() on model

2008-09-09 Thread John Jackson
Pretty sure the code I'm using should be causing the save() function to do a MySQL update instead of insert: $this-User-id = 0; // static here for this example $this-User-save($this-data); But this is resulting in an insert, according to the output from debug level 2. What I'm trying to do is

Re: Best profiler for cake php?

2008-09-09 Thread Dardo Sordi Bogado
I'm using XDebug and it's working great (on linux). On Tue, Sep 9, 2008 at 5:42 AM, RichardAtHome [EMAIL PROTECTED] wrote: I'd also like this info. XDebug crashes my apache (on windows) too :-( On Sep 9, 5:42 am, Dianne van Dulken [EMAIL PROTECTED] wrote: Hi, I was just wondering what

Re: Best profiler for cake php?

2008-09-09 Thread djiize
Do you have a PHP accelerator (as Zend Optimizer) ? Try do disabled it On 9 sep, 10:42, RichardAtHome [EMAIL PROTECTED] wrote: I'd also like this info. XDebug crashes my apache (on windows) too :-( On Sep 9, 5:42 am, Dianne  van Dulken [EMAIL PROTECTED] wrote: Hi, I was just wondering

Re: Can't seem to do an update when calling save() on model

2008-09-09 Thread John Jackson
Thanks for the reply, but I now know that is the correct way to perform an update as I have just figured out what the problem was. Apparently, I can not use an id of 0. Changing the user's id to another value greater than 0 fixed the problem. Is this a bug or intended functionality? On Sep 9,

Re: Can't seem to do an update when calling save() on model

2008-09-09 Thread [EMAIL PROTECTED]
Hi John, When calling save the id should be part of the data. Setting it on the Model before saving does not work as you expect it to. Are you sure the id is in the data array? /Martin On Sep 9, 12:34 pm, John Jackson [EMAIL PROTECTED] wrote: Pretty sure the code I'm using should be causing

Re: Can't seem to do an update when calling save() on model

2008-09-09 Thread David C. Zentgraf
I'd venture a guess that if your id column in the database is auto_incrementing (which it should be), it usually can't be 0. Hence Cake doesn't care about 0 ids. On 9 Sep 2008, at 20:06, John Jackson wrote: Thanks for the reply, but I now know that is the correct way to perform an update

Re: Can't seem to do an update when calling save() on model

2008-09-09 Thread Adam Royle
It is intended functionality. First value for auto_increment id in mysql == 1 Not sure about all other dbs, but on others I have worked with it is the same. On Sep 9, 9:06 pm, John Jackson [EMAIL PROTECTED] wrote: Thanks for the reply, but I now know that is the correct way to perform an

Re: Can't seem to do an update when calling save() on model

2008-09-09 Thread John Jackson
Yeah, the reason there was a 0 id was because I manually entered 0, for reasons I forget now. Oh well, wish I had thought about changing the id earlier. On Sep 9, 12:10 pm, David C. Zentgraf [EMAIL PROTECTED] wrote: I'd venture a guess that if your id column in the database is  

Re: problem with HABTM find

2008-09-09 Thread rob30
$this-Conference-bindModel(array( 'hasOne' = array( 'ConferencesSphere', 'FilterSphere' = array( 'className' = 'Sphere', 'foreignKey' = false, 'conditions' = array('FilterSphere.id

Missing Database Table

2008-09-09 Thread forrestgump
Hey guys, I'm new to cakephp and can't wait to get it fired up.i was creating a test app...and i followed the following steps: 1) created a database cake 2) placed my cake folder into my www folder and renamed it to todo 3) created a table items in database cake 4) configured my

Bakery Plan

2008-09-09 Thread Navin
Hi, My Name is Navin from a business family doing bakery business,, I am looking for expansion of my business. Any experirnced inthis business Advice... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP

Re: URL not Found Error

2008-09-09 Thread Sabrina Akter
i set up all the configuration newly.and also create all the files newly. Apache and mod_rewtrite are perfectly ok. and all the files are in right place still when i trying to access http://localhost/project/caketoodoo/tasks/index it showing URL not found error!! please anyone can help me?? On

Including libraries import vendors

2008-09-09 Thread cOLoMBox!
Hello I'm working with cakephp and vogoo (a Recommendation Engine). I'm trying to include the file vogoo.php into a Service controller for service managing, also I tested if import worked properly so I included a functionality of vogoo function addRating(){ App::import(Vendor,

Re: unwanted characters appear on views

2008-09-09 Thread sebastian
Hi, it took me a while but in the end i found the class with two php closing tags. Thanks a lot for your help. On 4 sep, 21:00, Adam Royle [EMAIL PROTECTED] wrote: Most likely you got a file or a class somewhere that has more than one php closing tag... ?php class Blah { } ? ?

Need help on Install

2008-09-09 Thread Pittore
I have apache2 up and running on my Windows XP Pro laptop I have established the following directory structure: Apache2 htdocs cake When I type http://www.example.com/cake or http://www.example.com/ I get Page not found some kind soul sent me these suggestions: 1. Create a simple

biggner of cake php

2008-09-09 Thread akhilesh
i am new for cake php and i want to learn cake can any one help me? --~--~-~--~~~---~--~~ 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: URL not Found Error

2008-09-09 Thread [EMAIL PROTECTED]
Isn't there one '/' too many in the url ? Shouldn't it be http://localhost/cakePHP/ instead of http://localhost//cakePHP/ ? On Sep 8, 11:04 pm, teknoid [EMAIL PROTECTED] wrote: Make sure that AllowOverride is set to All in your apache conf. Also, double check that mod_rewrite is enabled.

Re: URL not Found Error

2008-09-09 Thread Md.Nur Alam
I think index() function is not Present in your ConTrollers Class. On Mon, Sep 8, 2008 at 4:28 AM, lizzeelike [EMAIL PROTECTED] wrote: i have create all files for creating new blog. but when i try to access the following url http://localhost/cakePHP/posts/index it shows such error: Not

redirect from non www to www

2008-09-09 Thread xz8888
Hi I am working on a problem where I need to redirect all non www urls to www I changed my .htaccess file and it looks like this: IfModule mod_rewrite.c RewriteEngine on RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] RewriteEngine On

Re: Can't seem to do an update when calling save() on model

2008-09-09 Thread RichardAtHome
First value for auto_increment id in mysql == 1 Unless you tell it differently. You can have an autoincrementing field that starts at 21 and increments in 6's if you like :-) On Sep 9, 12:20 pm, Adam Royle [EMAIL PROTECTED] wrote: It is intended functionality. First value for auto_increment

Re: Bakery Plan

2008-09-09 Thread Howard Glynn
If I were you, I'd be investing heavily in high-volume chocolate based cakes, always a winner. On Tue, Sep 9, 2008 at 5:28 AM, Navin [EMAIL PROTECTED] wrote: Hi, My Name is Navin from a business family doing bakery business,, I am looking for expansion of my business. Any experirnced

Re: Missing Database Table

2008-09-09 Thread Günther Theilen
Hi, forrestgump: Error: Database table itemss for model Items was not found. you should check your model. Is it called items instead of item? regards Guenther --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

AW: Find: conditions and fields

2008-09-09 Thread Liebermann, Anja Carolin
Great! That worked out after some cofiguring and thinking. Here is the result, I hope this example helps someone someday: In the controller: function getHotelmastertexte($hotelmaster_id = null) { if (!empty($this-data)) { //additional

Re: redirect from non www to www

2008-09-09 Thread [EMAIL PROTECTED]
I did it on my side by looking for URLs that don't have the www RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com$ [NC] RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Acl and Auth at record level with crud mode

2008-09-09 Thread mark_story
There is one problem with nesting records underneath each action. Your Aco table becomes enormous, and if you add actions / controllers to your application you end up with a monstrous mess. I think its best to keep a separate branch of models --- posts -- 1 --- 2 etc. And set the crud

Mail server

2008-09-09 Thread bartez
Hey all, Anyone know anything about integrating email onto a server, as in send AND receive mail using smtp and POP3? cheers alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this

p28n infinite redirect cake 1.2 rc2

2008-09-09 Thread RLR
I have started working on a new app with cakephp 1.2.0.7296 RC2. I would like to use the p28n controller/component which works great with my other apps (1.2.0.5427alpha). As soon as I plug in the code and routes my app crashes. I get an infinite redirect error. I have the following setup:

Re: Need help on Install

2008-09-09 Thread Donkeybob
one word . . . .xampp. for xp, it is the beez kneez . . . set up is easy and everything is done for you. apache, mysql, php . . . .then edit the httpd.conf to add a virtual host. i run many development sites from this configuration On Sep 8, 8:09 pm, Pittore [EMAIL PROTECTED] wrote: I have

Caching help

2008-09-09 Thread Kenchu
http://book.cakephp.org/view/347/Marking-N...ontent-in-Views In the link above they've got a cached page, but still within the cake:nocache tags they access a variable called $newProducts. How is that possible? I've been trying to use the $this-set([...]) function in the action, beforeFilter and

Re: Auth login redirect unreliable?

2008-09-09 Thread Tony Thomas
Plus, the problem I ran into with this solution is that the logout function goes into an infinite loop. I will note that I didn't have problems with redirect until I started using database sessions stopped using mod_rewrite because of restrictions on the shared server I'm using. On Jul 15,

Re: biggner of cake php

2008-09-09 Thread dr. Hannibal Lecter
Well, sure. How about this: http://book.cakephp.org/ http://api.cakephp.org/ http://bakery.cakephp.org/ Good enough? On Sep 9, 11:02 am, akhilesh [EMAIL PROTECTED] wrote: i am new for cake php and i want to learn cake can any one help me? --~--~-~--~~~---~--~~

Re: Mail server

2008-09-09 Thread Gonzalo Servat
On Tue, Sep 9, 2008 at 10:44 AM, bartez [EMAIL PROTECTED] wrote: Hey all, Anyone know anything about integrating email onto a server, as in send AND receive mail using smtp and POP3? This isn't related to CakePHP, bartez. There are plenty of HOWTOs on the subject (here's one:

Re: Bakery Plan

2008-09-09 Thread David C. Zentgraf
I believe this list was looking for an official comestible sponsor to help get Bakers all over the world through all-nighters. Sounds like a great expansion of business to me. On 9 Sep 2008, at 21:57, Howard Glynn wrote: If I were you, I'd be investing heavily in high-volume chocolate

Re: Best profiler for cake php?

2008-09-09 Thread mark_story
I know I've had trouble with xdebug and doing code coverage analysis on windows. However, activeState provide binaries of the newest xDebug builds on their website. And those have been working well for me. -Mark On Sep 9, 6:53 am, djiize [EMAIL PROTECTED] wrote: Do you have a PHP accelerator

Re: biggner of cake php

2008-09-09 Thread Donkeybob
All you have to do is read the manual and run through the blog tutorial. It will get you started. If you have complicated questions, then ask here but not before you research them yourself. Google knows all . . . plus search this group and check out #cakephp on irc.freenode.net. On Sep 9, 9:52 

Re: RE sometimes I wonder if cakeph is worth all the trouble - seems like very steep learning curve.

2008-09-09 Thread mark_story
No one is forcing you to use CakePHP, if you feel you can do it faster in plain PHP then do so. But you will probably end up creating your own framework. So you might as well use something like CakePHP which is already done and proven to work by thousands of people around the world. Yes there

Re: p28n infinite redirect cake 1.2 rc2

2008-09-09 Thread RLR
The problem seems to be with the routes. When I comment them out I can manually call /P28n/change/eng It seem to be that the Auth component is interfering... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP

Re: Best profiler for cake php?

2008-09-09 Thread teknoid
recent xampp, which includes xdebug works fine for me on a few windows pc's. On Sep 9, 10:01 am, mark_story [EMAIL PROTECTED] wrote: I know I've had trouble with xdebug and doing code coverage analysis on windows.  However, activeState provide binaries of the newest xDebug builds on their

Edit forms in Internet Explorer

2008-09-09 Thread chicklin
Hello, using cake_1.2.0.7296-rc2 under Apache/PHP5/Windows I'm having a problem where when I submit a form to edit a database entity, the controller sometimes does not recognize $this-data as being set and sends me back to the orignal edit form. The weird thing is, that if I try it a couple

Re: Edit forms in Internet Explorer

2008-09-09 Thread scs
I suggest posting the view and controller. The first thing I would look at is there any JavaScript that IE is having issue with. On Sep 9, 10:46 am, chicklin [EMAIL PROTECTED] wrote: Hello, using cake_1.2.0.7296-rc2 under Apache/PHP5/Windows I'm having a problem where when I submit a form to

find() and deeper associations

2008-09-09 Thread [EMAIL PROTECTED]
Hello newsgroup! I have defined the following associations in my models: PostModel: Post _hasMany_ Comments var $hasMany = array( 'Comment' = array( 'className' = 'Comment', 'conditions' = '', 'foreignKey' = 'post_id', ) ); CommentModel: Comment _belongsTo_ User var

Re: AuthComponent using, allowing free access to home.ctp

2008-09-09 Thread BrendonKoz
I'm not sure what you mean when you say: how would you control static pages? Can you explain what you want? I may not know the answer, but someone else might be able to respond if you haven't yet figured it out. On Sep 7, 5:57 am, ojonam [EMAIL PROTECTED] wrote: Hi, thanks, that's what I

Re: find() and deeper associations

2008-09-09 Thread Bernhard J. M. Grün
Hi, This should be solvable with with Containable behavior. Or - if you want to do this with just one query - use the infos you can find in teknoids blog: http://teknoid.wordpress.com/2008/07/17/forcing-an-sql-join-in-cakephp/ Those infos are also present in the manual for 1.2. 2008/9/9 [EMAIL

Re: p28n infinite redirect cake 1.2 rc2

2008-09-09 Thread RLR
The first routing rule is faulty. (I do not know why) When I uncomment it P28n works. On Sep 9, 4:30 pm, RLR [EMAIL PROTECTED] wrote: The problem seems to be with the routes. When I comment them out I can manually call /P28n/change/eng It seem to be that the Auth component is interfering...

Re: Bakery Plan

2008-09-09 Thread mark_story
On Sep 9, 12:28 am, Navin [EMAIL PROTECTED] wrote: Hi, My Name is Navin from a business family doing bakery business,, I am looking for expansion of my business. Any experirnced inthis business Advice... I think you came to the wrong place unfortunately. This is a mailing list about

Caching and autologin from cookies

2008-09-09 Thread Tankist
Hello everyone. I have some trouble with Auth when using caching of main page. I want that users will auto-login when they open main page. Login of auto login from cookies implemented in AppController::beforeFilter: if (!$this-Auth-user()) { $cookie = $this-Cookie-read('Auth.User');

Re: JSON troubles

2008-09-09 Thread Kyle Decot
Okay that is getting more and more strange as I keep trying to get it working. If I am at http://localhost/ and I try to access http://localhost/pages/list.json?state_id=6 then I get the 404 page. However if I am at http://192.168.2.4/ (which is the same site) and try to access http://localhost/

Problem with updating a field

2008-09-09 Thread Okto Silaban
I've asked this question in IRC before, but still didn't get the right solution. Here is the problem : class PdfController extends AppController { function view($id) { //$this-Pdf-id = $id; //$this-Pdf-saveField('viewed', 'Pdf.viewed + 1');

Re: Caching and autologin from cookies

2008-09-09 Thread Tankist
So, im getting solution: In layout: ...if session is null... if ($this-requestAction('users/getUserRole') == 'admin') { echo $this-element('admin_menu'); } in UsersController: function getUserRole() { if (!$this-Auth-user()) { $cookie =

Re: JSON troubles

2008-09-09 Thread hydra12
I've had this problem developing on my macbook using mamp. I finally stopped using mamp and started using the builtin apache server, and I haven't had any more problems. On Sep 9, 11:44 am, Kyle Decot [EMAIL PROTECTED] wrote: Okay that is getting more and more strange as I keep trying to get

Re: JSON troubles

2008-09-09 Thread Kyle Decot
Thanks for the response however I'm using the Built-in apache server. Any other Ideas? --~--~-~--~~~---~--~~ 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

Re: find() and deeper associations

2008-09-09 Thread [EMAIL PROTECTED]
Sorry, I didn't mention that I use cakephp 1.1! I've read the post on teknoids blog. The disadvantage is, that this solution only works for hasOne associations and not for hasMany. But: I used the idea mentioned there and tried to create a LEFT JOIN in the sql-query. I found out, that this is

Re: Bakery Plan

2008-09-09 Thread Donkeybob
can we still talk about chocolate cakes? On Sep 9, 12:19 pm, mark_story [EMAIL PROTECTED] wrote: On Sep 9, 12:28 am, Navin [EMAIL PROTECTED] wrote: Hi, My Name is Navin from a business family doing bakery business,, I am looking for expansion of my business. Any experirnced inthis

Change Auth component will solve hash without salt?

2008-09-09 Thread Yodi Aditya
I have some users table with 2 value , email and password (hash with sha1). Then i using auth component to make login form. To make sure, that auth will using sha1 when hashing password, i'm using : Security::setHash('sha1'); in beforeFilter(). Problem happen when Auth hashing password from

Auth Redirect Problems

2008-09-09 Thread Tony Thomas
If someone is familiar with a post to this group or blog entry that addresses this issue, please let me know. I've spent the morning scouring both with no satisfactory results. I have a cakePHP app on a shared server. In local testing, everything worked fine. But mod_rewrite did not function

Re: Testing a Model with Associations

2008-09-09 Thread Laurent Bois
Hello again I solved my problem. Now i'm trying to unit Test a (child) model M_child having a belongsTo relation to M_parent. I encounter problem when i test a find method written in the child model. I thought , with a recursive value set to 1 (by default), i would get in my resultset one line

Re: Need help on Install

2008-09-09 Thread Jerry Ross
Thanks...install of xampp went like a charm...am running XAMPP Control Panal Application and see Apache, MySQL, FileZilla, and Mercury...but where is CAKE? or am I trying to have my cake and eat it too? Cheers, Pittore - Original Message - From: Donkeybob [EMAIL PROTECTED] To:

Re: Save - problem!

2008-09-09 Thread seanislegend
*bump* On Sep 8, 6:02 pm, seanislegend [EMAIL PROTECTED] wrote: I'm using the TinyMCE editor on a textarea in my CMS I'm building. A problem I've just ran into is when I add images, once saved they end up like this: 'img src=\ alt=\quot;\quot; width=258 height=318 /', obviously due to the

Re: Auth Redirect Problems

2008-09-09 Thread Yodi Aditya
Try using : $this-Auth-loginRedirect = array('controller'='users', 'action'='profile'); on beforeFilter() then function login() { $this-redirect($this-Auth-redirect()); } Yodiaditya - http://re.web.id On 9/9/08, Tony Thomas [EMAIL PROTECTED] wrote: If someone is familiar with a post to this

Re: Vote for CakePHP built-in support for Netbeans 6.5!

2008-09-09 Thread Yodi Aditya
I'm try using netbeans 6.5 beta before. But, know back again to eclipse. if netbeans 6.5 have good feature like eclipse, maybe i'll try again :D On 9/7/08, Okto Silaban [EMAIL PROTECTED] wrote: I've been using Netbeans PHP from the first time playing with CakePHP.. Of course i'll vote..

Re: Default Date Format

2008-09-09 Thread Yodi Aditya
use date function. in controller. for example, date('Y-m-d H:i:s') On 9/8/08, shabba [EMAIL PROTECTED] wrote: How do you set the default formatting for date. Its set to m-d-y as default, this is great, but when you need user interaction and the standard is d-m-Y. Its really not practical to

Re: Need help on Install

2008-09-09 Thread scs
First off read this: http://en.wikipedia.org/wiki/Example.com After that make sure you have your copy of cake in your www folder. Than (if the server is on your machine your working from) try looking at http://localhost/ On Sep 9, 1:23 pm, Jerry Ross [EMAIL PROTECTED] wrote: Thanks...install

Re: Edit forms in Internet Explorer

2008-09-09 Thread chicklin
There is no Javascript in the page whatsoever. If you read through the controller logic, the only way that the form will return to itself without doing anything is if $this-data is not set (i.e. empty($this- data)). Here is the controller: ?php class DomainsController extends AppController {

Re: how to debug console execution?

2008-09-09 Thread Dardo Sordi Bogado
Is possible to debug console shell execution using xDebug or Zend Debugger? Yes, you have to enable (and load) xdebug extension in the cli php.ini. You can check if it is loaded with: php5 -m | grep Xdebug I managed to debug any standard cake execution except console commands due looks

Re: how to debug console execution?

2008-09-09 Thread Erico Franco
2008/9/9 Dardo Sordi Bogado [EMAIL PROTECTED] Is possible to debug console shell execution using xDebug or Zend Debugger? Yes, you have to enable (and load) xdebug extension in the cli php.ini. You can check if it is loaded with: php5 -m | grep Xdebug Hi Dardo, Thanks for the reply,

Issues with 301 Redirect in .htaccess file

2008-09-09 Thread hightechartist
Hi, I have problems with 301 Redirect in .htaccess file. It doesn't work. I am trying to rename on the same file url. Look at what I wrote inside the .htaccess file: IfModule mod_rewrite.c RewriteEngine on RewriteRule^$webroot/[L] RewriteRule(.*) webroot/$1[L]

View

2008-09-09 Thread Panda
Hi, Im new in cake and i have a problem, I have a model called Users, in the view of the method add i want to show a options to add a Group (groups is another model), how can I create a Group since the add view of the Users model. what can I use (ajax, element) an how can I do it?? Please Help

function not found using Oracle cake_1.2.0.7296-rc2

2008-09-09 Thread Anthony Smith
Greetings, I downloaded cake yesterday and I was going through the tutorial and found a wii bit of trouble. I get this message when I go to a page. Fatal error: Call to undefined method DboOracle::fetchResult() in /usr/ local/apache2-development/htdocs/cake/cake/libs/model/datasources/

Cake and oracle (Call to undefined method DboOracle::fetchResult())

2008-09-09 Thread Anthony Smith
I was following along a cake tutorial and I get this message: Fatal error: Call to undefined method DboOracle::fetchResult() in /usr/ local/apache2-development/htdocs/cake/cake/libs/model/datasources/ dbo_source.php on line 345 A google search produced this: https://trac.cakephp.org/ticket/5038

Re: find() and deeper associations

2008-09-09 Thread dw
You just need to set recursive to 2. On Sep 9, 8:20 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello newsgroup! I have defined the following associations in my models: PostModel: Post _hasMany_ Comments var $hasMany = array( 'Comment' = array( 'className' = 'Comment',

Re: View

2008-09-09 Thread David C. Zentgraf
You can always at any time use any model. By default a controller has direct access to the model of the same name. If that model is associated with other models, you have access to them too. $this-User-Group; You can also manually specify which models you would like to use in your

displaying a field other than id in drop down form

2008-09-09 Thread Brian Fidler
I'm sure this is a pretty simple solution so I apologize in advance. I just used bake to create some administrative panels associating a users table with a languages table. There are 8 languages and when I add a user I want to be able to pick the languages they speak from a drop down list. The

Re: redirect from non www to www

2008-09-09 Thread xz8888
Thank you. this worked for me On Sep 9, 9:17 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I did it on my side by looking for URLs that don't have the www RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com$ [NC] RewriteRule ^(.*)$http://www.yourdomain.com/$1[R=301,L]

displaying a field other than id in drop down form

2008-09-09 Thread Brian Fidler
I'm sure this is a pretty simple solution so I apologize in advance. I just used bake to create some administrative panels associating a users table with a languages table. There are 8 languages and when I add a user I want to be able to pick the languages they speak from a drop down list. The

Re: displaying a field other than id in drop down form

2008-09-09 Thread Luiz Poleto
If the view is called from the users controller (the one that references the languages model), then try using: echo $form-input('language_id'); instead. It should generate the combo with the names instead of the id. Regards, Luiz Poleto 2008/9/9 Brian Fidler [EMAIL PROTECTED] I'm sure this is

Re: biggner of cake php

2008-09-09 Thread Kenchu
On Sep 9, 11:02 am, akhilesh [EMAIL PROTECTED] wrote: i am new for cake php and i want to learn cake can any one help me? Id recommend buying a book. I couldnt make out any sense of the tutorials I found online, but once I learnt some things from a book (begining Beginning CakePHP From Novice

Re: displaying a field other than id in drop down form

2008-09-09 Thread Juan Francisco Giménez Silva
El Tue, 9 Sep 2008 16:07:17 -0700 Brian Fidler [EMAIL PROTECTED] escribió: I'm sure this is a pretty simple solution so I apologize in advance. I just used bake to create some administrative panels associating a users table with a languages table. There are 8 languages and when I add a user

Controller w/o model?

2008-09-09 Thread Kenchu
Not all my pages (views) can be linked to a specific model/controller. For example. Imagine a welcome-page of a game-site. On it you'll see alot of different things, not only connected to a single table. It might show some news, some popular forum posts, as well as a list of logged in users. Now

Re: Slash in URL Parameter

2008-09-09 Thread Gustavo Carreno
Hey friend, I've had this discussion with a fellow baker that was trying this and we got to the conclusion that it's not possible to use urlencode(). The reason is that the urlencoded string will be translated and feed to the internal url var( mod_rewrite thing ) and it will have the translated

Re: Controller w/o model?

2008-09-09 Thread Kenchu
I think I just got an answer for my own question. Looking at the pages controller, all you really need to do is make a new controller, set its $uses property to an emtpy array, and then in its action use $this- render('whatviewtouse.ctp'); On Sep 10, 2:27 am, Kenchu [EMAIL PROTECTED] wrote:

Re: displaying a field other than id in drop down form

2008-09-09 Thread Brian Fidler
thanks guys! setting the $displayField worked perfectly! brian On Tue, Sep 9, 2008 at 4:21 PM, Juan Francisco Giménez Silva [EMAIL PROTECTED] wrote: El Tue, 9 Sep 2008 16:07:17 -0700 Brian Fidler [EMAIL PROTECTED] escribió: I'm sure this is a pretty simple solution so I apologize in

Re: Slash in URL Parameter

2008-09-09 Thread David C. Zentgraf
I just stumbled across the opposite problem... :) I had routes set up like this: Router::connect( '/places/:location/:category/*', array('controller' = 'places', 'action' = 'index'), array('location' = '\D+', 'category' = '\D+') ); So a URL like

Re: Controller w/o model?

2008-09-09 Thread Sam Sherlock
I believe a better thing todo would be in the model $useTable = false; Models expect table based on cakes conventions. useTable can be used when your tables names need to be named differently Also something that is really cool is dynamic tables

Re: Need help on Install

2008-09-09 Thread Jerry Ross
Thanks for all your help...I now have example.com up and running and it looks good. Now onto programming. Pittore - Original Message - From: Donkeybob [EMAIL PROTECTED] To: CakePHP cake-php@googlegroups.com Sent: Tuesday, September 09, 2008 6:48 AM Subject: Re: Need help on Install

Model find() and a BETWEEN clause

2008-09-09 Thread Daniel
Hello everyone, I'm trying to perform a find operation on my 'event' model in order to retrieve events that fall within a specific date range. I've read the manual on the process to do complex find conditions but thus far I've been unable to get it to generate working SQL code that will

  1   2   >