Re: Index Function

2007-09-03 Thread citrus
Try the tutorial in CakePHP manual and you'll know how to get started with Cake quickly. On Sep 4, 8:44 am, SpyderDriver <[EMAIL PROTECTED]> wrote: > Hello, I am new to Cake and I keep running into little catches that I > cant figure out. How do I create a default action for a controller? I > th

Re: renderElement not working in Ajax Updated div

2007-09-03 Thread francky06l
Well your ajax submit updates the "contact_form", but your element is outside the div / divEnd. Try moving the divEnd after the renderElement. On Sep 4, 6:18 am, Richard <[EMAIL PROTECTED]> wrote: > Hi, > > No I am not using requestAction. Here is the code: > Any help would be gratefully apprecia

Re: problems with midphase hosting

2007-09-03 Thread Felix Geisendörfer
> VPS ??? Virtual private server. > and what are the other configurations i mean like PHP (php.ini) and > what are the Apache modules have installed. which version of cake you > are using ? PHP 5.2.3 + mod_rewrite are the most important ones. Version of cake: any. -- Felix -

Re: Index Function

2007-09-03 Thread Baz
There are no "directories". If you have a users controller, defining an index action WILL work. If it's not you're doing something wrong. -- Baz L Web Development 2.0: Web Design, CakePHP, Javascript http://www.WebDevelopment2.com/ On 9/3/07, SpyderDriver <[EMAIL PROTECTED]> wrote: > > > Hello,

Index Function

2007-09-03 Thread SpyderDriver
Hello, I am new to Cake and I keep running into little catches that I cant figure out. How do I create a default action for a controller? I thought it was to create an index function in that controller file but that didn't seem to work. I was walking through a tutorial that created a users contro

Re: renderElement not working in Ajax Updated div

2007-09-03 Thread Richard
Hi, No I am not using requestAction. Here is the code: Any help would be gratefully appreciated. // FORM div('contact_form')); ?> Name: input('Enquire/name'));?> Email: input('Enquire/email'));?> Phone (including country code): input('En

Re: problems with midphase hosting

2007-09-03 Thread Vivek Narula
VPS ??? and what are the other configurations i mean like PHP (php.ini) and what are the Apache modules have installed. which version of cake you are using ? Thanks On 9/4/07, Felix Geisendörfer <[EMAIL PROTECTED]> wrote: > > I was using cpanel with Apache 1.3 > > I happen to run the same setu

observeField problem

2007-09-03 Thread [EMAIL PROTECTED]
Hello guys, I'm working with an ajax observeField in a select tag, this is my view code: selectTag('Laboratory/Section', $sections) ?> observeField('LaboratorySection', array('url'=>'loadResults/' . $data['Appointment']['id'], 'frecuency' => 1, 'update' => 'results', 'loading' => "Element.hide('

Re: Question about saving info in two tables from 1 model

2007-09-03 Thread Geoff Ford
I would use a factory object to load a seperate model based on the user type. See this thread for a simliar problem. http://groups.google.com/group/cake-php/browse_thread/thread/a2a140878b3094f1/05142a4f5055947c?lnk=gst&q=sonic+i+love+a+good&rnum=2#05142a4f5055947c Geoff -- http://lemoncake.word

Re: Bake generated admin section, basic password protect?

2007-09-03 Thread Geoff Ford
.htacess is the quickest http://www.google.com.au/search?q=.htaccess+password+protect&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a Geoff -- http://lemoncake.wordpress.com On Sep 4, 8:08 am, GunitMail <[EMAIL PROTECTED]> wrote: > So I generated my admin section with bak

Bake generated admin section, basic password protect?

2007-09-03 Thread GunitMail
So I generated my admin section with bake, but its not password protected. Is there a dead basic/quick way to do a 1 user password protect on these pages? Thanks very much in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: unbind and Pagination

