Re: MediaView Videos and Safari on iPad

2012-05-30 Thread Max D
ivery-mobile-devices I hope to find the time to clean up and release the code. Am Donnerstag, 24. Mai 2012 17:57:48 UTC+2 schrieb Max D: > > Hi, > > Cake: 2.0.3 > > I'm using MediaView to deliver videos to the user. This works great on > Firefox, Safari and on my Andr

MediaView Videos and Safari on iPad

2012-05-24 Thread Max D
Hi, Cake: 2.0.3 I'm using MediaView to deliver videos to the user. This works great on Firefox, Safari and on my Android Phone but when I try to use it with mobile Safari on an iPad, the video can't be played. I have a hard time debugging on the iPad, the only message I get in console is: "QuickT

Re: Layer images

2012-05-11 Thread Dave D
You need to change the image if you don't want to give people access to the original. "Right-click" and saving an image isn't the only way to see an image from a website - there wouldn't be anything stopping a person from looking at the image html that's generated from CakePHP and downloading from

Re: Where to start?

2012-04-10 Thread Dave D
If it's showing absolutely nothing, this could be a case where your version of PHP isn't up to date. The newer versions of CakePHP need 5.2.8+. I've tested with 5.1.x and nothing shows up. Unfortunately, this means that older versions of Centos (5.x) and probably RHEL do not come with a version

Re: Problem in edit-view with data from a HABTM-relationship

2012-04-04 Thread Wall-D
Am Mittwoch, 4. April 2012 15:35:26 UTC+2 schrieb Mike Griffin: >> >> On Wed, Apr 4, 2012 at 13:50, Wall-D wrote: >> > Yes, it should be the list of all detail-types with the correct one >> > selected. >> > >> > in the controller I'm passing

Re: Problem in edit-view with data from a HABTM-relationship

2012-04-04 Thread Wall-D
Am Mittwoch, 4. April 2012 11:40:10 UTC+2 schrieb Mike Griffin: > > On Tue, Apr 3, 2012 at 14:59, Wall-D wrote: > > Here ist the problem: > > > > here ist the code from edit.ctp > > > >

Problem in edit-view with data from a HABTM-relationship

2012-04-03 Thread Wall-D
Hello, I'm developing a small application to manage some Server-related data. Currently the app is running on cake1.2 ant the migration to cake 2.1 is making me some headache. Here ist the problem: Tables: Device (has many) Detail (belongs to) DetailType sample data: Server1 0815-123

Re: Database configuration problem

2012-03-27 Thread Dave D
Does this still error if you remove " wrote: > class DATABASE_CONFIG { > >         public $default = array( >     'datasource' => 'Database/Mysql', >     'persistent' => false, >     'host' => 'localhost', >     'port' => '', >     'login' => 'root', >     'password' => '', >     'database' => 'ca

Re: Cake PHP (Bug even still exists in cake php2)

2012-03-08 Thread Dave D
Are you saying that you're using the default "welcome to cakePHP, everything is working correctly!" page that comes up to make sure all your settings are correct before creating your website, and that page's css breaks when you start doing other things which causes errors to appear on the page beca

Re: PHP Warning: SplFileInfo::openFile(/srv/www/lighttpd/app/tmp/cache/persistent/cake_core_file_map)

2012-02-17 Thread D Mahoney
That suggestion sounds reasonable. Tried that, but still have same issue. I changed the cache config to add 'mask' => 0666 in app/Config/bootstrap.php (Cache::config('default', array('engine' => 'File', 'mask' => 0666));), then deleted the cache files with "find ./*/tmp/cache -type f \( -name

Re: strange image upload editing behavior

2012-02-06 Thread Dave D
le wrote: > hmm...model names are CamelCased, right ? > so Imagelink will be better :) > -- > Lep pozdrav, Tilen Majerlehttp://majerle.eu > > 2012/2/6 Dave D > > > Hi everybody, I'm working on creating an image upload section for my > > site, and creating the ima

strange image upload editing behavior

