check these options :
1 - filename letters must be lowercase : items_controller.php (plz
check this correctly)
2 - mod_rewrite must be active . whats your server and OS ?
3 - where you put "items_controller.php " ? (plz paste full directory
path )
--~--~-~--~~~--
I thought the $name was only required for controllers.
--~--~-~--~~~---~--~~
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, se
Just an update: after quite a bit of debugging, found the cause. I
had defined 'app/app_model.php' as follows:
... the $name variable had caused this error; removing that line made
all of my HABTM associations work again.
On Jun 5, 5:30 pm, "bcm...@gmail.com" wrote:
> Hi
>
> I am trying to
I have a contain setup an working.
User views a post and contain related tables and all that good stuff. But I
want to add to the page "Other Posts by this user" So if someone is view a
post belonging to "Fred" it shows a list of MAX 10 other Posts by Fred.
But thinking of the contain where now
Hi chaps,
I have a relationship - User HABTM Organisation - and I have an extra field
'account_number' in my join table.
On my user registration form, I need to it display a corresponding checkbox
and text input for each organisation that exists in the database. If the
user ticks the checkbox fo
Hi,
I have the following SQL schema :
create table persons (
idinteger not null auto_increment,
lastname varchar(175) not null,
firstname varchar(125) not null,
primary key(id)
);
create table responsabilities (
id
Hi
I am trying to define and use a HABTM relationship between "listings"
and "tags". I have the relationships defined using code from the cake
docs, and I have the 'tags' controller set up with scaffolding.
When I view a tag (tags/view/1) in the scaffolding (which has several
listings associate
It means your cached file is no longer there to delete.
On Jun 5, 6:00 am, foldiman wrote:
> I get this error intermittently and do not understand why.
>
> Warning (2): unlink(/app/tmp/cache/models/
> cake_model_default_restaurants_states)
> [function.unlink]: No such file or directory [CORE/cak
if (empty($session->read('Auth.User'))) {
}
On Jun 5, 9:03 am, cakephp_rocks wrote:
> how can you use this if ($loggedIn == 0){
>
> to set message like lets say
>
> i have comment box if users not logged in show them this message
>
> (login to comment )
--~--~-~--~~~
Ummm it says on the page http://www.meiocodigo.com/projects/meioupload/
that it can upload any kind of file. I'm still checking those things
that brian told me to check out, been super busy lately with other
stuff to be able to get back into this.
On May 31, 2:44 pm, gerhardsletten wrote:
> Meio
As the CSS has the paths set when they are each in the same directory,
you will have to modify the css and tell it the new location of all
the images. Which stuff should then show properly. You are also
including jQuery and not just jQuery UI correct?
On Jun 5, 12:04 pm, Beedge wrote:
> Hi all,
One situation I had, there was a form with two values, where one could
be empty. I was using the PRG (http://en.wikipedia.org/wiki/Post/
Redirect/Get) pattern. How do you determine what info was passed
without the named args? Positional args, didn't seem the way to go.
http://example.com/searc
Hi all,
I am trying to use the jquery-ui framework in a project but Im a bit
confused on where I should put everything
When I download it there are .js files and image files and css
files.,
I tried putting each of these into the various img / css / js folders
in webroot in the app folder and th
Hi,
So I'm having a little difficulty with my htaccess rules.
Basically at the root of my server is my cake folder, my app folder
and my htaccess. I want to add another folder in there for a non cake
managed part of the site, say called 'ideas', but I cant get the
htaccess to stop trying to force
Hi Fred,
I have the same problem.
Let me know if you find a solution.
Marco
On 4 Giu, 05:00, Fred wrote:
> I am having trouble with sessions and a proxy server. My site uses
> Auth and ACL and it works fine in all my testing. However, now someone
> with Microsoft Proxy server is using it and the
My problem is that Firefox is re-requesting all the javascript and css files
from my cakephp application whenever I do a browser refresh. Why is my
browser not caching these files? I also found that the same javascript file
is requested multiple times in a single refresh. Can anyone please help m
We love cakePHP !
But...I hope something like this:
--> $javascript->validate()
--> $ajax->form(.., array( validate => 'myvalidateFunc' ) )
--> $javascript->datepicker()
--> $javascript->tooltip()
--> self detect Relationship
--> php5 >= only
--~--~-~--~~~---~--~~
I'm using the containable behavior to grab some data. I have a News
Category model the hasAndBelongsToMany News. This way I can associate
a news article with many different news categories. So I'm wanting to
grab all of the news categories with a limited number of news articles
for each. So th
Why would one choose passing arguments like object_id:whatever over /
view/whaver or vice versa?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegro
I don't know if it really matters if you change you schema to Cakes
conventions. The Models are pretty configurable if you know how to do
it.
As far the ACL there have been many posts on how to set them up. I've
explained how I set must stuff up once before. Check it out and see
if helps you.
how can you use this if ($loggedIn == 0){
to set message like lets say
i have comment box if users not logged in show them this message
(login to comment )
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP"
Sorry I wan't explicit in my description. My tables are named as
such. I just hastily typed in my description of the problem without
regard to those details.
On Jun 5, 5:31 am, OptimusS wrote:
> Hi i am new in cakephp but i think your problem is with cake's naming
> conventions. Your tables sh
Is it possible to use TreeBehavior where parent_id points to an id in
another model, which also uses TreeBehavior?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to
Holy crap! You guys are geniuses! That was it. You know, I never
use tinyint, but I totally flaked on this one. Thanks!
On Jun 5, 3:29 am, BlueC wrote:
> John is onto something here If the definition of the column is
> "tinyint(1)" then cake presumes that this is a "toggle" field that ca
Experimenting a bit more, it seems that another straightforward way to
do this is use the php function "file_get_contents" to get a string
with the view.
The advantage is that any view can be accessed even in a different
cake app (as mine is).
On Jun 5, 10:13 am, qwanta wrote:
> Thanks brian. I
Hi!
I want to have a running numer for all entries for a specific blog, so
would this code be the cake way or what would be better?
Here are my Tables:
MySQL Table blogs:
id| next_entry_id | ...
Autoincr. | int-default 1 |
1 | 2 |
Hello.
i have a model that acts as "AutoCode" and "AutoDate"
both behaviors are adding fields to $model->data but only one is
working. here's my code (see comments for further explanations)
class MyModel extends AppModel {
var $actsAs = array("AutoCode", "AutoDate");
function
uhm... i'll evaluate both ways.
thanks for the responses
On 5 Giu, 15:40, "rich...@home" wrote:
> I think the way CakePHP handles the delete links is very bad practice
> tbh. The delete action should be through a POST not a get. Also,
> protecting it with Javascript doesn't help if your site is
Thanks brian. I didn't know render returned a string - I had looked up
the function in the book (where the return val isn't documented) but
not in the source code.
On Jun 4, 12:47 pm, brian wrote:
> Have a look at Controll:render() method. It returns a string that you
> could write to a file. H
> If so - why it's like that? Is it some backward compatibility? Because
> it's seems a little bit weird.
I am not The One who rules whole world, my friend. And I don't like
general 'why' questions too :) because I am not mindreader to be sure
why it seems weird to you.
Names of subfolders in ap
I think the way CakePHP handles the delete links is very bad practice
tbh. The delete action should be through a POST not a get. Also,
protecting it with Javascript doesn't help if your site is being
spidered...
A better approach is to create your own delete($id) method
AppController (so its avai
I get this error intermittently and do not understand why.
Warning (2): unlink(/app/tmp/cache/models/
cake_model_default_restaurants_states)
[function.unlink]: No such file or directory [CORE/cake/libs/file.php,
line 292]
I notice that if I simply reload the page, the error goes away. It
seems t
> Once again: language and locale are different things and you should
> not mix language and locale codes together like that. Language is 2
> characters string from Configure/Session 'Config.language',
> initialized by autodetection or forced by application code. Locale
> identifier used by Trans
Hi,
It´s possible create a Auth from one App and use in another one?
like this:
App\
Forum\
Blog\
Login system is present only in App, but Forum e Blog use it too.
Like google login. One login to many aplications: gmail, calendar...
Thanks.
Sorry about my english.
--~--~-~--~~---
Hi i am new in cakephp but i think your problem is with cake's naming
conventions. Your tables should be named "comments" and "docs"
On Fri, Jun 5, 2009 at 3:28 AM, Greg Baker wrote:
>
> I have the following scenario.. A user can upload a document, that
> document can be commented on, then a ne
Hi,
It's possible create an AUTH in App and use in others app's?
For example:
App\
Forum\
Blog\
My login system is locate on App, however i wanna use in Forum and
Blog app's. It's that possible? Using just DB, model, controllers and
view of App.
Thanks e sorry about my english.
:)
--~--~
Why not use SSH tunnel?
http://wiki.joyent.com/facebook:kb:mysql-tunnel
http://www.google.com/search?q=mysql+ssh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to c
Hi
I have pasted the model code in http://bin.cakephp.org/view/36911942
For normal text everything is working fine. Even the flash message is also
getting displayed.
When you submit any HTML content its going out of /admins/update_article to
sites root ! No error message no flash message
_
good advice
>> $param = array('order'=>array('Stato.stato', 'Sito.sito'));
http://bin.cakephp.org/view/1228674051
>> $param = array('order'=>array('Sito.sito'));
http://bin.cakephp.org/view/584859600
it seems that the data about some of the related table are added
af
Hi all,
I have requirement where I have to show two paginated list in the User
Home page.
I have been trying for that for some time tried various methods
but no success.
Followed the following post for this.
http://debuggable.com/posts/how-to-have-multiple-paginated-widgets-on-the-same-pag
do you use apache? error.log shows something?
On Fri, Jun 5, 2009 at 6:58 AM, puneetratan wrote:
>
> Hello everyone.
>
> i really in mess and very urgent to fix the issue , the issue is
>
> new HTTP error is coming HTTP error 64, (host is not available) when
> we open out site
>
> site is http://
I recomend you to modify media view for your blob case
It would best solution
--~--~-~--~~~---~--~~
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
Nevermind. I got it sorted... big difference between user.php and
users.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 unsubs
Thanks, actually each object can only 'have' one other object. A doc
can only have one single comment. But I will take your advice.
On Jun 5, 6:09 am, John Andersen wrote:
> You should probably use dynamic binding instead af static binding in
> the model!
>
> The only static bindings I see tha
Ok, I did one mistake... Jointables need to be defined in alphabetical
order... that confused the whole application. so after defining a
modules_products table instead of the products_modules table i got all
the data right...
just in case anyone runs into the same problem.
greets
Andreas
And
that works great!
thanks :D
On 5 Giu, 11:04, toby1kenobi wrote:
> I think I may be misunderstanding, but if you use $html->link to
> generate your delete url you can add this as a parameter:
>
> link(string $title, mixed $url = null, array $htmlAttributes = array
> (), string $confirmMessage =
anyone else? This seems to be going wrong on some basic level. What could
cause the $validate function not to run?
On Thu, Jun 4, 2009 at 6:19 PM, Michael Gaiser wrote:
> This is the feedback from the debug:
>
> Array
> (
> [User] => Array
> (
> [username] =>
>
I think I may be misunderstanding, but if you use $html->link to
generate your delete url you can add this as a parameter:
link(string $title, mixed $url = null, array $htmlAttributes = array
(), string $confirmMessage = false, boolean $escapeTitle = true)
See the liink method here :
http://boo
Hi there,
I have my admin_add (and edit) views/actions for a model that also
allow the creation/editing of an associated HABTM model. I would like
to validate the HABTM model at the same time as the 'main' model, is
this possible? In fact, I would like an instance of the HABTM model
has been se
Hello :)
is there any behavior that asks "Are you sure" before deleting any
record?
i can't find anything similar in the bakery
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group,
What is your SQL debug output? You'll be able to see exactly how Cake
is building the queries and I'm sure it will answer your question.
On Jun 5, 10:10 am, fain182 wrote:
> hello, i have a simple code like this:
>
> $param = array('order'=>array('Stato.stato', 'Sito.sito'));
>
>
just extend the existing Auth Component
and override the method that is responsible for the login part
that's how i did it
On 5 Jun., 07:14, John Andersen wrote:
> Follow-up, on the second part of your question, displaying a specific
> message based on which criteria is not fulfilled!
> I don'
That was it! So simple when you know how.
Many thanks John.
Regards
David
On Jun 5, 8:04 am, John Andersen wrote:
> Try to remove the redirect in the else statement!
>John
>
> On Jun 5, 9:56 am, DavidH wrote:
>
> > Hi
>
> > I'm using CakePHP version 1.2.3.8166 running and PHP 5.2.9.
>
>
hello, i have a simple code like this:
$param = array('order'=>array('Stato.stato', 'Sito.sito'));
$this->Materiale->recursive = 2;
$this->set('materiali', $this->Materiale->find('all',
$param));
$this->render('printer', 'blank', '
You should probably use dynamic binding instead af static binding in
the model!
The only static bindings I see that you can define are:
doc hasMany comments - I assume that one document can have more than
one comment!
Then for the other, use dynamic binding.
Enjoy,
John
On Jun 5, 3:28 am, G
Auth DOES automatically validate, but it should only do it when you
post the form.
Whats your settings.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@g
Looks like development has stalled on Drake, it doesn't support the
latest version of Drupal :-(
On Jun 4, 6:20 pm, jwerd wrote:
> I am curious if anyone has used the new CakePHP 1.2.3.8166 Stable with
> Drake, or rather, is it still the solution to combine Cake with
> Drupal?
>
> TIA
> Jake
--~
alkemann told me in irc that callbacks aren't run on associated
models, which explains problem #1. So it seems that my solution with
calling toUtf8 manually in the action is ok.
only 2 problems left... ;)
--~--~-~--~~~---~--~~
You received this message because you
John is onto something here If the definition of the column is
"tinyint(1)" then cake presumes that this is a "toggle" field that can
only have a value of either 1 or 0; thus any value greater than 1 will
be reduced to 1. Change the field type to "int(1)" or some other
suitable definition.
Le
> Strange thing is that when i enter any normal text like "Lorem ipsum"
> it is getting saved.
> When i edit this recode and replace the content with any html tag and
> click on submit, its going to sites, index, not even showing whats the
> error is
but the flash message is showed? if it is
What is the url of your login page?
What is your settings of the auth component?
What does your login code look like?
Enjoy,
John
On Jun 5, 10:04 am, lakers fan wrote:
> Hello,
>
> Whenever I goto login page I get this auto error : Invalid username and
> password. Dont know why auth com
Hello,
Whenever I goto login page I get this auto error : Invalid username and
password. Dont know why auth component automatically validates every time i go
to login page.
Is there anything that i m missing?
Thanks,
Bharani
__
Try to remove the redirect in the else statement!
John
On Jun 5, 9:56 am, DavidH wrote:
> Hi
>
> I'm using CakePHP version 1.2.3.8166 running and PHP 5.2.9.
>
> I've been following the blog tutorial on the CakePHP site and adapting
> it for my own basic project. I've got to the bit where the
63 matches
Mail list logo