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
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
> 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
-
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,
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
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
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
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('
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
.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
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
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
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
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
>
> 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:
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
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
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,
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
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
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.
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
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 ".
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'
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
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
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
--
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
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
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
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:
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
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?
--~--~-~--~-
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
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
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
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);
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
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
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
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.
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
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
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
44 matches
Mail list logo