2012-02-06 Thread Dave D
Hi everybody, I'm working on creating an image upload section for my site, and creating the images seems to work fine. The uploaded image information is saved correctly, the image is moved to the correct folder and it looks like I can call the image from other parts of the site just fine. My prob

images only partially working

2012-01-25 Thread Dave D
I'm running into a strange issue where I'm trying to load images to a page, and only some of my images are showing up. It seems like all of CakePHP's images (things like cake.power.gif) work fine, everything that I have loaded in through CSS work fine (and will show up fine with the Html Image hel

Re: Including queried information in default layout

2012-01-20 Thread Dave D
> > Can you post more code? > > The component idea should be fine. > > More details of your bab/menu model would be good. > > - S > On 20 Jan 2012 16:13, "Dave D" wrote: > > > I'm looking to create a site where I can have a navigation list on one &

Including queried information in default layout

2012-01-20 Thread Dave D
I'm looking to create a site where I can have a navigation list on one side of each page where the list of links is taken from a database table. I can create the list of links just fine in the layout, but I'm suck looking at how I might be able to get the list out from the database. I've been look

URL rewriting is not properly configured on your server

2012-01-14 Thread Dave D
I'm setting up cake for the first time, and trying to follow the blog tutorial, but I can't get URL rewriting to work. I had just finished the part where I created index.ctp in the Posts directory under app/View when I figured out that it's not correctly set up. System info: OS: Centos 6.2 x86_6

Re: Class 'File' not found

2011-07-04 Thread Benj. D.
Yes I'm using APC and I'm on windows platform. Why would there a problem with an opcode caches? And how to solve it? For the form code, I use the attachments.ctp view given in the plugin, I still don't make any modifications. -- Our newest site for the community: CakePHP Video Tutorials http://

Class 'File' not found

2011-07-02 Thread Benj. D.
Hello, I've installed the media plugin, all is right except that I get this error when I try to send my form : Fatal error: Class 'File' not found in D:\Xampp\xampplite\htdocs \MyProject\app\plugins\media\models\behaviors\coupler.php on line 136 Here is a part of the code arou

Changing Primary Key in Model is not being recognized

2011-04-15 Thread Deftly-D
I am trying to override the PrimaryKey used to join tables, but the query that CakePHP is generating keeps using 'id' as the primary key. This is in CakePHP version 1.3.7 Please suggest any changes that don't involve changing the database structure. The models that I am trying to join are as foll

IIS Challenge Response Authentication and LDAP

2011-04-08 Thread Deftly-D
I know that there are plenty of posts about authentication using LDAP but I don't see any using IIS's challenge response with CakePHP grabbing the sid, username and email address from LDAP. Does anyone have a solution for this? DD -- Our newest site for the community: CakePHP Video Tutorials h

Deprecated?

2011-03-31 Thread Deftly-D
Is there a list of deprecated items between versions of CakePHP? Thanks, DD -- 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 unsubscrib

Auth component doesn't set session variables !

