Re: find('list') that displays blank (combobox)

2008-09-27 Thread mario
Thanks a lot. I got it working now. =) On Sep 27, 8:54 pm, Adam Royle <[EMAIL PROTECTED]> wrote: > input('collection_id', array('label'=> false, > 'empty' => true)); ?> > > or > > input('collection_id', array('label'=> false, > 'empty' => 'Please select...')); ?> > > On Sep 28, 1:48 pm, mario <[E

find('list') that displays blank (combobox)

2008-09-27 Thread mario
Hello everyone, I'm creating a search page in my website and I want to take advantage of cakephp's find('list') command. Here is a snippet of my controller's code, $collections = $this->Exhibit->Collection->find('list', array(

Re: find('list') that displays blank (combobox)

2008-09-27 Thread Adam Royle
input('collection_id', array('label'=> false, 'empty' => true)); ?> or input('collection_id', array('label'=> false, 'empty' => 'Please select...')); ?> On Sep 28, 1:48 pm, mario <[EMAIL PROTECTED]> wrote: > Hello everyone, > > I'm creating a search page in my website and I want to take advanta

Re: organise application structure for new project in cake

2008-09-27 Thread Adam Royle
In answer to your questions... 1. Often I start by thinking about the urls I want in my app, since I'm usually pretty picky about those things. That usually defines my controllers and hence my models. 2. Once I have the controllers from step 1, I then know the routes I'll have to use to get my de

Re: Fatal error: Class 'Dispatcher' not found - please help

2008-09-27 Thread Crux
just clear your app/tmp/cache folder.always worked for me On Sep 27, 4:12 pm, "3lancer.eu" <[EMAIL PROTECTED]> wrote: > Oh, got it kind of working, the workaround was quite strange however: > > //this must be set on home.pl > if (strpos('example.com', $_SERVER['SERVER_NAME']) !== false) { >  

Re: validate alphanumeric

2008-09-27 Thread glenda guo
You can write validation function by yourself. On Sat, Sep 27, 2008 at 12:50 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hari, > > I would like to use validation with 1.2. I need something like > alpanumeric, but it seems it does not accept non latin characters. I > need it for a hung

Re: Filtering on sub table

2008-09-27 Thread glenda guo
$this->set('programStateList', $this->ProgramBroadcaster-> Program->ProgramFile->ProgramState->find('list')); You can add condition in it. On Sat, Sep 27, 2008 at 10:43 PM, Mickael Gentil <[EMAIL PROTECTED]>wrote: > Hi all, > > I need some help with a problem. > > This is my controller : > >

Re: timeout

2008-09-27 Thread Sam Sherlock
CAKE_SESSION_TIMEOUT number of seconds until session timeout. This figure is multiplied by CAKE_SECURITY. CAKE_SECURITY determines the level of session security for the application in accordance with CAKE_SESSION_TIMEOUT. Can be set to 'low', 'medium', or 'high'. Depending on the setting, CAKE_SE

Re: Cake Virtual Host and the Scripts directory

2008-09-27 Thread Sam Sherlock
becuase your running it through a project with its database settings dfined in app/config/database.php it may have different dbconnections listed but the console will allow you to choose between these - S 2008/9/27 brehg <[EMAIL PROTECTED]> > > So I have cakePHP set up to work with virtual host

Re: Blueprint CSS + Cakephp

2008-09-27 Thread Sam Sherlock
no reason why it should not work unless your css is not found blueprint has a llib directory and plugins (perhaps not any more) which I suppose your storeing inside app/webroot/css/ on that assumption echo $html->css(array('root', 'screen', 'fancy-type'), null, array('media' => 'screen, projection

Re: Fatal error: Class 'Dispatcher' not found - please help

2008-09-27 Thread 3lancer.eu
Oh, got it kind of working, the workaround was quite strange however: //this must be set on home.pl if (strpos('bomasport.pl', $_SERVER['SERVER_NAME']) !== false) { ini_set('include_path', '/app/..:/app:.'); define('APP_PATH', '/app'); define('CORE_PATH', '/'); } around l

email with link to mydomain.com

2008-09-27 Thread donnerbeil
Hi, When a user registers on my site, an email with an activation link is sent to him. In the email templates I would like to use something like echo $html->link('controller'=>'users','action'=>'activate',$key). But when this link is shown in the email it links to /users/activate/[key] How can I

Cake Virtual Host and the Scripts directory

2008-09-27 Thread brehg
So I have cakePHP set up to work with virtual hosts and mulitple databases. I want to set up ACL. If I run acl.php initdb from the scripts directoy how will it know which database to use? Brian --~--~-~--~~~---~--~~ You received this message because you are subscri

organise application structure for new project in cake

2008-09-27 Thread Markus Muschol
Hey CakePhp Friends, its my first post on the list but i really need help on creating this project. Ok here is the Situation: I have to programm a Web Application for publishing Events, Parties and some Photos. I created a database in Mysql and want to write this Application with the CakePHP Fram

Blueprint CSS + Cakephp

2008-09-27 Thread Rudolf
Dear All, Have anyone tried using Blueprint CSS or other CSS resets/frameworks with CakePHP? I am trying to do so, but the typography does not follow what I defined in CSS: I want to use Lucida Grande but Helvetica (the default font) was used instead. Anyway, here is my code: views/layouts/defau

combinate generateTreeList and paginate

2008-09-27 Thread cyberscorp
Hi, How can i generate a tree list with a pagination ? Is there any combination between $this->paginate('Category') and $this- >Category->generatetreelist(null, null, null, '--') Thank you. Model : class Category extends AppModel { var $name = "Category"; var $actsAs = array('Tr

preserving scaffold for admin?

2008-09-27 Thread rocket
hi im running cake 1.1.19. I like the scaffold features, but I can't access them now that my site is done (i configured routes). Is there any way to keep the scaffold features open to an admin? thanks, rocket --~--~-~--~~~---~--~~ You received this message because

CHAR datatype problem

2008-09-27 Thread Donkeybob
I'm using a CHAR(36) for my id fields and my dev machine is fine with that but when I move the table to the host server, the CHAR get changed to a VARCHAR. What do I do with the automatic ID creation for CHAR datatypes? Rich --~--~-~--~~~---~--~~ You received this

timeout

2008-09-27 Thread .
how do you set the timeout to infinite? Configure::write('Session.timeout', x) also, is this in seconds? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php

Re: preserving scaffold for admin?

2008-09-27 Thread rocket
ideally it would be like. being able to be access /admin/posts and see the posts scaffold. rocket On Sep 27, 6:21 pm, rocket <[EMAIL PROTECTED]> wrote: > hi im running cake 1.1.19. I like the scaffold features, but I can't > access them now that my site is done (i configured routes). > > Is ther

Re: Fatal error: Class 'Dispatcher' not found - please help

2008-09-27 Thread 3lancer.eu
Oh, got it kind of working, the workaround was quite strange however: //this must be set on home.pl if (strpos('example.com', $_SERVER['SERVER_NAME']) !== false) { ini_set('include_path', '/app/..:/app:.'); define('APP_PATH', '/app'); define('CORE_PATH', '/'); } around l

Unintuitive behavior for Auth.redirect, and my workaround

2008-09-27 Thread alex_c
Hi all, Originally, my understanding of how Auth redirect was supposed to work was the following: - If the user is not logged in, and requests a page for which they need authorization, they are presented with the login screen. After a successful login, the user is redirected to the page they or

Re: weird ajax cake quirk? only works first time?

2008-09-27 Thread rocket
Nevermind guys! Realized one of my routes was routing wrong... I had an extra "/" in the URL. omg @ these stupid bugs -_- On Sep 27, 12:31 pm, rocket <[EMAIL PROTECTED]> wrote: > Hi guys, > I made a digg like function that can hide unwanted articles, but it > only works the first time? >

weird ajax cake quirk? only works first time?

2008-09-27 Thread rocket
Hi guys, I made a digg like function that can hide unwanted articles, but it only works the first time? A user can come to the site, hide, and everything saves. But if he refreshes and tries to hide other articles, they don't save in the db for some reason? It seems to work on first page load, bu

Re: Auth doesn't store user data in session after login?

2008-09-27 Thread alex_c
>try the $this->Session->chek('Auth.User') Bingo! check("Auth.User") works, check("User") doesn't (maybe that article was written for 1.1?) Thanks for the help! Alex On Sep 27, 3:31 am, aaron50x <[EMAIL PROTECTED]> wrote: > Well alex_c, try the $this->Session->chek('Auth.User')... and you onl

Fatal error: Class 'Dispatcher' not found - please help

2008-09-27 Thread 3lancer.eu
Hallo everyone, Today, from the early morning, I'm feeling the pain to install Cake on an quite untypical server (it's some Idea WebServer and the hosting company is http://home.pl). The problem looks like, after copying Cake installation there, I have that php errors: Warning: array_merge() [f

Filtering on sub table

2008-09-27 Thread Mickael Gentil
Hi all, I need some help with a problem. This is my controller : 20, 'page'=>1, 'order'=>'ProgramBroadcaster.created DESC', 'fields'=>array('id','broadcaster_id','program_id','play_date','delivery_date','case_number','video_tape_number'), 'contain'=>

Re: Praise the good book!

2008-09-27 Thread John David Anderson
On Sep 27, 2008, at 2:50 AM, cronet wrote: > > I would like to thank especially > > John David Anderson aka _psychic_ > > who has the overview about the documentation, and received so much > indirect criticism in that era, where the book was not that what it is > nowadays... Please don't stop w

Re: creating and using multiple po files for cleaner maintenance

2008-09-27 Thread Dr. Tarique Sani
On Sat, Sep 27, 2008 at 10:03 AM, exo_duz <[EMAIL PROTECTED]> wrote: > > Currently I am working with someone who isn't a programmer and I would > like to be able to structure the po files instead of just putting all > the translations in /app/locale/eng/default.po > You can create .po files on pe

Re: How to validate password length

2008-09-27 Thread mario
i already have a 'password2' in my form for password confirmation. Can you please give me an example of what you are referring about? Thanks.^_^ On Sep 27, 3:50 am, "Jon Bennett" <[EMAIL PROTECTED]> wrote: > >  >  I want to validate the length of my password using the cakephp model's > >  >  val

Re: How to validate password length

2008-09-27 Thread Jon Bennett
> > I want to validate the length of my password using the cakephp model's > > validation. However, since the password is being hashed before it is > > saved on the database, my length validation criteria becomes void. We > > all know that a hashed password contains many characters. > > >

Re: How to validate password length

2008-09-27 Thread Jon Bennett
Hi Mario, > I want to validate the length of my password using the cakephp model's > validation. However, since the password is being hashed before it is > saved on the database, my length validation criteria becomes void. We > all know that a hashed password contains many characters. I woul

Re: Auth Redirect Problems

2008-09-27 Thread LunarDraco
I'm experiencing the same problem. (updated to I figured out/have a fix/workaround to this problem read on) More details of what I've found. I've set my sessions.save to database so I could look at the session data at different points. The one thing i've noticed is AFTER I logout the session has t

How to validate password length

2008-09-27 Thread mario
Hello guys, I want to validate the length of my password using the cakephp model's validation. However, since the password is being hashed before it is saved on the database, my length validation criteria becomes void. We all know that a hashed password contains many characters. Here is my model

Re: Praise the good book!

2008-09-27 Thread cronet
I would like to thank especially John David Anderson aka _psychic_ who has the overview about the documentation, and received so much indirect criticism in that era, where the book was not that what it is nowadays... Thank You !!! On Sep 27, 7:59 am, Duncan <[EMAIL PROTECTED]> wrote: > The bo

Re: creating and using multiple po files for cleaner maintenance

2008-09-27 Thread exo_duz
Thanks Tarique. Will try that. On Sep 27, 1:44 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On Sat, Sep 27, 2008 at 10:03 AM, exo_duz <[EMAIL PROTECTED]> wrote: > > > Currently I am working with someone who isn't a programmer and I would > > like to be able to structure the po files inste

Re: Auth doesn't store user data in session after login?

2008-09-27 Thread aaron50x
Well alex_c, try the $this->Session->chek('Auth.User')... and you only can see the uploadpictures after logging, because only the show and the register actions are allowed without login, so for any other action you will need to login first. And I'm not pretty sure, but I think that you should def

Ajax to Html Request

2008-09-27 Thread aaron50x
Hello bakers. This is my problem, I have variuos $ajax->link that updates many $ajax- >div, and everything works nice, but when I clicked on everyone without waiting to complete the previous requests, cake throws me a warning that tells me that the index [Auth] does not exist in the Session array