Could you please provide the whole modified SQL statement?
It looks like you are trying to left join the statuses table twice!
Enjoy,
John
On Apr 1, 6:18 am, Louie Miranda wrote:
> Hello,
>
> I think there is a problem on my parameter on the controller. Because once
> my other tables has mul
/htdocs/cake/.htaccess: RewriteEngine not allowed here
this is resulting in a 500 Internal Server error, I have checked for
the existence the proper content of all .htaccess files, and have
setup the 'AllowOverride All' and the Load Module for mod_rewrite are
all setup properly, and I even tried
Hello,
I think there is a problem on my parameter on the controller. Because once
my other tables has multiple entries, the data on the row is duplicated for
my main controller.
See my code and parameter and the SQL query cakephp produces.
http://bin.cakephp.org/saved/5
The default for cakep
Sorry for the noise. It was indeed this line:
$this->Auth->authorize = 'actions';
I thought that because there is no ACO for PagesController there
wouldn't be a problem. In any case, this isn't what I want to do,
after all.
Back to the drawing board ...
On Tue, Mar 31, 2009 at 10:14 PM, brian
The problem is simply that I can't log in. I've done this before but
I'm trying to build an ACL-controlled site and following along with
the manual's example app. WHen I try loggin in I get "You are not
authorized to access that location." I suspect the problem might be
with the redirect, and not
It happens when Saving a Model!
I've no beforeX-Filters, I also had debug($this-data) right before
saving,
but each Model (Accept the hasAndbelongToMany) have an id!
thx
Aurelius
On 31 Mrz., 02:32, mscdex wrote:
> On Mar 30, 6:11 pm, Marcelo Andrade wrote:
>
>
>
> > On Mon, Mar 30, 2009 at 6:
You can do this:
echo $form->input('Model.year', array('onclick'=>'someAction();',
'label'=>'','style'=>"width: 60px", 'minYear' => '1983', 'maxYear' =>
date('Y')));
kurious oranj wrote:
>
>
> Hi,
>
> I'm quite new to CakePHP and need to have a SELECT with options for
> each year from 19
echo $form->input('Model.field', array('onclick'=>'someAction()',
'label'=>'', 'minYear' => '1910', 'maxYear' => '2010'));
2009/3/31 mscdex
>
> On Mar 31, 12:18 pm, Kalt wrote:
> > echo $form->dateTime(
> > 'fieldname',
> > 'DMY',
> > 'NONE',
> > null,
> >
I guess the .de looks like an extension. Why it would strip it from
your route is another question.
You could avoid this altogether (depending on your situation) by
POSTing the email address to your action. If this link is
auto-generated and included in a newsletter email, I guess that'd be
out o
Google provides for creating and sending them a sitemap:
http://www.google.com/support/webmasters/bin/answer.py?answer=40318&hl=en
On Tue, Mar 31, 2009 at 12:13 PM, Kalt wrote:
>
> I'm not 100% sure of that but if your robots.txt have the following
> line :
> Sitemap:
> search engines will cra
For now I had to manipulate the sessions to make sure the first value
is used and not over written.
/**
* Validate recaptcha
* @param array $data
* @return boolean
*/
function recaptcha($data) {
App::import('Vendor', 'recaptcha', array('file' => 'recaptcha.php'));
App::import(
Well thats not the problem, I simply had more rules and in the example
I am only showing one.
--~--~-~--~~~---~--~~
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
Well, you have too many 'recaptcha'-s:
'recaptcha' => array(
'recaptcha' => array(
'rule' => array('recaptcha'),
'message' => 'captchaFailed'
)
)
Just try to name those differently and try again, for example:
'myrecaptcha' => array(
'recap
are you sure it is app_media.php then?
i only got it to work by leaving it the same name "media.php" in /app/
views/
mark
On 31 Mrz., 21:45, "Mark (Germany)"
wrote:
> nice :)
> thx
>
> On 31 Mrz., 15:17, Matt Curry wrote:
>
> > I had to do this with pdf/xls files returned by a webservice. I
Thats my last resort type of deal. Just wondering why its called twice?
--~--~-~--~~~---~--~~
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 fr
After reading your posts I could see that the css and toolbar were
loading. I tried installing a it on a fresh cakephp app, to ensure it
wasnt a CSS clash, and notices that cakephp had no styling...
Then I realised that this issue boiled down to mod_rewrite not being
on!
Thanks for the replies,
nice :)
thx
On 31 Mrz., 15:17, Matt Curry wrote:
> I had to do this with pdf/xls files returned by a webservice. I took
> the default media view (/cake/libs/views/media.php) and copied it to /
> app/views/app_media.php.
>
> Then I modified it so that it checked for a $content view var and
> wro
On Mar 31, 12:18 pm, Kalt wrote:
> echo $form->dateTime(
> 'fieldname',
> 'DMY',
> 'NONE',
> null,
> array(
> 'minYear' => 1983,
> 'maxYear' => date('Y')
> ),
> false
> )
You can also do:
echo $form->year('M
Thanks Amit but unfortunately that walkthrough helps for modifying the
HTML that the scaffolding functionality uses -- but it does not
address the layout. The layout remains "default".
I also tried setting [ $this->layout = "" ] in those view / .ctp
files and no change.
I also tried [ $thi
Another thing to consider (especially if it's a busy site) is to not
track the views in real time. Instead scan your webserver logs hourly/
daily and update the counts that way. This allows you to cache the
pages and still keep track of visits.
-Matt
http://www.pseudocoder.com
On Mar 30, 11:14
Have you considered using an existing solution with metrics and
reporting surrounding it? You can give read only access to clients as
well.
http://edwardawebb.com/programming/php-programming/cakephp/piwik-analyze-visits-cakephp-site
On Mar 30, 1:39 pm, JamesF wrote:
> i did see that article b
I highly recommend checking out the Containable behavior:
http://book.cakephp.org/view/474/Containable
It will simplify this code and let you easily add fields.
On Mar 31, 8:28 am, joshua wrote:
> For example:
> One task has many users.
>
> $condition = array()
Take a look at the Containable behavior. You should able to something
as simple as:
http://book.cakephp.org/view/474/Containable
$this->Model->contain('Company', 'Category');
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Brian - that'd be a good option if an image can belong to many movies
and many episodes.
Adam - is that the case? Or can an image only belong to either 1 movie
or 1 episode? From the description you put up it sounds like hasMany
is the right association, it's just making a good db design undernea
Use urlencode for the name before placing it in the url and then
urldecode it when processing the reply!
Enjoy,
John
On Mar 25, 3:33 am, kai wrote:
> I have a foreach loop that runs through an array and for each object
> there's a report link that lets users report something wrong with that
>
Hi again.
In my routes.php I also got: Router::parseExtensions('rss');
This entry is necessary for creating a RSS feed with the RssHelper.
When the Router::parseExtensions('rss'); comes before Router::connect
('/newsletter/unsubscribe/:email', array('controller'
=> 'newsletterReceivers',
Yes, Logout, but first I would like the original poster to make it
work as wished for, then any further checking can be implemented on a
need basis.
Enjoy,
John
On Mar 31, 8:05 pm, logout wrote:
> I woud set $this->Auth->loginRedirect to false and check in the login
> () action if the user is
DebugKit does not use any jQuery. If you are not getting the toolbar
to display, you should check the following.
1. Your HTML output, is the toolbar source there.
2. Your Html output, is the CSS/JS for the toolbar there?
3. If you set $this->view in action or beforeRender you will not see
the to
Ok, I will give it a try with understanding what you are trying to
accomplish!
Correct me if my understand is wrong, but:
1) You have a standard CakePHP installation with the CakePHP directory
and an application "app" directory, correct?
2) You wish to use the application to provide content mana
I woud set $this->Auth->loginRedirect to false and check in the login
() action if the user is logged or not. This way you can check a lot
more things (user role, etc.) and redirect the logged user wherever
you want. Oh, and one more thing, disable the browser cache for the
login form...
On Mar 3
I ran into the same problem. I've been told this is a PHP problem,
not really a Cake problem. The way we ended up handling it is by
creating a stored procedure and calling that procedure within our
model. Basically, what the procedure does is take the data and makes
sure that all -00-00 fie
echo $form->dateTime(
'fieldname',
'DMY',
'NONE',
null,
array(
'minYear' => 1983,
'maxYear' => date('Y')
),
false
)
On 31 mar, 18:00, kurious oranj wrote:
> Hi,
>
> I'm quite new to CakePHP and need to have a
I'm not 100% sure of that but if your robots.txt have the following
line :
Sitemap:
search engines will crawl your sitemap automatically.
On 31 mar, 17:54, koala kid wrote:
> Hi,
>
> I am working on a site for a client using cakePHP. I found a great
> article in the bakery that outputs the site
If clearing your cache does not help, your CSS may be interfering with
DebugKit's own CSS.
On Mar 31, 10:23 am, Sam Sherlock wrote:
> Try clearing the browsers cache - I think I to had this issue, just would
> show top right
>
> after clearing cache of ff it started. My projects all have jquer
Did you uncomment App.baseUrl in core.php?
--~--~-~--~~~---~--~~
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 email to
Hi,
I'm quite new to CakePHP and need to have a SELECT with options for
each year from 1983 to the current year. I can certainly write the
javascript to do the loop from 1983 to current year, but what's the
best way to call that javascript to populate the SELECT? I just need
the general mechanism
Can someone point me in the direction of a good place to start
building a Search Function?
I have a HABTM table with options related to the User that they can
select only (not allowed to add or edit), now I want to be able to
have Users search using the checkboxes?
In the table is Hip Hop, Count
Hi,
I am working on a site for a client using cakePHP. I found a great
article in the bakery that outputs the sitemap in the correct XML
format and is accessible via the browser. I want to automate the
submission of this using a cron job. Does anyone have an example
script that would call the xm
Hi.
I've got a problem with Route passing parameters to action.
routes.php:
Router::connect('/newsletter/unsubscribe/:email', array('controller'
=> 'newsletterReceivers', 'action' => 'unsubscribe'), array('pass' =>
array('email')));
NewsletterReceiversController:
function unsubscribe($email = nu
I think that using the html helper is unnecessary it is more complicated
than simply
echo '' . $username . '';
- S
2009/3/31 donnerbeil
>
> Hi,
>
> Does anyone know, if it is possible to generate a link like:
>
> skype:username?call
>
> with the html->link() method?
>
>
> I tried this:
> $h
Hi,
Does anyone know, if it is possible to generate a link like:
skype:username?call
with the html->link() method?
I tried this:
$html->link('username','skype:username?call);
output is:
http://www.mydomain.com/skype:username?call
Any ideas?
--~--~-~--~~~---~--~
On Mar 31, 8:11 am, "Sajid.bd" wrote:
> Hello I am learning cake.Can anyone help me how to turn on/off the
> query that shows at the end of each page?
In your app\config\core.php, set the 'debug' configuration setting to
0 or 1.
--~--~-~--~~~---~--~~
You received
If you set debug to 0 it will not be displayed. Look in
app/config/core.php
You can also remove the echo $cakeDebug; from your layout but I
wouldn't recommend that.
On Tue, Mar 31, 2009 at 8:11 AM, Sajid.bd wrote:
>
> Hello I am learning cake.Can anyone help me how to turn on/off the
> query th
Wir begrüßen Sie zurück, wenn wir von Ihnen noch einmal.
(I hope that's correct--been a long time since I spoke any German)
On Tue, Mar 31, 2009 at 10:40 AM, Liebermann, Anja Carolin
wrote:
>
> Hi Brian,
>
> I cannot imagine it either. I just hope to survive until enough things go
> wrong and
On Tue, Mar 31, 2009 at 8:34 AM, Steven wrote:
>
> I think the documentation in the most part is OK, but in some areas it
> lacks complete explanation. For me an example of this is the ACL
> documentation, it actually starts off really well and explains in
> enough detail, what ACL is all about A
Thank you very much, that looks good!
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im Auftrag
von Dinh Ba Thanh
Gesendet: Dienstag, 31. März 2009 16:26
An: cake-php@googlegroups.com
Betreff: Re: Is there an offline documentation for Ca
Hi Brian,
I cannot imagine it either. I just hope to survive until enough things go wrong
and it is switched on again.
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im Auftrag
von brian
Gesendet: Dienstag, 31. März 2009 16:35
An: cake
I'd go HABTM for this, I think.
movies
videos
images
images_movies
images_videos
On Tue, Mar 31, 2009 at 2:09 AM, Adam M wrote:
>
> Hi All,
>
> How can I PROPERLY set up my database so that several models have
> multiple images? Each image belongs to a particular model, so they
> are definitel
I cannot imagine trying to develop web apps without an internet
connection. There is just so much more than the Cake manual that's
required. I can deal with a brief outage, but there's no way I could
get much done without a connection *ever*.
btw, how is the IT dept. supposed to install updates,
You have a couple options here. What's "proper" is really what works
best in your situation, so do some testing to see how the queries
perform. I had a similar situation so I'll explain what I did.
Video
- id
Episode
- video_id
- name
- date
Movie
- video_id
- name
- date
- producer
Image
- id
I believe the syntax should be:
$result = $this->ReviewerActivityStatus->find(
'all',
array(
'conditions'=>array(
'reviewer_id => $keys,
'status'=>'1'
)
)
);
where $keys is an array.
On Tue,
You may want to save this link to your harddisk
http://book.cakephp.org/complete/3
Best Regards,
Dinh Ba Thanh, Jason
bath...@gmail.com
On Mar 31, 2009, at 10:24 PM, Liebermann, Anja Carolin wrote:
>
> Hello everybody,
>
> my company will forbid access to the internet within the next days,
Hello everybody,
my company will forbid access to the internet within the next days, even
for the IT department. To be able to develop with CakePHP in the future
I would like to know if there is an offline documentation for CakePHP
1.2 ( manual and/or API). Any hints to counter this madness are d
Try clearing the browsers cache - I think I to had this issue, just would
show top right
after clearing cache of ff it started. My projects all have jquery in
them, but I believe that debugkit has contains everything it requires
(loading jquery via google api - not conclusive on that I expect I'
I installed debug_kit version 1.0 into app\plugins\debug_kit, my debug
level is set to 2, and I have put:
var $components = array('DebugKit.Toolbar');
In the relevant controller. However DebugKit is displaying all its
output at the bottom of the page between my content, and the SQL
output.
I do
The set-up I had was to have the shared cake libraries in
/usr/local/cake_1.2.2.8120
I had my app folder in
/var/www/vhosts/mydomain.com/app
and my webroot in
/var/www/vhosts/mydomain.com/httpdocs
The user was mydomain:psacln
I found the `problem` was with the chmod permission in /usr/local
Hi All,
How can I PROPERLY set up my database so that several models have
multiple images? Each image belongs to a particular model, so they
are definitely hasMany relationships. Example:
Episode
-id
-name
-date
Movie
-id
-name
-date
-producer
Image
-id
-name
-caption
-path
Episode hasMany
I've installed cake_1.2.2.8120 on my server and am happily developing
with it. It's really is very neat.
However, can an install be done using the advanced pattern i.e. the
cake lib folder resides outside the root in a common area for any web
user on a shared server to use?
I tried but could not
Thanks in advance for any help provided. Apologies for no code blocks.
I want to write my find such that it can construct a query like:
SELECT `ReviewerActivityStatus`.`id`,
`ReviewerActivityStatus`.`reviewer_id`,
`ReviewerActivityStatus`.`date`, `ReviewerActivityStatus`.`status`,
`ReviewerActiv
I think the documentation in the most part is OK, but in some areas it
lacks complete explanation. For me an example of this is the ACL
documentation, it actually starts off really well and explains in
enough detail, what ACL is all about ACOS/AROS, how to get it set up,
implement it into your mod
Hello I am learning cake.Can anyone help me how to turn on/off the
query that shows at the end of each page?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-
Use the 'fields' options for your field and add 'User.name' in it
maybe ?
hth
On Mar 31, 3:28 pm, joshua wrote:
> For example:
> One task has many users.
>
> $condition = array();
> $condition['joins'] = array(
> array(
> 'tab
For example:
One task has many users.
$condition = array();
$condition['joins'] = array(
array(
'table' => 'users',
'alias' => 'User',
'type' => 'inner',
'foreignKey' => 'user_id',
I had to do this with pdf/xls files returned by a webservice. I took
the default media view (/cake/libs/views/media.php) and copied it to /
app/views/app_media.php.
Then I modified it so that it checked for a $content view var and
wrote that to a tmpfile.
Here's the diff:
http://bin.cakephp.org/
By the way, you probably have to add the following in the
app_controller->beforeFilter in order to ensure that the user has
access to the logout action :)
$this->Auth->allow('logout');
Enjoy,
John
On Mar 31, 3:13 pm, iFeghali wrote:
> Hello All,
>
> Many thanks for the help so far. Le
In your case I would change your route "/" as I specified earlier and
in the app_controller->beforeFilter function, add:
$this->Auth->loginRedirect = array('controller' => 'foo',
'action' => 'index');
Thus when a user provides a valid login, the user is automatically
directed to "/foo/inde
omg Martin, I am relieved! Sometimes, my posts don't make sense or ask
too much or nobody finds interesting (or like you said are asked at
the wrong time) or whatever, but I know from your post that this time
it went alright!!!
By the way, there is a link to reply to author... should I use it AND
Hello All,
Many thanks for the help so far. Let's try to be a bit more clear...
that's my scenario:
1) only authenticated users have access to the site (but the login
form, of course)
for a visitor (non auth user):
2) example.com should redirect to example.com/users/login with no
error message
I have so far lest MediaView alone and gone a different way for
"fake", dynamic, files.
I have made use of parseExtensions to output files. The examples
mostly show rss feeds but you can just as easily use it to generate an
Excel sheet full of statistics about something on your site or any
other
That's how I handle my deletes.
If you don't want to read the existing relationships before your save
(meaning you don't want Cake to delete existing relationships before
inserting new ones), in the models where you define the HABTM
associations, set the 'unique' array key to 'false' and you'll n
The thing with Google Groups is that it is a mailing list that many
people access like a forum... I think people don't page back to
"yesterday" and read every message since their last login as many do
in forums. I know I don't.
This is a debated god / bad aspect of the group.
The time and day y
For public knowlegde in case anyone does a search for similar
problems:
The problem jmdesign was experiencing was dure to a missing
RewriteBase since the website was hosted under a user account.
( www.example.com/~username/ )
Setting the RewriteBase to /~username/ in both the cake root folder (=
For deleting, you can use the model function deleteAll to remove
directly from the join table, as long as you know both IDs. Example
(if you haven't specified a different join model name):
$this->Question->GamesQuestion->deleteAll(array('question_id' =>
$q_id, 'game_id' => $g_id), false);
Where
Hi,
I'm fairly new to CakePHP so if this is a stupid mistake forgive me.
A user will post a complaint against a company, so the complaint table
has company_id. I use a left join to get the company data. Then the
company has a field category_id which is simply the industry of the
company (categor
Okay, I got it!! I don't know if there is some Cake's better solution
but this works fine for me
I have made my own function that goes trough the whole threaded array
and extracts childs for top level section specified by ID.
/**
* Extracts child node(s) for specific top level section id
I misunderstood you!
My solution is to use a route, defined as:
Router::connect('/', array('controller' => 'users', 'action' =>
'logout'));
in my routes.php, thus any access at the root gives me the login form
using the users controllers logout function, which contains only:
$this->Se
I can get the system to work with a VERY ugly fix:
In layout if i replace these:
echo $html->css('cake.generic'); => echo preg_replace( "/ssl/",
"thesite.com", $html->css('cake.generic') );
echo $content_for_layout; => echo preg_replace( "/ssl/",
"thesite.com", $content_for_layout );
etc.
But
Thanks for your help!
I still can't get it to work however. I tried any possible settings in
the .htaccess.
The problem is that cake defines the webroot directory in views as "/
ssl/application_name/" when it shoud be because of the SSL "/
thesite.com/application_name/".
Because that directory
Hi!
Once, I created a topic here, asking for help, then I got one reply.
Unfortunately, it was not enough help to solve the problem. I kept
posting my progress, waiting for a reply and I must have posted three
times, but I waited days to get one reply again. Fortunately, It was
enough help to sol
Hi Martin,
Thanks for your offer, email on it's way to you.
James
--~--~-~--~~~---~--~~
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 t
Since you only mentioned a problem on the "index page" I did not go
into anything more complicated.
You can either remove it from the session before displaying the login
screen. Then it will pop up anywhere else.
Alternatively you can make an if-clause:
if ( $this->Auth->user() ) {
// user
$this->Auth->authError = null?
But in my opinion its a real bad idea to redirect an already logged in
(!) user to a login again. That will look to the user like the app is
acting wrong and is confusing. If hes logged in but not allowed to
access a certain area he should get a notice that can't be
Since "php_value" was causing the 500, perhaps you should try
"restoring" the .htaccess files to the ones from the "old" server (but
without the php_value naturally).
The 1.1 files have to be downloaded from the svn repository afaik.
https://trac.cakephp.org/browser/branches/1.1.x.x
You can "open
https://svn.cakephp.org/repo/tags
On Mar 31, 8:55 am, rocket wrote:
> I can't find the link to download Cake 1.2 RC2. I'm trying to run a
> site that was built on RC2 that doesn't work with the current release.
> Can anyone direct me?
>
> thanks
--~--~-~--~~~---~--~--
Okay I've found a version of 1.1.12 and copied across the htaccess
files from that but it's still reading a 404 error.
Thanks,
James
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this g
Hi Jon,
Okay I'll try downloading the 1.1 htaccess files, stupid question but
where do I get them from? I can only see the 1.2 download links on the
main Cake site?
The only log files I've got access to are the standard erorr logs
which aren't picking up anything now.
Thanks,
James
--~--~
Well, you can do some additional checks and remove the error message
from the session when you don't want it displayed. This should happen
in the afterFilter() callback of the appropriate controller I think.
On Mar 30, 8:26 pm, iFeghali wrote:
> Hello,
>
> I have followed [1] to get a simple log
87 matches
Mail list logo