2007-09-03 Thread Howard Glynn
You need to be quite generous with model name prefixes in the original model specification to resolve the ambiguity, I read this somewhere on the list as I had the same problem. So in your list of default fields to return in both the original models file and the bind specification, try adding "Us

unbind and Pagination

2007-09-03 Thread cronet
Hi, i have a question concerning the pagination and unbinding associations. My Model has a bunch of hasMany and habtm Associations which i want to unbind, because for this request I need only the hasOne UserProfile Model which is already defined in the User Model. I do this: $this->User

Question about saving info in two tables from 1 model

2007-09-03 Thread nerohc
Hi everyone. I'm new in this group and with cake too. I have this problem: I have a Users table, which contains login, pass, etc. and 2 tables with user's details. I use one or other table acording to the user's group. For example if i register as a simple user, my details would be saved in 'simpl

Re: problems with midphase hosting

2007-09-03 Thread Felix Geisendörfer
> > I was using cpanel with Apache 1.3 I happen to run the same setup on my VPS right now and do not have any of those problems. So I'm not sure what is going on there. -- Felix -- My Blog: http://www.thinkingphp.org My Business: http://www.fg-webdesign.de Alvaro wrote:

Re: problems with midphase hosting

2007-09-03 Thread Alvaro
thanks very much! That information was very usefull! On Monday 03 September 2007 15:21, CakeMan wrote: > Please go thro this thread > > http://groups.google.com/group/cake-php/browse_thread/thread/89a4c9231e2f08 >b6/# > > I had this kind of problem than i asked to our server admin and below > is

Re: Extra field in custom Query gives extra array

2007-09-03 Thread francky06l
sorry, maybe not clear : SELECT id,title,url, 'review' = $filter AS ... On Sep 3, 9:26 pm, francky06l <[EMAIL PROTECTED]> wrote: > On Sep 3, 6:38 pm, Charlie van de Kerkhof <[EMAIL PROTECTED]> > wrote: > SELECT id,title,url, 'review' = $review AS ... > > > Thnx Franck06l, but then it the SQL thi

Re: Extra field in custom Query gives extra array

2007-09-03 Thread francky06l
On Sep 3, 6:38 pm, Charlie van de Kerkhof <[EMAIL PROTECTED]> wrote: SELECT id,title,url, 'review' = $review AS ... > Thnx Franck06l, but then it the SQL thinks it is a field in the > database which it is not. > I want to have the '$filter' as a field VALUE in every item in the > result array,

Re: problems with midphase hosting

2007-09-03 Thread CakeMan
Please go thro this thread http://groups.google.com/group/cake-php/browse_thread/thread/89a4c9231e2f08b6/# I had this kind of problem than i asked to our server admin and below is the reply from our server admin. I was using cpanel with Apache 1.3 Essentially the .htaccess file needs to look li

Re: does $cakeDebug work?

2007-09-03 Thread Baz
I don't know why I didn't miss it for a while, but having to $this->log($this) every call to a controller when I was a bit unsure of what was happening got old rather fast. -- Baz L Web Development 2.0: Web Design, CakePHP, Javascript http://www.WebDevelopment2.com/ On 9/3/07, rtconner <[EMAIL PRO

Reading HasAndBelongsToMany Relation

2007-09-03 Thread ANDSENS
Hello everybody. I have an issue with reading data via a HABTM relation in CakePHP. I searched through a lot of stuff on the net and the manual did not give a straight answer either, this is why I am writing here now. I have two models (user, course) that are connected in two ways to each other.

Re: problems with midphase hosting

2007-09-03 Thread Alvaro
is apache1.3 On Monday 03 September 2007 12:59, Vivek Narula wrote: > I had such types of problems laterly. > which apache version are you using ? > > On 9/3/07, Alvaro <[EMAIL PROTECTED]> wrote: > > can you show me an example about your modifications to .htaccess file? > > > > On Sunday 02 Sept

Re: Extra field in custom Query gives extra array

