Re: Test Suite: is there a way to test for expected exception errors?

2008-03-27 Thread Daniel Hofstetter
Hi aranworld, Something like: try { $obj->codeThatShouldThrowMyException(); fail('No exception'); } catch (MyException $e) {} should do the trick. -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ You received this message because you

Re: Run query in background while showing "Please wait"

2008-03-27 Thread jonknee
> Now, here's where we stand... > > jonknee's query took about 25-27 seconds and returned 154 records. > > b logica's query took about 6 seconds and returned 24 records Sounds about right, except for the difference in number of dupes. How many are there in total? --~--~-~--~~-

Re: any way around habtm hacks ?

2008-03-27 Thread Sliv
Just a side note, GG's pages and files feature has been pretty messed up for a while and they've been apparently working on trying to fix the many issues - one big one to watch out for is that you don't always get the most recent version of the page on load - check the drop down list of versions t

View this page "CakePHP In The Blogosphere"

2008-03-27 Thread Sliv
-Added "Megite Discover: cakephp" link Click on http://groups.google.com/group/cake-php/web/cakephp-in-the-blogosphere - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: Run query in background while showing "Please wait"

2008-03-27 Thread kdecapite
Thanks to everyone who has contributed so far, it's much appreciated! Now, here's where we stand... jonknee's query took about 25-27 seconds and returned 154 records. b logica's query took about 6 seconds and returned 24 records My original query takes 18 seconds and returns ALL records and is

Re: Layout's Look for Elements in wrong place!

2008-03-27 Thread Jérôme
On 1 fév, 09:42, AD7six <[EMAIL PROTECTED]> wrote: > On Feb 1, 5:08 am, Neil <[EMAIL PROTECTED]> wrote: > > > I keep getting this error: > > Not Found: C:\server\htdocs\cake\app\views\views\elements\cats.ctp > > > why is it adding the extra "views" ? > > I think that's an error with the error mess

Adding meta description tags on a view page

2008-03-27 Thread Rusty
Hi, I'm not sure if I am doing something wrong, but I am trying to add a meta tag on the view page using the following command: echo $html->meta('description', 'meta description goes in here', array('type'=>'description'), false); Doing this, nothing shows up on the page. If I set the inline to

Re: Layout's Look for Elements in wrong place!

2008-03-27 Thread Jérôme
On 1 fév, 05:08, Neil <[EMAIL PROTECTED]> wrote: > I keep getting this error: > Not Found: C:\server\htdocs\cake\app\views\views\elements\cats.ctp > > why is it adding the extra "views" ? OK. I was wrong. I was getting the same error because I was using "echo $this->element('footer');", but now

Re: Installation into subdirectory - "Missing Controller" errors