2011-03-31 Thread damien d
Hi, I have trouble with the Auth component. I try something really simple : - I create a user db (with name,password field) - I use a appcontroler with this code : var $components = array("Session","Auth"); function beforeFilter() { $this->Auth->fields = array('username

Configure datasources plugin

2011-03-03 Thread damien d
Hi, I'm new on cakephp 1.3.7 and i want to access a sqlite3 db. So i take a look to datasources plugins (https://github.com/cakephp/ datasources/) that support this kind of database. I unzip it under app/plugins/datasources, and i configure my database under database.php : class DATABASE_CONFIG {

Re: find all with at least one associated model

2010-11-03 Thread Max D
eturned 1. Anyway, having the counter_cache is nice anyway. So my problem is solved. On Nov 2, 9:12 am, ohcibi wrote: >  The easiest way would be to Use countercache and then just add > post_count > 0 to conditions... if you cant zdf countercache for some > reason you could also inner j

find all with at least one associated model

2010-11-01 Thread Max D
Hi, i use cake 1.3 and I have a "Blog hasMany Post" association and now I want to find all the Blogs, which have at least one Post. I use the Containable Behavior. I understand, that I could do a Blog->find('all', array('contain' => array('Post'))) and simply filter the results for the Blogs, whe

RSS in the Bakery broken

2010-10-27 Thread Max D
Hey, the RSS feed in the bakery seems to be broken. I worked a while ago, but now http://bakery.cakephp.org/articles/rss throws an error: Error: The requested address '/articles/rss' was not found on this server. I didn't know who to contact with this issue. Regards Max Check out the new CakeP

unsubscribe

2010-10-19 Thread d...@freakclimbing.com
Inviato da HTC Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 unsubscr

Trailing Slash redirect (SEO) and CakePHP Forms

2010-03-24 Thread Andreas D.
Hi there! I have a Problem with my App. In my .htaccess, i added some lines to redirect the user if the url ends without a slash to the same page with a slash. For example: redirect /posts/view/2 to /posts/view/2/ Now, I have a form /posts/add/. I use the Cakehelper to create it, and it ma

Re: Developing cake on vista

2009-10-12 Thread d
i use wampserver on XP with fine results. http://www.wampserver.com/en/ On Oct 12, 3:18 am, foongoos wrote: > I am taking a programming class using c# and I love it (familiar with > OOP). I also know a little bit of PHP but I would like to advance my > knowledge. I would like to eventually use

Re: Problem showing dropdown

2009-09-16 Thread d
Short answer: yes. Create a LocationType model Location belongsTo LocationType In your location controller, do something like: $types = $this->Location->LocationTypes->find('list') and set the $types variable for the view: $this->set(compact('types')); In the view, you can then do: echo $form-

Re: Saving hasMany with HABTM

2009-09-15 Thread d
I've got it working, but am still concerned as to whether this is the 'right' way to do it. In my view, i had the Problems checkbox field as 'Appointment.Problem.Problem'. I changed that to just 'Problem.Problem'. To save everything, i am now doing this: if ($this->Meeting->save($this->data['Mee

Re: Setting Up CakePHP on MAC with MAMP and Eclipse

2009-09-07 Thread Frederick D.
That's where ModelBaker comes in to be handy. You can make separate project files and have separate project folders each using separate databases. You may want to pick up a copy of VirtualHost in order to be able to test multiple sites (aka multiple projects) at the same time. You can lea

Re: CakePHP + PHP5.3 = ?

2009-08-31 Thread d
how do you guys find the time? seriously. you people are awesome. On Aug 31, 7:19 am, jperras wrote: > Alright guys, it seems like you're all a bit confused. > > If you only read one line of this entire post, read this: CakePHP 1.3 ! > = Cake3 > > Now, while this may seem obvious to many, you g

Lack of error "missing connection"

2009-07-30 Thread Giedrius D
elseif (isset($db->config['prefix'])) { $this->tablePrefix = $db->config['prefix']; } - - if (empty($db) || $db == null || !is_object($db)) { - return $this->cakeError('missingConnectio

Re: Containable + HABTM + conditions PROBLEM [urgent]

2009-07-06 Thread Andreas D.
perhaps its easier in normal sql, but as im not an sql professional i wanted to do it the cakeish way.. Thanks for any help... On 6 Jul., 09:31, "Andreas D." wrote: > Thanks, but it doesn't work. > Gives me this query: > SELECT `Module`.`id`, `Module`.`position`, `Module`

Re: Containable + HABTM + conditions PROBLEM [urgent]

2009-07-06 Thread Andreas D.
Thanks, but it doesn't work. Gives me this query: SELECT `Module`.`id`, `Module`.`position`, `Module`.`name`, `Module`.`created`, `Module`.`modified` FROM `modules` AS `Module` WHERE `Version`.`name` = 'covermount' and this error: 1054: Unknown column 'Version.name' in 'where clause' On 3 Jul.,

Re: Input fields prefilled / prechecked depending on database field

2009-06-24 Thread Andreas D.
Oops, accidentally replied to an other discussion :| --~--~-~--~~~---~--~~ 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

hasMany problem

2009-06-04 Thread Andreas D.
Hello all together, i'm currently developing a checklist application. I got problems linking the models together right now.. I got one Checklist model which belongsTo a User, Language, OperatingSystem, Product. My User hasMany Checklist. Now I want to fetch all User related checklists through th

Re: Database and Model Design for HABTM

2009-05-28 Thread d
The only thing i see, and this may be a result of your description and not how you actually want the app to work, is that a recipe belongs to one subcategory, and it is the subcategories which HABTM main categories. In your example, steak belongs to the subcategory of beef, which in turn is in bot

Re: Accessing a foreign_key from an indirectly referenced model

2009-05-27 Thread d
said, it seems to me that students are competitors. I would probably do a Student hasAndBelongsToMany Trackmeet and get rid of the Competitor model. -d On May 27, 8:14 am, "jason.t.stein" wrote: > In the project I am working on, I have the following models: > > class St

Re: What do you develop in (ide, text editor, etc.)?

2009-03-02 Thread Billee D.
Coda from Panic. Or, for quick n' dirty tasks, TextWrangler from Bare Bones Software. On Mar 1, 4:35 pm, Samuel DeVore wrote: > a tutu and go go boots > > On Sun, Mar 1, 2009 at 12:34 PM, Tomás Laureano Peralta Tormey > > wrote: > >  Currently using NetBeans 6.5. The hints from this bakery arti

Re: nice new API layout

2009-01-30 Thread Billee D.
Awesome work! The new docs are beautiful. Thanks so much for taking the time to make this part of the Cake documentation easier to use. And the fact that the API docs were generated through a custom plugin really make this sweet. You rock! On Jan 27, 5:27 pm, Gwoo wrote: > Darn you guys are fast

Re: Which editor for Mac OS X?

2009-01-24 Thread Billee D.
+1 for Coda or TextMate, but neither are free -- but they both cost less than $100. Money well-spent, IMO. As for freebies, you cannot go wrong with TextWrangler: http://www.barebones.com/products/textwrangler/ I still use this little GUI editor when I need to perform some quick FTP edits and up

Cheatsheet & API discrepancies

2009-01-21 Thread Scott D
Can someone explain the discrepancies between the cheatsheet and API? As an example, the cheatsheet (http://cakephp.org/files/Resources/ CakePHP-1.2-Cheatsheet.pdf) defines several methods on the Model class - find(), delete(), deleteAll(), etc. - that are absent from the API documentation for the

Re: Hosting

2008-10-24 Thread Billee D.
Well, Mosso (http://www.mosso.com/) is *really* good -- they use Rackspace cloud hosting. Solid service and great support folks. I also think that TextDrive is great -- those Joyent folks are really nice and very knowledgeable. The service is awesome. I like Media Temple as well. They have great

Re: Editing model's primary key in forms

2008-07-01 Thread Bryan D
Thanks guys, that works perfectly. I take it the Player.id form is now preferred over Player/id ? I ported my app from Cake 1.1 to 1.2, and probably missed a few things. On Jun 30, 4:41 am, "Jonathan Snook" <[EMAIL PROTECTED]> wrote: > On Sun, Jun 29, 2008 at 6:19 AM, Mr. Matt <[EMAIL PROTECTED]

Editing model's primary key in forms

2008-06-28 Thread Bryan D
I would like to allow a model's primary key field (named id) to be editable, at least upon creation of a new object. I noticed that using syntax like: input('Player/id') ?> doesn't work because CakePHP converts it to a hidden field automatically. Is there some way I can override this? I worked

Re: help transferring host

2008-06-13 Thread r()d
according to my php_info() the mod rewrite is loaded and AllowOverride is set to all in http.conf. i did a simple example to test mod-rewrite/htacces and it seems everythign is ok.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

help transferring host

2008-06-13 Thread r()d
Guys, I need a little guide on how to moves from one host to another. I am moving a pretty sophisticated site from one host to the other and I know how to move part and successfully have more parts but others things are broken. I have set up a test server on my home pc(free bsd- server with php

Looking for a Cake / Ajax freelance developer(s)...

2008-04-19 Thread Gianni D [LIFTHERE]
Hello I am an interactive producer in Miami Florida and in great need to find some experienced PHP developers specially with Cake and Ajax experience. I have a personal project that I need to build out. The project is a business productivity tool that will have a monthly recurring revenue model, m

Re: 1.2 Beta Auth Component, Allowing root to be public

2008-02-16 Thread Rod D.
That did it. I had been trying '/' and other derivatives instead of 'display'. Thanks again, and again, and again. Both you and Chris hit me with responses instantly for my 3 different topics. Rod D. wrote: > Baz, let me give it a try. > > > Baz wrote: >

Re: 1.2 Beta Auth Component, Allowing root to be public

2008-02-16 Thread Rod D.
Baz, let me give it a try. Baz wrote: > I'm guessing your using the pages controller? Else I don't see what the > problem would be. > > So, $this->Auth->allow('display'); > should give you what you're looking for. > > On Feb 16, 2008 2:30 PM,

Re: 1.2 Beta Auth Component, Allowing root to be public

2008-02-16 Thread Rod D.
he private area of the site. So then instead of showing a login link on the root page, it would be changed to a logout link and the user name would also be displayed. I can do that, but because I did, now I can not make the root public. Chris Hartjes wrote: > On Feb 16, 2008 3:30 PM, Rod D. <

1.2 Beta Auth Component, Allowing root to be public

2008-02-16 Thread Rod D.
1.2 Beta Auth Component, Allowing root to be public Cake: 1.2.0.6311 beta, Mysql: 5.0 Ok, I have come so far, and I think this is my last hurdle. I can not find the answer anywhere else, so here I am again. Since I have put the code in my app controller, my main page now requires login. How do

Re: 1.2 Beta Auth Component, Controller other than Users

2008-02-16 Thread Rod D.
Rod D. wrote: > Still some issues... Good Grief! > > Well looking at the Form helper code, I have found that I had to hard > code the form definition in the view. No worries, it now calls / > echere/login like it is supposed to. > > Now, after entering the username and

Re: 1.2 Beta Auth Component, Controller other than Users

2008-02-16 Thread Rod D.
Still some issues... Good Grief! Well looking at the Form helper code, I have found that I had to hard code the form definition in the view. No worries, it now calls / echere/login like it is supposed to. Now, after entering the username and password and clicking the login button I gegtg the fo

Re: 1.2 Beta Auth Component, Controller other than Users

2008-02-15 Thread Rod D.
s so much. Chris Hartjes wrote: > On Feb 15, 2008 5:29 PM, Rod D. <[EMAIL PROTECTED]> wrote: > > > > > > Any help would be greatly appreciated. > > -Rodney > > On your login page, what's the actual target for the POST? An odd > thought struck me that

1.2 Beta Auth Component, Controller other than Users

2008-02-15 Thread Rod D.
Cake: 1.2.0.6311 beta, Mysql: 5.0 I am having more issues with the 1.2 beta Auth component. Particularly I am trying to get around having a Users controller. Let's say I want to use a controller named EcHere instead of Users. When I enter, localhost/echere/login I get the login prompt served up b

Re: 1.2 Beta Auth Logout problems

2008-02-13 Thread Rod D.
; the browser and see what happens. > > On Feb 13, 2008 8:04 PM, Rod D. <[EMAIL PROTECTED]> wrote: > > > > > Baz, > > Yes, I am running IE7 on Windows XP Pro. > > > > Missed the 4 questions earlier... sorry a bout that. > > 1. Is $this->Auth->au

Re: 1.2 Beta Auth Logout problems

2008-02-13 Thread Rod D.
Baz, Yes, I am running IE7 on Windows XP Pro. Missed the 4 questions earlier... sorry a bout that. 1. Is $this->Auth->autoRedirect = false ??? No, I never changed this setting. I just double checked at run time, and it is True. 2. In your controllers are you overriding beforeFilter?

Re: 1.2 Beta Auth Logout problems

2008-02-13 Thread Rod D.
Unfortunately that did not solve the problem. I replaced my logout function with your suggestion below, and I get the message that the user was logged out, but if I then type in the url of the private controller, then I am allowed back in with no new login prompt. I must have some other issue, bu

1.2 Beta Auth Logout problems

2008-02-13 Thread Rod D.
Hi everyone. Cake: 1.2.0.6311 beta, Mysql 5, PHP 5, Sessions: Database, Security: High I wonder if anyone has come across this problem I am having with Cake 1.2 Beta. I have setup the Auth component and have a username and password working correctly. If I try to access a controller that is pri

1.2 Beta Auth Logout problems

2008-02-13 Thread Rod D.
Hi everyone. Cake: 1.2.0.6311 beta, Mysql 5, PHP 5, Sessions: Database, Security: High I wonder if anyone has come across this problem I am having with Cake 1.2 Beta. I have setup the Auth component and have a username and password working correctly. If I try to access a controller that is pri

Re: Models ($hasMany) Relationship

2008-02-12 Thread Adam D.
It worked! Your a savior. I never would have figured that out, being a new cake user. Thanks again! -Adam On Feb 5, 4:02 am, grigri <[EMAIL PROTECTED]> wrote: > File is a reserved word in Cake - there is already a class called > File. Try renaming yourmodel. > > On Feb 4, 7:23 pm, "AdamD." <[EM

Models ($hasMany) Relationship

2008-02-04 Thread Adam D.
I have 3 tables in a database. Properties, Images and Files. My Property table $hasMany array contains both Images and Files. Properties has many images. Properties has many Files. For some reason when I add 'File' to my properties controller. Everything stops working, and I get the following e

Re: cake 1.2.x.x console problems

2007-12-14 Thread Adam D.
> wonder if on your system you have to set the executable bit? Not sure what you mean by that? On Dec 14, 6:38 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > On Dec 14, 2007 4:33 PM, Adam D. <[EMAIL PROTECTED]> wrote: > > > > > Thanks... > &

Re: cake 1.2.x.x console problems

2007-12-14 Thread Adam D.
t; I think this is fairly upto date for Bake'n > > http://tempdocs.cakephp.org/#TOC108142 > > HTH >Sam D > > On Dec 13, 2007 6:47 AM, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > > > > > > On Dec 13, 2007 2:09 AM, Adam D. <[EMAIL PROTECTED

cake 1.2.x.x console problems

2007-12-12 Thread Adam D.
I can't run the bake command, or any of the commands from the console. I viewed the screencasts, but still, no luck. If I execute /usr/bin/php cake/console/libs/bake.php ...and I get the output from the console, with paths, etc. -- I essentially just want to run the good ol' bake script

using generateList() to select correct entry

2007-12-10 Thread Adam D.
I have a properties controller and an images controller. Properties hasMany Images. Images belongsTo Properties. I need to get the id property id so the properties list dropdown selects the correct property. So if the user, clicks the url 'images/add/6' the properties dropdown will select the

Re: missing database table / camelcase error

2007-10-14 Thread Adam D
Ugh. To document my own ineptitude... The issue was that the new server had the site defaulted to php4. An argument for setting $name properly, I suppose. - Adam On Oct 14, 8:26 pm, Adam D <[EMAIL PROTECTED]> wrote: > Hi, > > I just moved my site to a new server and I'

missing database table / camelcase error

2007-10-14 Thread Adam D
Hi, I just moved my site to a new server and I'm getting a "missing database error" for all of my model. Cake appears to be omitting the underscores on the conversion from model name to database table, so, for a model like GroupType, it's looking for a table named "grouptypes" instead of "group_t

Getting Started with DAuth

2007-06-21 Thread Rod D.
Ok, here we go. PHP5, MySQL 5, Apache 2, CakePHP 1.1.15.5144, DAuth 0.3. I am a beginner with CakePHP, and am having a bit of rouble just grasping the initial concept of how to get the user login page to appear. I read through the beginning parts of the manual, read the entire DAuth article, inst

Ruby on Rails Promo Videos

2007-05-17 Thread Brian D.
It looks to me like they haven't met Mr. CakePHP! http://aatw.tumblr.com/post/2036104 http://aatw.tumblr.com/post/2036194 (Seen on NY php mailing list.) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" gr

Re: Experiencing slowness with CakePHP, Apache, MySQL on XP

2007-05-17 Thread Brian D.
When you ask about a problem, the more details you give the more others will be able to help you. - CakePHP by itself is not slow. Are you *doing* anything on the page in question? - Have you tried serving PHP pages without using Cake and comparing the load time? It's a process of narrowing down

Parsing the date from the HTML form helper

2006-12-15 Thread Rolo D. Monkey
odel][$field . '_month']) ? intval($this->data[$model][$field . '_month']) : null; $day = isset($this->data[$model][$field . '_day']) ? intval($this->data[$model][$field . '_day']) : null; $year = isset($this->data[$model][$field

Re: Documentation for rdBaker

2006-12-15 Thread Rolo D. Monkey
I know this is going to ruin my geek cred, but despite the fact that I have been on the net since 1992, I never really used IRC. Also, I do not have command line access to my server, and from what I have seen this seems to be the preferred way to access the Bake class. I am willing to help with

Documentation for rdBaker

2006-12-15 Thread Rolo D. Monkey
In general CakePHP is a godsend, and I am planning on using it a lot, but the documentation leaves something to be desired. Is there a way I can help? Is there any documentation for rdBaker? After some tweaking, I got it to work, but the index.thtml is looking for a 'created' field in my table.

How to add a subsection without using controller

2006-10-11 Thread D Smith
Hi , I am working on a website, where I need some URL alterations. I want to generate different url's for the users of the website after they logged in. For example:- if smith is currentely logged in the url should be like http://mywebsite.com/smith or http://smith.mywebsite.com I do not want t

Re: tmp Warning

2006-09-29 Thread D. Pape
ah right! that could be the reason! > > maybe you have extracted the zip using winzip. Winzip by default (i > don't know if it's settable) didn't extract empty folders contained in > the zip archive. If so, try for example winrar or a porting of tar for > windows :). > > However as Pape said, it

Re: tmp Warning

2006-09-29 Thread D. Pape
i´ve downloaded the latest version of cakephp (zip-file) a minute ago and there is a tmp folder in app/! :o) i don't know what happens if you make the tmp folder manually and set it writeable. will cake make the subdirectories automatically?! > I downloaded it but there is no tmp folder :( > >

Re: tmp Warning

2006-09-29 Thread D. Pape
usually the tmp folder is in the cake-zip! the tmp folder have to be writeable! > Warning: > file_put_contents(/PATH_TO/app/tmp/cache/models/default_FOLDER_list) > [function.file-put-contents]: failed to open stream: No such file or > directory in /PATH_TO/cake/basics.php on line 835 > > Hi Guy

Re: choice of table name

2006-09-29 Thread D. Pape
You want two or more tables in one model?? that?s impossible, i think. You should work with associations! Maybe you should read the manual first.. http://manual.cakephp.org/chapter/models > yup. but how do i have multiple tables in one Model? > > > --~--~-~--~~~

Re: choice of table name

2006-09-29 Thread D. Pape
> set member "$useTable" if your table name is different to your model name. > > i meant: if the table name is not the plural of the model name. of couse, in my example table name and model name are equal! ;o) --~--~-~--~~~---~--~~ You received this message

Re: choice of table name

2006-09-29 Thread D. Pape
hi. set member "$useTable" if your table name is different to your model name. class User extends AppModel { var $useTable = 'user'; ... } is this what you want to know? cheers. > Can I have a table name that is singular and how should I implement it > in model? > Everytime when I r

Re: ordering in associations

2006-09-28 Thread D. Pape
hi spark. can you post your association code please? i am a little bit confused. ;o) cheers. daniel > I have a Movie and a Director models, both with HABTM associations. > The movie is ranked in my site and have a Movie.position field. > I could not find a way to show , let's say, the 30 fir

Re: Load Text from a textfile

2006-09-28 Thread D. Pape
hi felix. i think you can use the file class. there?s a post on cakebaker: http://cakebaker.42dh.com/2006/09/20/how-to-use-the-file-class-from-the-core/ cheers. > Hi there, > > i need to load some text from a atextfile and show it on the screen. > I placed my textfile (text1.txt) in the webr

Re: incorporating many views

2006-09-28 Thread D. Pape
hi michael. there is a folder in the views folder called elements! This folder contains views (*.thtml) which can rendered in a view with $this->renderElement('partofview.thtml'); Check out: http://manual.cakephp.org/chapter/views Cheers. > What I want to know is what is the best way of bri

Re: Saving with hasMany

2006-08-21 Thread Rolo D. Monkey
Perhaps I need to be more specific. I am importing the data from a .csv file, so I am building the data structure myself, and the information from the Manual does not explain how to create a data structure for multiple hasMany records. So far I have managed to save Member records, and I had no tr

Saving with hasMany

2006-08-18 Thread Rolo D. Monkey
I know that you cannot save associated records directly from a model that has a hasMany relationship, but how do you do it indirectly? I have been all over the web for hours looking for this. Here is a simplified version Model Member hasMany Individual Model Individual belongsTo Member I am im

Re: Run a direct query

2006-08-14 Thread D Smith
Thanks David --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more

Run a direct query

2006-08-07 Thread D Smith
Hi All: Can i run a direct query in cake without using function i.e. findAll etc. Direct query means by writing complete query like select * from tablename Thanks David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Fatal error: Allowed memory size of 83886080 bytes exhausted at (null):0 (tried to allocate 32 bytes) in dbo_mysql.php

2006-08-07 Thread D Smith
Hi All: I am facing memory exhausted problem in my application. The file use to pick up around 600 records from one table and runs a for loop.Under this for loop there is another loop runs for 120 times. In simple php applications these queries use to work fine. But in cake its giving a problem

Re: Adding new model

2006-07-25 Thread D Smith
Thanks for the help :) --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED]

Adding new model

2006-07-18 Thread D Smith
I am new to cake php and do not know how to add a new model/controller that is not particularly related with some table.For example a search module which can pick its data from multiple tables. Could anyone help me on this topic. Thanks in advance --~--~-~--~~~---~-

Re: Post Variables Problem

2006-07-17 Thread D Smith
Thanks for your kind support. Problem has been resolved. it was something to do with the htaccess 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-ph

Re: Post Variables Problem

2006-07-17 Thread D Smith
Thanks for your kind support. Problem has been resolved. it was something to do with the htaccess 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-ph

Post Variables Problem

2006-07-15 Thread D Smith
I have setup a cake application.Everything is working fine except the form posting.Whenever i submit a form $this->params['data'] use to come empty. Do anyone have any idea about this problem? --~--~-~--~~~---~--~~ You received this message because you are subscr

multicolumn primary key

2006-06-09 Thread D.
Is there any way i can use a multicolumn primary key with Cake's ORM? If not, is this planned for the future? I can solve my current problem easily by adding a single column primary key but i was just wondering :) --~--~-~--~~~---~--~~ You received this message be

generateFieldNames and multiple models

2006-06-07 Thread D.
I'm using multiple models in one controller, now i'm using generateFieldNames to implement some quick and dirty CRUD actions but this does only work for one model. I checked out the source files and noticed generateFieldNames uses $this->modelClass to find out what model to use. Isn't it an idea t