2007-09-03 Thread Charlie van de Kerkhof
Thnx Franck06l, but then it the SQL thinks it is a field in the database which it is not. I want to have the '$filter' as a field VALUE in every item in the result array, so I can use it in my template. I also tried: $sQuery = "SELECT id,title,url,CONCAT('$filter') AS filter,modified ".

Re: Extra field in custom Query gives extra array

2007-09-03 Thread francky06l
Maybe removing the quote around '$filter' (in the SELECT fields) will avoid this. On Sep 3, 6:17 pm, Charlie van de Kerkhof <[EMAIL PROTECTED]> wrote: > Hi, > > In my model I do this: > $filter = 'reviews'; > $field = 'artist_id'; > $ids = '23,46'; > $sQuery = "SELECT id,title,url,'$filter'

Re: Augmenting controller actions with components

2007-09-03 Thread francky06l
I have seen a discussion about this a while ago, it looks like having a baseController from which other's could be derived... Also remind me the "mini controller" of AD7Six On Sep 2, 6:13 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Sure, it does sound a little convoluted... I'll try agai

Extra field in custom Query gives extra array

2007-09-03 Thread Charlie van de Kerkhof
Hi, In my model I do this: $filter = 'reviews'; $field = 'artist_id'; $ids = '23,46'; $sQuery = "SELECT id,title,url,'$filter',modified ". "FROM $filter AS $filter ". "WHERE status=1 AND $field I

Re: renderElement not working in Ajax Updated div

2007-09-03 Thread francky06l
Does your element calls a requestAction ? On Sep 3, 6:22 am, Richard <[EMAIL PROTECTED]> wrote: > Hi, > > I have an Ajax form that posts some data and the updated div section > (confirmation page) calls renderElement -- but for some reason does > not work. Any ideas? > > Many thanks, Richard --

Re: wrong coding in layout variables from beforeRender function

2007-09-03 Thread francky06l
WHen you say you "retrieve the titles", from DB ? Be sure to save the layout using UTF-8 (no BOM) if ever you store your titles in a file On Sep 3, 2:22 pm, Anna P <[EMAIL PROTECTED]> wrote: > Hi! Anyone has an idea how to solve my problem?;-) > I insert data to database using FCK editor, the da

Re: problems with midphase hosting

2007-09-03 Thread Vivek Narula
I had such types of problems laterly. which apache version are you using ? On 9/3/07, Alvaro <[EMAIL PROTECTED]> wrote: > > > can you show me an example about your modifications to .htaccess file? > > On Sunday 02 September 2007 22:01, Sam Sherlock wrote: > > have you tried cake with internal re

Re: Fatal errors using bake

2007-09-03 Thread red
In the first attempt probably you haven't baked the Model first. If you wan't to live 'stressless' use Vertrigo (http:// vertrigo.sourceforge.net/?lang=eng) instead of XAMPP. Small, fresh and everything works perfect. On 3 Wrz, 16:37, mejpark <[EMAIL PROTECTED]> wrote: > I am developing my appli

Fatal errors using bake

2007-09-03 Thread mejpark
I am developing my application on Windows PC running Vista Home Basic and the XAMPP framework (xampp-win32-1.6.3a.zip). I configured bake according to this document "http://bakery.cakephp.org/articles/view/ setting-up-eclipse-to-work-with-cake". I envoked bake from the PDT console, which produced:

Re: problems with midphase hosting

2007-09-03 Thread Alvaro
can you show me an example about your modifications to .htaccess file? On Sunday 02 September 2007 22:01, Sam Sherlock wrote: > have you tried cake with internal rewrite? > > I had a few troubles with 1and1 and cake's default htaccess see > config/core.php I was able to make a slight modification

An idea to improve cake's code design

2007-09-03 Thread xephex
When reading throug CakePHP's code, an idea came to me and I wanted to share it with you. It became a bit more text than I thougt so I put it into a PDF. http://cake-php.googlegroups.com/web/The+Factory+function.pdf What do you think? Would it make sense to implement that? --~--~-~--~-

Re: Using the Paginator helper with 2 models in a view.

2007-09-03 Thread Adam Royle
I think this is a shortfall in 1.2 paginator. Apparently it was done as a security measure. I think there are plans to fix it, however my hack was to do a str_replace to the output of paginator. You could also override the paginator helper and do it that way (might be cleaner) but if you're into h

Re: including one or more pages in another page

2007-09-03 Thread Charlie van de Kerkhof
Hi Ravi, in cakePHP you can make view elements which contains pieces of PHP and HTML code. In that mail template of yours you can 'include' those elements. example: in email.ctp (or email.thtml if you still use v1.1) renderElement('loginbox', array("loggedin" => true, 'username'=>'ravi'));?> an

wrong coding in layout variables from beforeRender function

2007-09-03 Thread Anna P
Hi! Anyone has an idea how to solve my problem?;-) I insert data to database using FCK editor, the data in DB looks OK. My DB has all the fields in UTF8, in database.php i set encoding => 'UTF8', in app_model.php I have 'set names utf8'. In the views where I display subpages and it's titles everyt

