Re: Cookbook overhaul proposal

2008-05-12 Thread [EMAIL PROTECTED]
There is only really one main thing I would like to see changed about the cookbook. That is the way proposals are forever hidden from me after I initially post them. Being abel to not only add, but edit and update a section not yet approved would make it easier for us outsiders to contribute. At

Re: Routing for plugins: good idea, no implementation

2008-05-12 Thread [EMAIL PROTECTED]
I agree. It would be a sweet feature. With the default routes in place: example.com/pizza/orders/ This url will already fall back on different actions to try to run. I have this understanding: 1. look for a controller named pizza 2. look for a plugin named pizza and a controller named orders 3.

Re: Cookbook overhaul proposal

2008-05-12 Thread nate
On May 12, 1:15 pm, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote: > I propose that the Cake team use MediaWiki with the FlaggedRevs > extension (http://www.mediawiki.org/wiki/Extension:FlaggedRevs) > instead of their homegrown wiki, which currently has a closed review > process. Sorry, I wasn't a

Re: Validation on Update in Cake using VALID_UNIQUE

2008-05-12 Thread David Christopher Zentgraf
Actually, you may run into problems with this: var $validate = array( array( 'rule' => array('validateUnique', 'email') ), ); function validateUnique($fieldValue, $fieldName) { if (!$this->isUnique($fieldName)) { return false; } els

Re: file_get_contents() to get response from Cake app?

2008-05-12 Thread David Christopher Zentgraf
Okay, that's weird. Setting Debug to 1 in core.php suddenly gives me an output. Even though in my remote action I explicitly call: $this->layout = 'ajax'; Configure::write('debug', 0); Interestingly, if I set debug to 0 in core.php and try to turn it back on in my action, it doesn't work eithe

Re: file_get_contents() to get response from Cake app?

2008-05-12 Thread Dr. Tarique Sani
On Tue, May 13, 2008 at 9:39 AM, David Christopher Zentgraf < [EMAIL PROTECTED]> wrote: > > I have no idea what's going on, any ideas anybody? > Do I need to send something using context streams or so that browsers > do but PHP/curl don't for Cake to respond to me? > > I am presuming that you have

file_get_contents() to get response from Cake app?

2008-05-12 Thread David Christopher Zentgraf
Hi, I have a rather peculiar problem: I have a CakePHP app that external apps need to query some data from. Any app can basically send a request to a special controller action with a few encoded parameters in the URL, and the action will return a blank page with only the words true or false

Re: cook up web sites fast

2008-05-12 Thread Kent
I am running 3 other applications without a problem and without virtual hosts. Ftom localhost I don't think I should need to use virtual hosts. On May 5, 2:32 am, simonb <[EMAIL PROTECTED]> wrote: > You are most likely running all the sites from the same directory so > the  htaccess applies to al

Re: Validation on Update in Cake using VALID_UNIQUE

2008-05-12 Thread Dianne van Dulken
Thank you very much! That fixed it perfectly. I would never have gotten there by myself. --~--~-~--~~~---~--~~ 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.co

Security Component

2008-05-12 Thread Schuchert
I am in the process of rewriting my site from 1.1 to 1.2 and trying to utilize the built in components whenever possible but I am unsure about the security component. In my first app I built my own functions to do this -- authenticate user, hash passwords, etc. Is that pretty much all the securi

Re: include CSS and Javascript into layout 'on demand'

2008-05-12 Thread MarcS
thanks everyone On May 12, 10:56 pm, "Nicolás Andrade" <[EMAIL PROTECTED]> wrote: > Watch what I did to use different layouts to different specific views: > > In app_controller.php : > > function beforeRender(){ > if(isset($this->params[Configure::read('Routing.admin')])){ >

Re: Common Dev Question

2008-05-12 Thread b logica
I'm doing something similar but images are not uploaded until a user has been enabled, so the ID will already exist, of course. You may not have that luxury. I do have a resumé upload but, instead of using the UID, I'm naming it after the user's name. I'm already creating a "slug" anyway from the

Re: How to create tabs?

2008-05-12 Thread wesleygray
Could you clarify what you mean by "a Cake-specific problem"? Are you saying Cake doesn't help with generating the HTML/CSS, just with accessing the database? If so, is there a framework that does? I looked at the link you suggested and it looked like a lot of work to get some very ugly tabs. I

Re: include CSS and Javascript into layout 'on demand'

2008-05-12 Thread Nicolás Andrade
Watch what I did to use different layouts to different specific views: In app_controller.php : function beforeRender(){ if(isset($this->params[Configure::read('Routing.admin')])){ $this->layout = 'default_admin'; // Uses layout for /admin/ pages } if(prop

Re: Image Resize Helper

2008-05-12 Thread Mech7
If you use php5 and gd2 i wrote a image helper also.. it has a crop / resize function and saves png with transparent bg.. the one on the bakery didn't http://www.mech7.net/articles/view/2/cakephp-image-helper If you want it to return only the paths then change the html->image functions for examp

Common Dev Question

2008-05-12 Thread Nicolás Andrade
Creating a "Register" form I found with the classic dilemma: Uploading a picture. Uploaded file will be named UserId.OriginalExtension. I mean 5565.jpg is photo from user 5565 and is in JPEG format. Not bad. But what happens when Model does not validate, Insert is not done and there is no ID

Re: Image Resize Helper

2008-05-12 Thread Nicolás Andrade
I'm using another one I've found at the same time i've found the one you're using. Finally, I've edited it a lot to suit it to my needs. It has a parameter $tag which in FALSE returns only the image url without IMG tag. So, look for MagickConvertHelper. Remember, I said I've modified it cos i

Re: Popup color picker.

2008-05-12 Thread Dan Bair
Do you have a specific color picker in mind? There are plenty of good color pickers for JQuery and Prototype. Most of the time it's just a few lines of code to implement, so you could pop that into your own helper. http://plugins.jquery.com/search/node/Color+Picker On May 12, 9:16 pm, mustan9

Re: include CSS and Javascript into layout 'on demand'

2008-05-12 Thread Joel Perras
Put $scripts_for_layout in your (X)HTML head. Then, from any view you can include JS/CSS by setting the $inline option to false. $javascript->link('awesome_js_file', false); and $html->css('most_awesome_css', null, array(), false); -Joel. On May 12, 3:45 pm, MarcS <[EMAIL PROTECTED]> wrote:

Re: include CSS and Javascript into layout 'on demand'

2008-05-12 Thread Mathew Nik Foscarini
I do this by rendering my HTML header with an element, and then passing it parameters from the controller. - Original Message From: MarcS <[EMAIL PROTECTED]> To: CakePHP Sent: Monday, May 12, 2008 3:45:23 PM Subject: include CSS and Javascript into layout 'on demand' Is it possible t

include CSS and Javascript into layout 'on demand'

2008-05-12 Thread MarcS
Is it possible to include CSS and Javascript into a layout based on what the specific view requires? I would like to use one layout for all my views but there are some javascript libraries that are onl required for very few actions. I remember reading that this is possible a while back but I can'

Popup color picker.

2008-05-12 Thread mustan9
Hi, Does anyone have a helper for a view that will show a color popup picker? --~--~-~--~~~---~--~~ 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 unsubsc

Re: XML trouble

2008-05-12 Thread cynic
Hey David, There's quite a few ways to get th data you're asking. If you're using PHP5 you can use SimpleXML (http://us2.php.net/simplexml) which would be really straight forward. Somewhere along the lines of $xml- >Response->Placemark->Point->coordinates or if you feel like using xpath somethin

Re: Quick question about translation

2008-05-12 Thread drumdance
Thanks mucho! I was trying to find exactly this in the source... --~--~-~--~~~---~--~~ 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 thi

Re: 500 Error

2008-05-12 Thread Jonathan Snook
On Mon, May 12, 2008 at 1:57 PM, John R <[EMAIL PROTECTED]> wrote: > This just happens at once specific function inside an otherwise fully > working application. Then I'd look to isolate the line that is causing issue. Remove all the code from the function and then add things back in until the

cc validation

2008-05-12 Thread SiVA_
I'm trying to use the cc validation rule but I'm having troubles. Here is the snippet of the $validate array in my model: var $validate = array( 'cc_number' => array( 'rule' => array('cc', array('visa', 'disc', 'mc', 'jcb'), false, null), 'message' => 'The credit card number

Re: Cookbook overhaul proposal

2008-05-12 Thread Marcin Domanski aka kabturek
You can use one of the workarounds presented here on the group for the pdf version but you may expect improvements soon (in speed and in other formats) On May 12, 7:51 pm, Mathew Nik Foscarini <[EMAIL PROTECTED]> wrote: > While this subject is open. > > I would like to be able to download the man

Re: Fatal Error when using $form

2008-05-12 Thread Mathew Nik Foscarini
var $helpers = array('Form'); put that in your controller. - Original Message From: jaredonline <[EMAIL PROTECTED]> To: CakePHP Sent: Monday, May 12, 2008 1:52:12 PM Subject: Fatal Error when using $form Controller: View: Please Login create('User', array('action' => 'login')); ?>

Fatal Error when using $form

2008-05-12 Thread jaredonline
Controller: View: Please Login create('User', array('action' => 'login')); ?> Email: input('email');?> Password: password('password');?> end('Login');?> Error: Fatal error: Call to a member function on a non-object in /var/www/ vhosts/365mediase

Re: 500 Error

2008-05-12 Thread John R
This just happens at once specific function inside an otherwise fully working application. On May 12, 12:18 pm, francky06l <[EMAIL PROTECTED]> wrote: > Agree with Jonathan, seems you have mod-rewrite problem or your app > does not handle the requested controller/action (if triggered by a > link,

Re: Cookbook overhaul proposal

2008-05-12 Thread Samuel DeVore
> Thoughts? Here is one "It makes CakePHP team eat their own dogfood ;) " Sam D -- -- (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ http:

Re: Cookbook overhaul proposal

2008-05-12 Thread Mathew Nik Foscarini
While this subject is open. I would like to be able to download the manual, and read it offline. I find the Cake website feeds out pages from the manual very slowly. - Original Message From: Esoteric <[EMAIL PROTECTED]> To: CakePHP Sent: Monday, May 12, 2008 1:48:19 PM Subject: Re: Co

Re: Cookbook overhaul proposal

2008-05-12 Thread Esoteric
I am personally a fan of MediaWiki, I am also a fan of the CakePHP team and the hard work they do, either way I think both methods have attractors and detractors. I personally think that your ideas are valid, I too will be interested in seeing what others have to say. >  - People could engage in

Re: Advanced web routing for webservices

2008-05-12 Thread Mathew Nik Foscarini
For cake 1.1.19.x In your /app/config/routes.php file add the following. $Route->connect('/sitemap.xml', array('controller'=>'xml','action'=>'sitemaps','sitemap') ); - Original Message From: deeps <[EMAIL PROTECTED]> To: CakePHP Sent: Monday, May 12, 2008 1:14:00 PM Subject: Advanced

Re: Routing for plugins: good idea, no implementation

2008-05-12 Thread Esoteric
Just do this in your routes.php Router::($Router->)connect('/pizza/orders/:action/*', array('plugin' => 'pizza', 'controller' => 'PizzaOrders')); In the parathesis is for Cake 1.x, Router:: for Cake 1.2 Regards, -Erik On May 12, 12:05 pm, "Jonathan Snook" <[EMAIL PROTECTED]> wrote: > >  I'll g

Advanced web routing for webservices

2008-05-12 Thread deeps
Hello, i m having an url for my sitemap http://www.xyz.com/xml/sitemaps/sitemap which i want to convert to http://www.xyz.com/sitemap.xml using cakephp routing. What will be the best way for using that? i m using cakephp 1.1.x.x Regards, --~--~-~--~~~---~--~~ You

Re: hasMany & hasOne problem

2008-05-12 Thread deeps
Thx adam, working perfectly Regards, On May 3, 3:43 am, Adam Royle <[EMAIL PROTECTED]> wrote: > As long as you have var $belongsTo = array('Author'); in your Comment > model, just set recursive to a higher value. > > $this->Post->recursive = 2; > $posts = $this->Post->findAll(); > > Cheers, > Ad

HABTM relation without jointable

2008-05-12 Thread [EMAIL PROTECTED]
HI I have a HABTM relation between two model that it's defined by a finderQuery and It hasn't a jointable. But i get always an error from cake 1.2 that the join table misses. In cake 1.13 all works perfectly. How can I do? --~--~-~--~~~---~--~~ You received this mes

Re: 500 Error

2008-05-12 Thread francky06l
Agree with Jonathan, seems you have mod-rewrite problem or your app does not handle the requested controller/action (if triggered by a link, check the link) and Apache is try to find a default page for error 500. Does this happen only for 1 controller or you have other controllers correctly workin

Cookbook overhaul proposal

2008-05-12 Thread Aaron Shafovaloff
I propose that the Cake team use MediaWiki with the FlaggedRevs extension (http://www.mediawiki.org/wiki/Extension:FlaggedRevs) instead of their homegrown wiki, which currently has a closed review process. This extension, which will be integrated into Wikipedia in the coming months, allows for peo

Re: 500 Error

2008-05-12 Thread Jonathan Snook
On Mon, May 12, 2008 at 1:01 PM, John R <[EMAIL PROTECTED]> wrote: > My app is throwing up a server 500 error and I can't figure out why/ > where. The page isn't helpful either, only showing this: It sounds like an .htaccess issue and it's trying to route to a local 500.shtml file which it can'

Re: Custom tags no longer working in 1.2 Beta...has something changed?

2008-05-12 Thread Action
Have you tried using custom tags in 1.2 beta? Is it working for you? If so, can you copy/paste you app_helper.php and tags.php files? On May 11, 10:34 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: >function __construct(){ >parent::__construct(); >$this->loadConfig(); >

Re: Quick question about translation

2008-05-12 Thread Preloader
Hello Derek, field names seem to be automatically translated, see line 412 of form.php: http://api.cakephp.org/1.2/form_8php-source.html#l00398 No, flash does not seem to translate the message: http://api.cakephp.org/1.2/libs_2controller_2controller_8php-source.html#l00760 Regards, Christop

Re: This is more of a general application design question than a CakePHP question...

2008-05-12 Thread Mathew Nik Foscarini
Nice, that's much better. - Original Message From: Novice Programmer <[EMAIL PROTECTED]> To: cake-php@googlegroups.com Sent: Monday, May 12, 2008 1:02:43 PM Subject: Re: This is more of a general application design question than a CakePHP question... check php_sapi_name() output, if it

Re: This is more of a general application design question than a CakePHP question...

2008-05-12 Thread Novice Programmer
check php_sapi_name() output, if its cli then its being invoked by the cron job since you would use php cli to invoke console jobs. place a check at the start of the controller if (php_sapi_name() == "cli") { // proceed } Thanks. On Mon, May 12, 2008 at 9:18 PM, Mathew Nik Foscarini <[EMAIL PROTEC

500 Error

2008-05-12 Thread John R
My app is throwing up a server 500 error and I can't figure out why/ where. The page isn't helpful either, only showing this: Missing Method in ContestsController Error: The action 500.shtml is not defined in controller ContestsController Error: Create ContestsController::500.shtml() in file:

Image Resize Helper

2008-05-12 Thread Kyle Decot
I'm using the image resizer I found at the bakery( http://bakery.cakephp.org/articles/view/image-resize-helper ), but I'm having a problem with it. I want to use the image it generates as a css background image. here is my code: echo ""; ..//etc it returns the image address wrapped in the img ta

Quick question about translation

2008-05-12 Thread drumdance
I tried figuring this out from the source code, but after 15 minutes of poking around in various files I thought someone here may know if off the top of their head. Do the Html and Form helpers do automatic translation for field names? In other words, do I need to do this: echo $form->input('us

Re: Routing for plugins: good idea, no implementation

2008-05-12 Thread Jonathan Snook
> I'll go with your suggestion for now and also do a little poking > around in the router to see if I can make sense of it. Oh, were you hoping for something automatic such that every plugin request would automatically look for a controller with the plugin name attached? (in obvious hopes to av

Re: Routing for plugins: good idea, no implementation

2008-05-12 Thread [EMAIL PROTECTED]
Thanks for your input Snook. Class name conflicts is exactly why I wanted to try for something more like prefixing. (I think the naming in the pizza example is pretty sound if only I can hide it when it is time for launch.) Doing a "normal" route as you suggest works but will quickly become tireso

Re: Problem with drake and Drupal Menu's

2008-05-12 Thread b logica
CSS is interpreted at the client, which doesn't distinguish between Drupal's and Cake's share of the screen. You'll have to override those styles that are affecting whatver it is that Cake is providing. View source to get any IDs or classes you need and it should be fairly straightforward to cance

Re: This is more of a general application design question than a CakePHP question...

2008-05-12 Thread Mathew Nik Foscarini
Well, wouldn't the remote address have the same IP address as the server? Then again, I can't remember if $_SERVER is defined when running from the command line? if( $_SERVER['SERVER_ADDR'] === $_SERVER['REMOTE_ADDR']) { // the client has the same IP as the server. } Another approach would

Re: Somebody konw any library for receive html code and generate document pdf?

2008-05-12 Thread Chris Hartjes
On Mon, May 12, 2008 at 11:42 AM, peper81 <[EMAIL PROTECTED]> wrote: > > one helpers for cakephp? > I suggest you read this document to provide you with some helpful hints on the best way to use this mailing list: http://www.catb.org/~esr/faqs/smart-questions.html A lot of people on this maili

Re: Somebody konw any library for receive html code and generate document pdf?

2008-05-12 Thread peper81
one helpers for cakephp? On May 12, 3:31 pm, peper81 <[EMAIL PROTECTED]> wrote: > I intend generate a document pdf when it receive like input html code, > but i don't find any library --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: This is more of a general application design question than a CakePHP question...

2008-05-12 Thread Chris Hartjes
On Mon, May 12, 2008 at 11:36 AM, Action <[EMAIL PROTECTED]> wrote: > > So, what is the best way to determine if a controller method is being > called from a cron job vs a normal user? I don't want normal users to > be able to goto the controller method that makes the requests from > these web

Re: This is more of a general application design question than a CakePHP question...

2008-05-12 Thread Action
So, what is the best way to determine if a controller method is being called from a cron job vs a normal user? I don't want normal users to be able to goto the controller method that makes the requests from these webservices. On May 12, 10:17 am, jonknee <[EMAIL PROTECTED]> wrote: > > So just hav

Re: habtm count() query

2008-05-12 Thread b logica
My $.02: use finderQuery. That's only a hunch though, and not based on practical experience. On Sun, May 11, 2008 at 3:44 AM, woldhekkie <[EMAIL PROTECTED]> wrote: > > Users want to plan routes to ride together on a a motor bike. > tables: > users (id, name,phone,email) > routes (id,date,t

Re: Somebody konw any library for receive html code and generate document pdf?

2008-05-12 Thread Mathew Nik Foscarini
http://framework.zend.com/manual/en/zend.pdf.html - Original Message From: Dr. Tarique Sani <[EMAIL PROTECTED]> To: cake-php@googlegroups.com Sent: Monday, May 12, 2008 11:13:21 AM Subject: Re: Somebody konw any library for receive html code and generate document pdf? try html2fpdf T

Re: Somebody konw any library for receive html code and generate document pdf?

2008-05-12 Thread Joel Perras
The wonders of modern-day search engines: http://www.google.com/search?client=safari&rls=en-us&q=html+to+pdf+php&ie=UTF-8&oe=UTF-8 On May 12, 11:13 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > try html2fpdf > > Tarique > > On Mon, May 12, 2008 at 8:01 PM, peper81 <[EMAIL PROTECTED]> wrote

Re: Somebody konw any library for receive html code and generate document pdf?

2008-05-12 Thread Dr. Tarique Sani
try html2fpdf Tarique On Mon, May 12, 2008 at 8:01 PM, peper81 <[EMAIL PROTECTED]> wrote: > > > I intend generate a document pdf when it receive like input html code, > but i don't find any library > > > > -- = Cheesecake-Photoblog:

Re: Error Undefined property: pdfHelper::$helpers [CORE\cake\libs\view\view.php, line 875]

2008-05-12 Thread rmargolles
> Oh, I'm so sorry, very thanks for your response > I meant to add it to the class declaration of the fpdf helper not your > controller. This is I think what I did to fix it for myself a month > or so ago like > > class fpdfHelper extends FPDF { > var $helpers = array(); > var $ti

Somebody konw any library for receive html code and generate document pdf?

2008-05-12 Thread peper81
I intend generate a document pdf when it receive like input html code, but i don't find any library --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@goog

Re: This is more of a general application design question than a CakePHP question...

2008-05-12 Thread jonknee
> So just have a process that checks the remote services every 30-60 > seconds or so, it'll be frequently enough and it'll make the whole > local data thing so much easier. > That's waaay to frequent and could easily look like abuse. Even large aggregators like Google Reader and Bloglines don't d

Re: Wordpress & CakePHP

2008-05-12 Thread jonknee
> Well this is what i am trying to achieve -> I am trying to build a > system which has 80% similar functionalities of wordpress (like posts, > comments on posts, monthly archives etc). But essentially each post > would have dynamic form (similar to a poll) associated to > it.Registered users of t

Re: Error Undefined property: pdfHelper::$helpers [CORE\cake\libs\view\view.php, line 875]

2008-05-12 Thread Samuel DeVore
I meant to add it to the class declaration of the fpdf helper not your controller. This is I think what I did to fix it for myself a month or so ago like class fpdfHelper extends FPDF { var $helpers = array(); var $title... Sam D On Mon, May 12, 2008 at 5:39 AM, <[EMAIL PROTECTED

Re: Routing for plugins: good idea, no implementation

2008-05-12 Thread Jonathan Snook
On Mon, May 12, 2008 at 9:31 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > default plugin routing for index action on PizzaOrders controller in > pizza plugin: > www.example.com/pizza/pizzaOrders/index > > Small change to: > www.example.com/pizza/orders/index The pizza example is a litt

Re: Wordpress & CakePHP

2008-05-12 Thread Abhimanyu Grover
You should try to integrate them together using this approach: http://www.gigapromoters.com/blog/2007/01/28/joining-powers-of-two-great-systems-joomla-and-cakephp/ On May 12, 4:37 pm, darkblack <[EMAIL PROTECTED]> wrote: > Hi, > Wondering if anybody has tried or has prior experience in using WP

Wordpress & CakePHP

2008-05-12 Thread darkblack
Hi, Wondering if anybody has tried or has prior experience in using WP for the CMS functionalities of a website, but coded the additional business logic using CakePHP. Well this is what i am trying to achieve -> I am trying to build a system which has 80% similar functionalities of wordpress (li

Re: Error Undefined property: pdfHelper::$helpers [CORE\cake\libs\view\view.php, line 875]

2008-05-12 Thread rmargolles
I have var $helpers = array('Form','Session','Javascript','fpdf'); my error it isn't why the inicializate of the $helpers the problem is the instruction is_array(${$camelBackedHelper}->helpers this property produce the error because say that undefined property if you can say something more.. ve

Routing for plugins: good idea, no implementation

2008-05-12 Thread [EMAIL PROTECTED]
I have a pretty good idea how I would like urls for plugins to be a little more pretty. I have read up on routes but I have not found how to tell the router to do this: default plugin routing for index action on PizzaOrders controller in pizza plugin: www.example.com/pizza/pizzaOrders/index Smal

Re: Three-level hasMany in view with form helper

2008-05-12 Thread James K
Oh! I thought that was a typo - Chapter.0][paragraph][0][field] etc works On May 12, 8:21 am, francky06l <[EMAIL PROTECTED]> wrote: > Try to set the model to null in your form->create and give the model > name in the input names .. > (just a hint, not sure that will work..) > I did not try 'Chapt

Re: Insallation

2008-05-12 Thread [EMAIL PROTECTED]
Oups, I thought appserve was some kind of physlcal server (like those smart NAS boxes with apache and php). WAMP should work like dream with Cake. Phpmyadmin usually does ask for a password... your mysql password. It is probably documented in appserve what it was set to at installation. On May

Re: Cake Installation - sorry to have to ask

2008-05-12 Thread rubin
My debug setting has been at "2" all this time, so setting it to 1, will not help (I don't think). Rubin On May 12, 6:06 am, rubin <[EMAIL PROTECTED]> wrote: > I have gone to the apache error logs, and see the following messages > every time I run thecakephpindex.php page: > [error] [client 127.0

Re: Cake Installation - sorry to have to ask

2008-05-12 Thread rubin
I have gone to the apache error logs, and see the following messages every time I run the cakephp index.php page: [error] [client 127.0.0.1] File does not exist: C:/Program Files/xampp/ htdocs/css, referer: http://localhost/ [error] [client 127.0.0.1] File does not exist: C:/Program Files/xampp/ h

Re: Getting data from a helper?

2008-05-12 Thread Filip Camerman
Thanx Tarique, exactly what I needed. --~--~-~--~~~---~--~~ 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 this group, send email to [EMA

Re: Query Question

2008-05-12 Thread grigri
// Controller $parks = $this->Skatepark->find('list', array( 'fields' => array( 'Skatepark.id', // Key path 'Skatepark.city', // Value path 'Skatepark.state' // Group path ), 'order' => 'Skatepark.city ASC, Skatepark.state ASC' ); $this->set(compact('parks')); // parks looks lik

Re: Query Question

2008-05-12 Thread Filip Camerman
I'd just use SELECT state, city FROM skateparks ORDER BY state, city Then loop it end everytime the state changes you print the state, otherwise just the city. On May 12, 12:39 pm, Kyle Decot <[EMAIL PROTECTED]> wrote: > They're not stored in separate tables. They're stored in my skateparks >

Re: Getting data from a helper?

2008-05-12 Thread Dr. Tarique Sani
On Mon, May 12, 2008 at 6:14 PM, Filip Camerman <[EMAIL PROTECTED]> wrote: > > the site). Typically I fill side columns with helpers, but in this > case I need to access data (e.g. from the comments table). What's the > best way to do this? A link to an example would be great. Use components - S

Getting data from a helper?

2008-05-12 Thread Filip Camerman
My site has side columns that are part of the layout, and a central content column that is filled by the current controller/action. Now in a side column I want to show data (e.g. the most recent comments on the site). Typically I fill side columns with helpers, but in this case I need to access da

Re: Three-level hasMany in view with form helper

2008-05-12 Thread francky06l
Try to set the model to null in your form->create and give the model name in the input names .. (just a hint, not sure that will work..) I did not try 'Chapter.0][paragraph .. ' maybe this will solve the model name problem. On May 12, 2:01 pm, James K <[EMAIL PROTECTED]> wrote: > This almost work

Re: This is more of a general application design question than a CakePHP question...

2008-05-12 Thread Action
Nvm, looks like my shared host does support cron jobs. On May 12, 7:34 am, Action <[EMAIL PROTECTED]> wrote: > Is that possible to do on a shared host? > > On May 12, 2:52 am, Grant Cox <[EMAIL PROTECTED]> wrote: > > > Making the remote service API requests for every one of your page > > requests

Re: Cake Installation - sorry to have to ask

2008-05-12 Thread schneimi
To get a more specific and detailed error message, you can set Configure::write('debug', 1); in your app/config/core.php On 12 Mai, 12:32, rubin <[EMAIL PROTECTED]> wrote: > I am having trouble getting the demo blog program to run in Cake (and > hence any real programs). It must be something sim

Re: Three-level hasMany in view with form helper

2008-05-12 Thread James K
This almost works for me - it fails if you have additional models called in the $uses array of the controller. Cake ends up putting the name of the first model in the uses at the front of those form field names. So if I have another model called ListItem which I use to pull generic list items int

Re: Cake Installation - sorry to have to ask

2008-05-12 Thread the_woodsman
The fact that you're getting a standard Apache error, rather than a cake specific error page, does indeed imply that it's something in your Apache setup - perhaps Mod Rewrite, and related settings. The error log is (as Marcin says) your best bet. On 12 May, 12:34, "Marcin Domanski" <[EMAIL PROTEC

Re: Validation on Update in Cake using VALID_UNIQUE

2008-05-12 Thread gmwebs
I have posted what I have in my User model (running 1.2.x.x) at http://bin.cakephp.org/view/646962640 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@g

Re: This is more of a general application design question than a CakePHP question...

2008-05-12 Thread Action
Is that possible to do on a shared host? On May 12, 2:52 am, Grant Cox <[EMAIL PROTECTED]> wrote: > Making the remote service API requests for every one of your page > requests is a bad idea - you have to use some kind of caching (save > locally). Otherwise your page load times could be complete

Re: Insallation

2008-05-12 Thread Killmon
On May 12, 3:36 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I am not familiar with appserv but you seem to be running a very picky > version of PHP 5 that complains about everything in CakePHP 1.1 that > is not in accord with the Strict standards of PHP 5. (Cake is still > being develop

Re: Cake Installation - sorry to have to ask

2008-05-12 Thread Marcin Domanski
hey, try this http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/ and check in the apache logs On Mon, May 12, 2008 at 12:32 PM, rubin <[EMAIL PROTECTED]> wrote: > > I am having trouble getting the demo blog program to run in Cake (and > hence any real programs). It must be something si

Re: Problem with drake and Drupal Menu's

2008-05-12 Thread Wassy
Yes, drupal seems to theme my cakePHP pages just as if they were a node in drupal itself. (CSS only, im not sure about the more advanced theme stuff as i am very new to all of this) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Re: Query Question

2008-05-12 Thread Sam Sherlock
look at self relating the table by using a field named parent_id if your baking cake will recognise that the relationship is a child/parent id | parent id | name | address | city | state ...etc 2008/5/12 Kyle Decot <[EMAIL PROTECTED]>: > > They're not stored in separate tables. They'r

Cake Installation - sorry to have to ask

2008-05-12 Thread rubin
I am having trouble getting the demo blog program to run in Cake (and hence any real programs). It must be something simple, but I can not figure it out. I installed xampp. Tested everything. works OK. xampp in directory: program files/xampp. Also installed cake. Everything is put into directo

Re: Query Question

2008-05-12 Thread Kyle Decot
They're not stored in separate tables. They're stored in my skateparks table which has: id | name | address | city | state ...etc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to

Re: forced download

2008-05-12 Thread dr. Hannibal Lecter
I wrote a small rant about MediaView and file downloads, see if you can make some use of it: http://dsi.vozibrale.com/articles/view/mediaview-is-a-bleeding-bastard Cheers! On May 7, 2:27 pm, crazyDavid <[EMAIL PROTECTED]> wrote: > hi! i'm developing an application where the user uploads and dow

Re: Problems with open_basedir

2008-05-12 Thread [EMAIL PROTECTED]
I have the default directory structure, so the fields will look like this but I still get an error. "Fatal error: Class 'Configure' not found in /var/www/ingmar/trumpf.ro/ app/config/core.php on line 43" define('ROOT', '/var/www/ingmar/trumpf.ro'); define('APP_DIR', 'app'); define('CAKE_CORE_IN

Re: can't get a session to work :(

2008-05-12 Thread Aeg
Sorry, never mind, I fixed the problem by deleting two spaces in the model... pfff --~--~-~--~~~---~--~~ 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 uns

Re: Three-level hasMany in view with form helper

2008-05-12 Thread francky06l
For this type I use a kind of "hack" in the field names : echo $form->input('Chapter/0][paragraph][0][field]', ... ) That does the trick, but I did not check so many levels in the controller .. ie : be sure to check that $this->data is correct. hth On May 12, 2:26 am, James K <[EMAIL PROTECTED

Validation on Update in Cake using VALID_UNIQUE

2008-05-12 Thread Dianne van Dulken
Hi, I'm having a little trouble with updating in my validation. I have validation that checks that an email has not already been used. function loadValidation(){ $this->validate = array( 'email' => array( 'required' => array( 'method' => VALID_NOT_EMPTY, 'mess

can't get a session to work :(

2008-05-12 Thread Aeg
Hey everybody, I'm sorry the first thing I do here is ask for you help, but I'm really stuck on something that should be simple. I'm using the cakephp 1.2 beta, and I'm trying to write something to a session. This is the relevant controller and function class ProductsController extends AppCont

Vacancy Lead Developer cakephp And Senior Developer Cakephp

2008-05-12 Thread Richard
One of client in UK is looking to hire Lead Developer cakephp And Senior Developer Cakephp Type Permanent Location: London Salary Excellent 28 t0 50 K Experience dependent GPB Job Description: Lead Developer Cakephp 5 years+ experience with PHP My sql - Experienced with MVC frameworks

Re: Problemas con $form->dateTime('birthDate', $dateFormat = 'DMY', $timeFormat = 'NONE',null, null, false);

2008-05-12 Thread Hernán Durán
Buenas a todos, como hago para colocar las fechas en idioma español, no entendi bien la explicacion, por favor si me pueden explicar nuevamente aa otra cosa es que en febrero muestra 31 dias como se puede corregir esto hi, please, can you explain again i can't change or display months in spanish.

  1   2   >