Re: The Great Web Framework Shootout

2012-02-20 Thread Seth
Hello everyone, I apologize for the fresh publicity that this received with an old version of CakePHP. The last version of these tests were run in September of 2011, and I just recently decided to move the code to GitHub but didn't expect that it would be picked up by Hacker News, Reddit, etc.

Re: basic relation question

2011-09-23 Thread Seth
45 pm, Zaky Katalan-Ezra wrote: > If the relationship are all there in all models you may change to > $this->track->recursive = 1; > > if not try to build your models with "./cake bake all" in order to see the > suggested relationship. > > > > > > >

basic relation question

2011-09-23 Thread Seth
I'm very new to CakePHP and MVC, so this is probably basic. Just need a push in the right direction. I've got Event to many Courses to one Instructor If I'm on a Event view, it sees the Courses, but doesn't join to the instructor. So, do I add the instructor somehow to the Event model or do I ed

Re: converting site/password(salt) conversion

2011-09-21 Thread Seth
ould be: > > - If the user is found, get the salt and apply the salt to the > unencrypted password (prepend or append). > - Hash the resulting string with the used hash algorithm. > - Check if the hash matches the one in the db. > > Kind regards > Thomas > > Am 21.09.

converting site/password(salt) conversion

2011-09-21 Thread Seth
Hi, A client purchased data, but wasn't allowed to have the code. The user table has an encrypted password and a salt column. I started my site using AuthComponent, where it's just one password field, docs say "Cake appends your password string to a salt value and then hashes it". So is there a

Re: CakePHP beginner having trouble setting up .htaccess files with 1and1.com server config

2011-08-21 Thread Seth Barrett
REQUEST_FILENAME} !-f > RewriteRule ^(.*)$ /app/webroot/index.php?url=$1 [QSA,L] > > > Only things to notice are is that the paths always include the app > folder and they all have the beginning / added to them. Works for me. > > Good luck. > > On Aug 19, 5:26 am, Se

Re: CakePHP beginner having trouble setting up .htaccess files with 1and1.com server config

2011-08-21 Thread Seth Barrett
When I add that I get error 500 page. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-p

CakePHP beginner having trouble setting up .htaccess files with 1and1.com server config

2011-08-19 Thread Seth Barrett
Hello, I'm attempting to get my first CakePHP installation running on a 1and1 server configuration. I've read all the articles and thought I was doing everything properly but the results don't seem to indicate that. The domain is here: http://bourbonbeachjerk.com/ You can see the error on URL re

What's the best way to change select box option labels when using Automagic forms?

2011-06-02 Thread Seth Meranda
I have a standard baked controller with add and edits for a list of students. Each student belongs to one family, so I have this in my Student Model: var $belongsTo = array('Family' => array( 'className' => 'Family', 'foreignKey' => 'family_id') ); In my student view, the Fami

Re: Nested Associations / Multiple Joins

2009-01-15 Thread seth
Also, what is "read", I'm not having any luck finding any documentation on this (perhaps I should be using "find" and that's my problem to begin with...). I just copied this line from a baked controller: $user = $this->User->read(null, $id); --~--~-~--~~~---~--~~ Y

Nested Associations / Multiple Joins

2009-01-15 Thread seth
I have the following setup: Users hasAndBelongsToMany Albums Albums belongsTo Artists It's easy enough to retrieve all the users albums with: $user = $this->User->read(null, $id); This populates $user['Album']. But what is the best practice for getting the artist info associated with the albu

Re: Incomplete Class when storing object in session

2008-09-04 Thread seth
NM, I just needed to use serialize when writing to the session and unserialize when reading! On Sep 4, 11:41 am, seth <[EMAIL PROTECTED]> wrote: > I have a class in my vendor directory that I include using the > App::import function and then instantiate.  I store the created o

Incomplete Class when storing object in session

2008-09-04 Thread seth
method, but this doesn't solve anything. I assume I'm getting the error because in the cake guts the include is happening after the session_start, something I don't think I have any control over... Anyone else run into this or have any ideas for a wor

Re: Multiple Inserts without a loop

2008-08-20 Thread seth
> > Right, but how many inserts does this perform? > > - As many inserts as required > Yes, but my whole point is that if you are inserting 1000 questions, this could be done in 2 interests or 1001... Is cake currently smart enough to do it in 2? --~--~-~--~~~---~--~-

Re: Multiple Inserts without a loop

2008-08-20 Thread seth
Right, but how many inserts does this perform? And does the auto- magic know to use the Exam's newly created id? -seth On Aug 20, 10:36 am, teknoid <[EMAIL PROTECTED]> wrote: > use saveAll() to store multiple records > > On Aug 20, 12:55 pm, seth <[EMAIL PROTECTED]>

Multiple Inserts without a loop

2008-08-20 Thread seth
So it seems most implementations of active record I've used have NOT had a way to do this, so I guess I'm hoping Cake is above the curve here... I'd like the general ability to do N record inserts (and updates) without doing N database calls. Essentially, I want something of the form: INSERT I

Re: HABTM multiple inserts

2008-08-20 Thread seth
What code specifically did you look at? On Aug 8, 9:23 am, lightglitch <[EMAIL PROTECTED]> wrote: > Solved it by looking to model test cases code. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To p

/app/webroot/ as home link ...

2007-09-14 Thread Seth
Hi all, I have used url('/'); ?> to link the logo to home page and instead to go to www.site.com it goes to www.site.com/app/webroot/ it works but is ugly .. does anybody knows what i need to do ? thanks! Claudiu --~--~-~--~~~---~--~~ You received this message b

Re: does cakephp has a helper for select tag ?

2007-09-10 Thread Seth
lect, any hints ? by the way i use cake 1.17 On Sep 10, 6:23 pm, francky06l <[EMAIL PROTECTED]> wrote: > $form->select > > On Sep 10, 5:11 pm, Seth <[EMAIL PROTECTED]> wrote: > > > I'm trying to create a dropdown list .. but i can't find a helper for >

does cakephp has a helper for select tag ?

2007-09-10 Thread Seth
I'm trying to create a dropdown list .. but i can't find a helper for it like there is for imput, radio, checkbox etc, dose cake has a helper for it or i'm just missing it from docs ? Thanks. Claudiu --~--~-~--~~~---~--~~ You received this message because you are

Re: can i have a form in the view.thtml page ?

2007-09-09 Thread Seth
hen you have added your action you can redirect to > view, or render the view.thtml. > > On Sep 8, 11:41 pm, Seth <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > I try to build a website and i start this with cakephp and everything > > works fine till now ... bas

can i have a form in the view.thtml page ?

2007-09-08 Thread Seth
Hi all, I try to build a website and i start this with cakephp and everything works fine till now ... basically i do a hotel review websites the problem is here, when i land hotel page i see some hotel details past reviews and i have a form at the end of the page "add new review" ... so i'm on "v

Re: about jpgraph

2006-05-02 Thread Seth Dillingham
ers pass in the correct data, it should all work just fine. The "all white page" you got was most likely an error being generated in jpgraph, not in cake. Good luck! Seth --~--~-~--~~~---~--~~ You received this message because you are subscribed to the