Ajax Country -> State comboBox problem !

2007-09-03 Thread Ghanshyam Rathod
Hi friends, As i have one form having Country and State combo box. Depend on country selected it will Fill up States automatically. Here is my Code : // file : edit.thtml //calling ajax functions function getstates(st) { country = $('country_name').value; alert(country);

Re: Cake/Server Issue - Help needed asap!

2007-09-03 Thread KingJackaL
In addition to what majna said, you can try the following: Is PHP working? - upload a php page that calls phpinfo() Is mod_rewrite installed/enabled/allowed in your directory? - try something like (in your .htaccess, up the top): RewriteEngine on RewriteRule ^/(.*) http://www.cakephp.org/$1

including one or more pages in another page

2007-09-03 Thread Ravi
Hai, I want to include one page into another. How can we do that with cakephp similar to php where we can use include/require. In php i am passing the variables required from main page. For example: Assume i have to display mails. For that I have three pages: PAGE 1: ( Mai

Pagination in 1.2 URL problem

2007-09-03 Thread Charlie van de Kerkhof
Hi all, I'm fiddling with the paginate Helper in the latest svn version of 1.2. It is not working when I have setup special routes. The Html->link works with url array's and compares them with the routes and makes the appropriate link. But with the paginator I can't get that working. In my view

Re: Cake Bake and Validation Problem

2007-09-03 Thread red
I have the same problem (look at "Release: 1.1.17.5612" thread). It looks that is problem of this build, the previous one was good. On 3 Wrz, 08:50, "Gould, Adrian" <[EMAIL PROTECTED]> wrote: > Anyone seen this problem before... > > When using bake.php from the last build of CakePHP [Stable: 1.1.

Re: please comment on my design decision

2007-09-03 Thread RichardAtHome
You're right, your design doesn't feel eligant ;-) It breaks the rules of database normalisation. Not that that is necessarily a bad thing, sometimes you have to break normal form for the sake of performance. Basically, what you are describing is: Profile -> hasMany -> Questions If the same que

Re: does $cakeDebug work?

2007-09-03 Thread rtconner
no cakeDebug does not really work. I forget what but if I remember right, the devs have some sort of plans to change it around or something. So I don't think they've bothered to fix it because they're just going to change it later. On Sep 2, 5:35 pm, Baz <[EMAIL PROTECTED]> wrote: > I kinda wante

Cake Bake and Validation Problem

2007-09-03 Thread Gould, Adrian
Anyone seen this problem before... When using bake.php from the last build of CakePHP [Stable: 1.1.17.5612] I am getting a problem where the fields are not being displayed in the bake a model sequence when it comes to the validation, as shown at the end of this message. I am running CakePHP on