Re: Media plugin - usage questions

2011-03-08 Thread David Persson
Hi Foroct, I've answered you in the other thread. - David -- 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

Re: image upload via iphone app

2011-03-08 Thread David Persson
Hi Foroct, 1. Handling just the file upload: You just posted the file to your action (via XHR) and $this->data['media'] now contains the file upload array. Image is a model available in the controller which has generator and transfer behaviors attached to it. $file = $this->Image->transfer($t

Re: Make webroot index the home page

2011-03-08 Thread Ryan Schmidt
On Mar 8, 2011, at 16:03, lauraw wrote: > What I'd really like to do is have my wordpress area still within the > cake environment and so under the cake webroot area.I'd kind of like > the two to live together. The reason for trying this is to make use of > all of the WP and other plug-in function

Re: Make webroot index the home page

2011-03-08 Thread lauraw
Hi, Sam. Yes, cake is installed in a subdir called 'cake.' This is probably strange, but I just tried this configuration (cake within WP): docroot/ wordpress/ cake/ that actually worked out okay in that going to http://mydomain brings up the WP index and I'm also

Re: Make webroot index the home page

2011-03-08 Thread Sam Sherlock
is the cake app to be installed in a subdir called cake you could put wp in a subdir of the cake app (or otherway round) but may prove to be more trouble than its worth in the past I ahcieved this with the following I found strange things to occur [code] RewriteEngine on RewriteRule^b

Re: Database and Model Design Question

2011-03-08 Thread dreamingmind
Grady, This recent post talks about setting up multiple relationships http://groups.google.com/group/cake-php/browse_thread/thread/b70eb9498e2bbd58?hl=en Don On Mar 8, 12:27 pm, grady wrote: > I posted a question similar to the following on the unofficial CakePHP > forums over a week ago and ha

Re: Make webroot index the home page

2011-03-08 Thread lauraw
Ryan, thank you for replying! I'm pulling my hair out :-) What I'd really like to do is have my wordpress area still within the cake environment and so under the cake webroot area.I'd kind of like the two to live together. The reason for trying this is to make use of all of the WP and other plug-i

Re: $this->Auth->userScope

2011-03-08 Thread Stephen
Why are you reading the session? That assumes the user is already logged in. function login() { if(!empty($this->data)) { if($this->Auth->login($this->data){ .. code here } } } Might want to turn autoRedirect off? If you are using a beforeFilter in your users controller, be sure to

$this->Auth->userScope

2011-03-08 Thread DerekGardiner
In an effort to make sure that only active users can log into the application I've added the following in my app_controller function beforeFilter() { $this->Auth->userScope = array('User.active' => 1); } and the following in my login function under my users_controller function login

Database and Model Design Question

2011-03-08 Thread grady
I posted a question similar to the following on the unofficial CakePHP forums over a week ago and haven't received any sort of response, and then I noticed the google group so here is my second attempt... I'm working on a site mainly to get my feet wet with CakePHP and I realized that I am unsure

URL Rewriting issue in Pagination

2011-03-08 Thread Ravi
Hi, I'm using URL Rewriting for showing my list of data in a particular category (http://localhost/getfreelistsver2/lists/free_article_sites) (All urls are just for example as the project is in my local server). I'm using URL Rewriting for this as below: Router::connect("/lists/free_article_sites

Re: Make webroot index the home page

2011-03-08 Thread Ryan Schmidt
On Mar 8, 2011, at 13:49, lauraw wrote: > How do I make my webroot index the home page in a cake environment? > > My DocumentRoot in Apache is set to 'myhost/cake/app/webroot'. I understood you up to this point. This should result in a normal CakePHP installation where your CakePHP project's h

Make webroot index the home page

2011-03-08 Thread lauraw
How do I make my webroot index the home page in a cake environment? My DocumentRoot in Apache is set to 'myhost/cake/app/webroot'. I have a WordPress install under webroot that I want to be the home page. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Che

Re: table associations

2011-03-08 Thread John Andersen
Check your filenames of your models! They should be as described in the CakePHP book at: http://book.cakephp.org/view/902/File-and-Classname-Conventions Currently your application is not using your defined models, but the AppModel instead. When you have fixed your naming issue, it should work :)

Re: Media plugin - usage questions

2011-03-08 Thread Foroct
I'm trying to do something similar (as described in this thread http://groups.google.com/group/cake-php/browse_thread/thread/9fdfef27f01e5ef7). I'm able to POST my image and save it to a folder but I don't know how to invoke the media plugin to make multiple sizes of that file. How were you able t

Re: Naming conventions and database naming question

2011-03-08 Thread Jon Phenow
This was very helpful, thanks a lot. I'm very new to Cake and this explained a good chunk I was confused about. On Mon, Mar 7, 2011 at 5:41 PM, cricket wrote: > On Mon, Mar 7, 2011 at 6:16 PM, jphenow wrote: > > Okay so two questions very related: > > > > 1) Does following the naming conventio

Re: Need help with paginate conditions

2011-03-08 Thread Tilen Majerle
$this->paginate['Member']['conditions'], here are conditions list to search... -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/3/8 heohni > Hi, > > $options['Member.agent_id'] = $this->Session->read('AgentId'); > $options['or'] = array( >'mem_nummer LIKE' => '%'.$q.'%'

Need help with paginate conditions

2011-03-08 Thread heohni
Hi, $options['Member.agent_id'] = $this->Session->read('AgentId'); $options['or'] = array( 'mem_nummer LIKE' => '%'.$q.'%', 'mitg_vorname LIKE' => '%'.$q.'%', 'mitg_nachname LIKE' => '%'.$q.'%', 'mitg_strasse LIKE' =>

Re: CakePHP + Oracle : query other schema

2011-03-08 Thread Guillaume Luszack
Actually it seems to be working with a view. No need for a synonym. As long as the user you're connected with has granted rights on the tables you're guerying of course:) Sorry for not trying with a view earlier ! G. Selon Zaky Katalan-Ezra: Did you try to create a view for the synoname?