2008-03-27 Thread Dardo Sordi Bogado
It should be printing in that error page the route to where it is expecting the file and the class name, double check both. If you are starting with cake, I recommend you start with cake 1.2 ( http://book.cakephp.org ) it is far better, and you will find more documentation, code, and people using

Re: access rights

2008-03-27 Thread Dardo Sordi Bogado
> What access rights do I give to each CakePHP file? It depends greatly on what are you intend to do, but: app/tmp and it's contents should be writtable by the user running PHP. and app/webroot/ and it's contents should be readable by the user running your webserver. > > > --~--~-~-

Re: Run query in background while showing "Please wait"

2008-03-27 Thread Dardo Sordi Bogado
> SELECT * FROM contactImport WHERE first_name IN (SELECT first_name > FROM contact) AND last_name in (SELECT last_name FROM contact) That is a really bad query (for 30k records) and even don't solve the issue. > b logica's way would work too, so you could just check whatever is > faster. I

Re: Run query in background while showing "Please wait"

2008-03-27 Thread jonknee
> I may have not explained the setup properly. I don't actually have a > "full_name" field in either table (import_contacts and contacts are > the actual MySQL table names). Each of these tables have "fn" and "ln" > fields, however. So the problem is that I need to somehow find all > records in th

access rights

2008-03-27 Thread Raistlin Majere
What access rights do I give to each CakePHP file? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send

Re: looking for a hosting company

2008-03-27 Thread jason m
I've had success with media temple dedicated virtual servers. They are about $50/month (a little less if you pay a year in advance) and I setup cake many times with no problems so far. Speed is pretty good and also the support was always quick and helpful. It was also easy to manage clients and se

Re: any way around habtm hacks ?

2008-03-27 Thread Sliv
There's a bunch of links related to HABTM on the "frequent discussions" page http://groups.google.com/group/cake-php/web/frequent-discussions --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post

any way around habtm hacks ?

2008-03-27 Thread keen
Are there any ways of implementing filtering rows with a clause from the the other model in habtm relation without a hack like described here http://bakery.cakephp.org/articles/view/habtm-hacks-to-menage-columns-in-both-models ? Recursion also adds a lot of queries, which cant be healthy for a bi

translate behavoiur + not fetching translations on recursive fields

2008-03-27 Thread cakeFreak
I just got into this post explaining the issue I encountered with the Translate Behavior: => http://groups.google.com/group/cake-php/browse_thread/thread/2e1567a159e16b55/34485c24eb5a44f7?lnk=gst&q=associations+%2B+translate+behavior#34485c24eb5a44f7 Anyone got this problem fixed *AUTOMAGICALLY*

Re: acl.php : Call to undefined function uses()

2008-03-27 Thread John David Anderson
On Mar 27, 2008, at 2:52 PM, jamest_amr wrote: > > Works perfectly, thanks Stonez. Looks like the IMB tutorial is wrong. That accursed International Maritime Bureau is always posting outdated CakePHP tutes. :( -- John --~--~-~--~~~---~--~~ You received this

Re: acl.php : Call to undefined function uses()

2008-03-27 Thread jamest_amr
Works perfectly, thanks Stonez. Looks like the IMB tutorial is wrong. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe f

Re: verständnisfrage zur direkten formularspeicherung in der datenbank

2008-03-27 Thread Kalileo
You started reading the tutorials - good! Now you might want to read also the manual(s), and there the chapters about form validation and about authentication. That should present you answers to your questions. Generally it is you to design your application to make a scenario as you describe it

Re: looking for a hosting company

2008-03-27 Thread [EMAIL PROTECTED]
1&1 dedicated server is pretty good. On Mar 26, 11:48 pm, Stephen Orr <[EMAIL PROTECTED]> wrote: > Avoid 1and1 for Cake like the plague. It's a bloody nightmare. I had > to change the .htaccess files, the databases were slow as hell... and > their helpdesk support is pathetic. We're migrating all

Re: looking for a hosting company

2008-03-27 Thread Zoltan
Any particular problems with DreamHost I should watch out for? So far (last 4 months) support seems to be good. Zoltan On Mar 26, 2:39 pm, Haris <[EMAIL PROTECTED]> wrote: > In your own case, I would recommend you to stay away from dreamhost > aka nightmarehost. > > On Mar 26, 11:16 pm, Zoltan <

Re: RSS feeds in cake

2008-03-27 Thread Novice Programmer
Hello Anupom, i tried this tutorial only.. method 2 works for me.. but i can't get method 1 to work.. though finally i decided that method 2 is the way i want to go so my problem resolved itself.. :) thanks. On Thu, Mar 27, 2008 at 10:54 PM, Anupom <[EMAIL PROTECTED]> wrote: > You can try out t

Installation into subdirectory - "Missing Controller" errors

2008-03-27 Thread Matt
Hi Group, I'm new to Cake and struggling to get my first app installed. I've been following the blog tutorial at [1], but with one subtle difference in my setup: I've installed Cake into a subdirectory. I dumped everything from the zip into /webroot/cake, fired my browser and navigated to http:/

Re: Reset Password Tutorial (if anyone needs it!)

2008-03-27 Thread Baz
Um??? You may have your links mixed up, there's nothing there. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from

Re: looking for a hosting company

2008-03-27 Thread Baz
Nope, you didn't come down too hard on 1and1. But it all depends on what you're trying to do. Frankly, I haven't gotten to the point where I need a VPS yet. All I need is the right shared host to dump some stuff on. I frequently use Wordpress as an informal benchmark. Most shared hosting plans can

Re: Run query in background while showing "Please wait"

2008-03-27 Thread b logica
On Thu, Mar 27, 2008 at 12:59 PM, kdecapite <[EMAIL PROTECTED]> wrote: > > I may have not explained the setup properly. I don't actually have a > "full_name" field in either table (import_contacts and contacts are > the actual MySQL table names). Each of these tables have "fn" and "ln" > field

Re: "Your database configuration file is not present."

2008-03-27 Thread Stephen Orr
I know this might seem illogical to you - but ALL the information you need to get Cake working is in the docs. Hell, in most cases all you have to do is upload the files as downloaded either from the site or from SVN. This is all I've ever had to do. Rename app/config/database.default.php to data

Re: looking for a hosting company

2008-03-27 Thread Stephen Orr
Perhaps I came down a little hard on them. I had a bad experience with their support the other day, which has resulted in me moving a client site to Webfusion instead. Stupidity really. On Mar 27, 2:31 pm, SumanRS <[EMAIL PROTECTED]> wrote: > I've had the same experience as Miki. You need to be g

Reset Password Tutorial (if anyone needs it!)

2008-03-27 Thread John R
Along with the disclaimer that this might not be a GREAT way to do this method, I present my first CakePHP tutorial: Reset Password http://www.johnroa.net/2008/03/27/cakephp-tutorial-reset-password-cake-12xxx/ Enjoy! --~--~-~--~~~---~--~~ You received this message

Re: Test Suite using a console or shell script

2008-03-27 Thread Sliv
I haven't tried this, but you may want to check it out: http://lemoncake.wordpress.com/2007/06/24/cakephp-test-suite-shell/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, se

Re: Run query in background while showing "Please wait"

2008-03-27 Thread kdecapite
> If I'm understanding it correctly, you just have a full name in the import > model and broken out first and last names in your contact model. I may have not explained the setup properly. I don't actually have a "full_name" field in either table (import_contacts and contacts are the actual MySQL

Test Suite using a console or shell script

2008-03-27 Thread Defranco
Is there a standard way to run Test Suite 1.2 cases using a script (like console) or the only way is via web interface? I'm running it trying to run unix commands like: php webroot/test.php | lynx -stdin -dump but I want to know if there is a better way to do it. thanks Erico --~--~

Re: RSS feeds in cake

2008-03-27 Thread Anupom
You can try out this tutorial http://anupom.wordpress.com/2008/03/12/rss-in-cakephp-12/ On Thu, Mar 27, 2008 at 8:13 PM, Samuel DeVore <[EMAIL PROTECTED]> wrote: > > is your rss view in a folder like /views/entities/rss/view.ctp > and did you make a rss layout like > /views/layouts/rss/default.c

Re: Test suite 1.2: Is there a report for the Core Test Cases fails?

2008-03-27 Thread aranworld
I would be curious to see this as well. However, I believe that you SHOULD be seeing many failing test cases with the core tests. I think this is why 1.2 is still a beta release -- there are still a bunch of bugs to work out. On Mar 27, 9:35 am, Defranco <[EMAIL PROTECTED]> wrote: > Hi all, > >

Test Suite: is there a way to test for expected exception errors?

2008-03-27 Thread aranworld
I am working on setting up a test and part of my test triggers an exception error. This is intentional, though. I actually want to throw the exception, because it proves that the code is working correctly. However, it doesn't seem like there is anything like 'assertException' ... I'm not even s

Test suite 1.2: Is there a report for the Core Test Cases fails?

2008-03-27 Thread Defranco
Hi all, I'm running test suite 1.2 and I'm getting some core test cases fails on 1.2 beta. Is there a standard test report for the core test cases that core people got while released cake 1.2 beta so I could compare fails results to check if cake is working fine on my system. regards Erico --~

Re: Buttons with the form helper

2008-03-27 Thread MonkeyGirl
> You'd have to patch HTMLHelper yourself. It currently does not have > any capability to output a button tag. To it, 'button' means an input > with type = 'button'. This should be changed, IMHO. Ah, thank you. At least I know now, thanks. Zoe. --~--~-~--~~~---~--~---

Re: Can a Custom Helper render an element?

2008-03-27 Thread [EMAIL PROTECTED]
just in case someone stumbles by this thread with a similar issue: you have to have return $View->element("editor/$name"); if your view call is like echo $myHelper->displayControl($name); OR function displayControl($name) { $View =& ClassRegistry::getObject('view');

Re: Can a Custom Helper render an element?

2008-03-27 Thread grigri
It is possible quite easily. The reason your attempt failed is that View::element internally calls View::renderElement via the $this variable, which [because you're calling it statically from within the helper] is resolved to the helper. Just get a reference to the view object: class BreakfastH

Re: Buttons with the form helper

2008-03-27 Thread b logica
You'd have to patch HTMLHelper yourself. It currently does not have any capability to output a button tag. To it, 'button' means an input with type = 'button'. This should be changed, IMHO. On Thu, Mar 27, 2008 at 9:49 AM, MonkeyGirl <[EMAIL PROTECTED]> wrote: > > Hi again gang! > > I stumbled

Can a Custom Helper render an element?

2008-03-27 Thread [EMAIL PROTECTED]
Again, this strikes me as devastatingly simple. Again, I've searched through docs and manuals to no avail. I want class EditorHelper extends Helper ... function displayControl($name) { //set a bunch of stuff then $this->element("editor/$name".".thtml"); } but, obviously, there's no Hel

SOAP server. Handle by controller.

2008-03-27 Thread wDevil
I want to make SOAP service with WSDL generation like this http://bakery.cakephp.org/articles/view/a-component-to-help-creating-soap-services, but with handle by controller like this http://bakery.cakephp.org/articles/view/implementing-soap-on-cakephp. With authorization. app/controllers/componen

Re: UTF8 monthname in date-picker

2008-03-27 Thread Molt
uhm, i'm sorry for the doublepost ... had some technical problems o_O On Mar 27, 3:38 pm, Molt <[EMAIL PROTECTED]> wrote: > Heyho, > when using the beta 1.2 the following code was working great: > > echo utf8_encode( > $form->input('datetime',array('label' => 'Datum & Beginn', > 'time

UTF8 monthname in date-picker

2008-03-27 Thread Molt
Heyho, when using the beta 1.2 the following code was working great: echo utf8_encode( $form->input('datetime',array('label' => 'Datum & Beginn', 'timeFormat' => 24, 'dateFormat' => 'DMY')) ); Anyway, now i tried the nightly of 2008-03-25 and it does not like this way :( Instead of the

Re: Localizate month names

2008-03-27 Thread Molt
Anybody a clue then, why the current nightly (March 25th) doesn't display the utf-8 name for march (in german März) anymore? echo utf8_encode( $form->input('datetime',array('label' => 'Datum & Beginn', 'timeFormat' => 24, 'dateFormat' => 'DMY'))

Re: looking for a hosting company

2008-03-27 Thread SumanRS
I've had the same experience as Miki. You need to be good at htaccess files to get cake working on 1and1 ... but running Cake on 1and1 seems fine. - SumanRS On Mar 27, 7:06 am, Miki <[EMAIL PROTECTED]> wrote: > > Avoid 1and1 for Cake like the plague. It's a bloody nightmare. I had > > to change

Re: Cakephp 1.2 on PHP 4.3.10/Apache/2.0.49 (Fedora)

2008-03-27 Thread Gwoo
http://domain.com/staging_web/index.php/pages/home is the correct url. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe fr

Re: Localizate month names

2008-03-27 Thread ygneo
Thanks everybody, it works, I didn't know it would be in bootstrap.php. On 27 mar, 01:37, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > > Be careful though with LC_ALL, because it has a wider effect than just > > localizing month names... eg. for French, setting the separator for > > float

Re: Using crumbs in cake 1.2

2008-03-27 Thread ygneo
Thanks! It's works! On 26 mar, 15:40, grigri <[EMAIL PROTECTED]> wrote: > Just leave the url parameter blank and you won't get a link: > > addCrumb('Gestión de usuarios'); ?> > > Note that if you do this, html is allowed [the input is not h()-ed], > so if you have any < or > characters you'll hav

Re: RSS feeds in cake

2008-03-27 Thread Samuel DeVore
is your rss view in a folder like /views/entities/rss/view.ctp and did you make a rss layout like /views/layouts/rss/default.ctp Sam D On Wed, Mar 26, 2008 at 11:43 PM, Novice Programmer <[EMAIL PROTECTED]> wrote: > Hello Tarique, > > its the error that cake throws when it is not able to find la

Re: Define the GMT ?

2008-03-27 Thread Neveldo
Ok, I think the simpliest way to do this is to define the GMT in the bootstrap file : Configure::write('gmt', 1); We can use it when displaying dates in views to take account of the GMT timezone. resolved :) Cordially, Neveldo : http://www.neveldo.fr --~--~-~--~~~--

Buttons with the form helper

2008-03-27 Thread MonkeyGirl
Hi again gang! I stumbled upon a neat article about using HTML button elements, as opposed to input elements that happen to be buttons: http://particletree.com/features/rediscovering-the-button-element/ I think it'd be really neat to get the form helper to generate these. However, when I try to

Re: "Your database configuration file is not present."

2008-03-27 Thread Raistlin Majere
I searched for root_path and root_app in there, but the text was not found. On Mar 27, 9:31 am, bingo <[EMAIL PROTECTED]> wrote: > Probably CakePHP is not able to access the databaes configuration.. > Open app/webroot/index.php file and change appropriate settings such > as root_path, root_app, e

Re: "Your database configuration file is not present."

2008-03-27 Thread Raistlin Majere
the name is database.php the dir structure is unchanged On Mar 27, 9:32 am, Sliv <[EMAIL PROTECTED]> wrote: > -What is the exact filename of your db config file > -What does your installation dir structure look like > > On Mar 27, 4:23 am, Raistlin Majere <[EMAIL PROTECTED]> wrote: > > > I uploa

Re: Define the GMT ?

2008-03-27 Thread Neveldo
Re-hi, I've tried your solution. I'm working on WAMPServer 5. I tried to config the timezone by php.ini or .htaccess but it don't change the date() value or the created date when a insert new data with cake. Can you help me ? thank ! Cordially, Neveldo : http://www.neveldo.fr --~--~-~-

Re: Non Numeric index issues.

2008-03-27 Thread Defranco
No ideas? Also I found this bug on Trac that I think that is related with my issue: https://trac.cakephp.org/ticket/4224 /Erico --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this grou

Re: looking for a hosting company

2008-03-27 Thread SeanW
On Mar 26, 12:59 pm, Rob Russell <[EMAIL PROTECTED]> wrote: > Anybody hosted Cake on 1and1? I've really liked them so far but I > haven't pushed any Cake apps on to that server yet. I had a VPS > (somewhere else) and ran in to trouble locking it down so I've been > relegated to managed virtual ho

Re: "Your database configuration file is not present."

2008-03-27 Thread Sliv
-What is the exact filename of your db config file -What does your installation dir structure look like On Mar 27, 4:23 am, Raistlin Majere <[EMAIL PROTECTED]> wrote: > I uploaded CakePHP to /public_html, but it is giving me an error. > "Your database configuration file is not present." My databa

Re: "Your database configuration file is not present."

2008-03-27 Thread bingo
Probably CakePHP is not able to access the databaes configuration.. Open app/webroot/index.php file and change appropriate settings such as root_path, root_app, etc as suggested in the file. Regards, On Mar 27, 4:23 am, Raistlin Majere <[EMAIL PROTECTED]> wrote: > I uploaded CakePHP to /public

Re: ticket #3794 problem...

2008-03-27 Thread Sliv
Just at first glance, your login function's controller doesn't already have your user model, so you're doing an import? Also, you should be able to get the user id from the functionality in the auth component or possibly the session... If you search the group as well as the frequent discussions

Re: Editing paginator URL

2008-03-27 Thread Dardo Sordi Bogado
Refactor your code to use named args, and pass them to paginator options; in controller: if (isset($this->params['url']['search'])) { $search = $this->params['url']['search']; } else { $search = $this->params['named']['search'] } $this->set('search', $search); // pass it to view in view: $

Re: looking for a hosting company

2008-03-27 Thread Miki
> Avoid 1and1 for Cake like the plague. It's a bloody nightmare. I had > to change the .htaccess files, the databases were slow as hell... and > their helpdesk support is pathetic. We're migrating all our sites away > from them now. I have my first test cake application in 1&1 (no traffic). The o

Re: Define the GMT ?

2008-03-27 Thread Neveldo
Thank aranworld, I will try this ! Cordially, Neveldo : http://www.neveldo.fr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubs

"Your database configuration file is not present."

2008-03-27 Thread Raistlin Majere
I uploaded CakePHP to /public_html, but it is giving me an error. "Your database configuration file is not present." My database configuration file IS present! Why am I getting this error message? I need to install CakePHP, but not CakePHP support in my host. How can I do that? --~--~-~--~

Re: Editing paginator URL

2008-03-27 Thread Haris
I had tried searching and found none that had similar issue. I want to append parameters to the URL. On Mar 27, 8:08 am, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > Easy, just search in this group, found one of the many threads > discussing this issue, then apply the solution proposed. > >

ticket #3794 problem...

2008-03-27 Thread skip
Hi , I am using cakephp1.2beta with mssql 2005 express edition..The problem i am facing is related with ticket #3794. I am continuously watching the cakephp trac for the solution but without any luck.. Do anyone has sorted out the problem yet?? as I urgently need some solution for this Thanks in

Cakephp 1.2 on PHP 4.3.10/Apache/2.0.49 (Fedora)

2008-03-27 Thread AL
Hi Everyone, I am trying to setup my cake application on this configuration. cake_1.2.0.6311-beta PHP 4.3.10 Apache/2.0.49 (Fedora) PHP API 20020918 PHP Extension 20020429 Zend Extension 20021010 No htaccess and App.BaseUrl is uncommented in config.php But encountered the followin