I m working in CakePHP.I have check out a project from svn and named
it as scheduler.Now the path to the "webroot" of scheduler is "H:\www
\webroot\cake\scheduler\main\jobscheduler\webroot". Then I have set my
document root to "/www/webroot/cake/scheduler/main/jobscheduler/
webroot". Bu t when i t
I must be far more retarded than the average bear, b/c this is
something I just can't get working in Cake.
I can get the results I want with a basic sql query:
SELECT CONCAT(team, ' - ', sport)
AS teamsport FROM `teams` , `sports` WHERE `teams`.`sport_id` =
`sports`.`id`
when I run it on the
Search the group, this has been answered before. It is because you
have a relative link to an image file, and when your browser requests
this it executes your action again.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
If it's still happens in the latest 1.1.x SVN then it is a bug, and
should be reported on https://trac.cakephp.org/
However, in 1.2.x the uses() function in basics.php specifically calls
strtolower to avoid this problem. So maybe it's just been fixed since
1.1.16
On Aug 8, 1:21 pm, supercake
Hi,
I just look at the cache persistent folder and there's a aro/aco cache
tables. How long does it persist there ? Can we cache per user/group
data before it is being modified in database ? If so it will be great
as it will decrease mysql connection overhead.
Regards,
Feris
--~--~-~--
Bookmarks use #bookmarkName last time I checked.
Geoff
--
http://lemoncake.wordpress.com
On Aug 8, 11:50 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 8/7/07, mussond <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hey all, I trying to create a bookmark link on my page. I couldn't
> > find anything
Your regret,
It's too sad too. Some your rest time. Reading about Zelazny, Homer(correct
antic Greek person), Bernare Berbere, etc.
You can see the bugs. For your hapieness!
2007/8/8, supercake <[EMAIL PROTECTED]>:
>
>
> Hello All,
>
> I am working with cake 1.1.16.5421 and dbdesigner2cake and wa
On 8/7/07, MattC <[EMAIL PROTECTED]> wrote:
>
> Feris,
> You could try putting your code in the constructor for your
> controller. I'm not sure if this is even possible though, since the
> controller gets called from the cache file itself, so deleteing the
> cache file at this point may already b
is it possible that you are using a javascript ajax library other then
prototype/scripta not all library's set the necessary header
information for RequestHandler to recognize that it is a ajax call.
It is built on the assumption that you are using prototype (or at
least is was)
Sam D
On 8/7/07,
doublesswizz,
Hm that is a strange problem. Although I can't really tell you what is
going wrong, I would caution you about using the "fix" you have in
place. All it would take for a user to fake an ajax request would to
get a simple tool like firebug and set what url the ajax post or get
request
Although I'm not sure what is causing the above behavior, I do have a
workaround for it. Whenever I call the controller action via ajax, I
append a get variable onto the URL. Then, I just check for that
variable to determine if the action was called via ajax or not.
--~--~-~--~~--
Hello All,
I am working with cake 1.1.16.5421 and dbdesigner2cake and was getting
a strange error message about not being able to find "Set". Upon
inspection there is an overriding function in dbdesigner2cake called
uses. I'm still new to cakephp but in the inflector.php line 36 is
"uses('Set'
Hi,
Thanks Geoff, I tried this and removed this line:
var $uses = array("User");
in PagesController, but this time I got a error in index.php:
Missing Model
No class found for the Page model
.
Create the class below in file : app/models/page.php
What confused me is, PageContr
On 8/7/07, mussond <[EMAIL PROTECTED]> wrote:
>
> Hey all, I trying to create a bookmark link on my page. I couldn't
> find anything in api that would let me do this, so I've tried to do it
> using HTML but when I click the link I get a page saying I have a
> missing controller, $Verbs.
>
> Below
If you add $uses = array("User"); to the appcontroller it will be
available to all controllers including the pages controller.
Geoff
--
http://lemoncake.wordpress.com
On Aug 8, 11:04 am, "Tang Jianyu(??)" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Maybe this is a silly question, but I didn't find
Hi,
Maybe this is a silly question, but I didn't find answer elsewhere,
please give me some advice, thanks.
I need to display the currently login user's profile in my app's most
pages, including the home page:
http://localhost/myapp/index.php/
So, I put the user's email into session af
Hi Alteczec
I have a similar issue with a manufacturing process management
application. My solution was to create generic "data" ACOs for various
groups. Like this:
- Company A
-- admin data
-- manufacturing data
- Company B
-- admin data
-- manufacturing data
etc
When a user is registered
Hey all, I trying to create a bookmark link on my page. I couldn't
find anything in api that would let me do this, so I've tried to do it
using HTML but when I click the link I get a page saying I have a
missing controller, $Verbs.
Below is part of my HTML code. I can see how the $Verbs control
Did you already try 'conditions' => 'users.deleted = "0"' ?
The real table name is 'users', not 'User'...
[ ]'s
LP
2007/8/5, Ruud Gâst <[EMAIL PROTECTED]>:
>
> Hello there,
>
> I've got a simple construction of two models: users and familymembers;
> every user belongs to a familymember and a fa
Heres what I was thinking:
User hasOne Profile - Profile is a factory model that loads
StaffProfile, ManagementProfile or CustomerProfile,
AccountAdminProfile, AccountManagerProfile, BillingContactProfile.
The profile model can hold all the common data (address, phone etc)
and the specific profil
Well, the condition is not included in the SQL. So that is why I'm not
getting any errors when I create a condition that should create an
error...
I have removed all files in app/tmp/cache/models, if that is the right
way to clear the model caches then I have. If not, how can I do that?
Thanks f
Hi,
The nightly build file, 1.2.x.x_06.08.2007.tar.gz from
http://cakephp.org/downloads/index/nightly/1.2.x.x is only 45 bytes!
Where else can I snag the latest build?
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
When I perform a test on an ajax call with RequestHandler->isAjax, it
is returning false.
isAjax calls the env function (line 217 of request_handler.php),
passing it a key of HTTP_X_REQUESTED_WITH. However, env does not
appear to have any handler for HTTP_X_REQUESTED_WITH (line 1017 of
basics.ph
I created a new personal project of mine called billbugger.com. It's a
bill tracking program that reminds you via email when payments for
your bills are due. Please feel free to try it out and let me knoww
hat you think... It's free.
www.billbugger.com
Brian
--~--~-~--~~---
Thanx for the answer, but can you explain it a bit more??
On 17 jul, 03:10, rtconner <[EMAIL PROTECTED]> wrote:
> You got it a bit wrong...
>
> echo $javascript->link('scriptaculous/effects');
>
> On Jul 16, 3:44 pm, Arendp <[EMAIL PROTECTED]> wrote:
>
>
>
> > I have this problem:
> > We work wit
I have a class User that has one-to-many associations with 3 tables,
i'm not using any conditions or anything like it. Just the className
and foreignKey attributes.
When I go to the User List page of the scaffold it list the same user
a lot of times.
What's going on?
I'm using cake_1.1.16.5421.
it's just one row in a table, i don't need an increase.. it's always
id=1.
the problem i had was that cakephp wanted an id, and wouldn't send to
"edit". if no id is found, it sends to the "add" method automatically,
so i bypassed it by changing the table.
--
yossi
On Aug 7, 3:47 pm, "Pablo Viojo
Hi Geoff,
Thanks very much for your response. Just got to view it now. I'll have a
look into your suggestions but they sound good.
On 8/2/07, Geoff Ford <[EMAIL PROTECTED]> wrote:
>
>
> I hope this seems clear enough.
>
>
On the permissions and profiles, I think so. Just to clear another part up;
Hey, I've got a couple of questions:
First, are there any FDF templators for CakePHP?
Second, are there any Filemaker datasource connectors for CakePHP?
Thanks!
-T.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Group
Well, lucky for you, VLC is also available for all recent versions of
Windows. Also lucky for you, there's a company called Apple that
makes this operating system that actually works.
On Aug 7, 12:31 am, walterbyrd <[EMAIL PROTECTED]> wrote:
> On Aug 6, 4:59 pm, Langdon Stevenson <[EMAIL PROTECT
Worked perfectly! I looked at "$this->ModelName->query("the SQL
string");" in the manual but didn't try it! Thanks both of you for you
help.
Peter -
On Aug 6, 8:58 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Thats a subquery - and while the newer mysql4.1 and above now supports
> subque
Hello, I have post my first article to the bakery. Do not worry it's
not a complaint I am making, just an information needed.
When I submitted I check the "draft box" (i wanted to check what it's
look like and maybe modify it). The problem is that I do not see it
anywhere, not under "my account" n
> Once the local testing is done, how would the actual production site
> be configured?
> can the cakephp libs/core be hidden one directory above the www on the
> production servers?
yes, this I think would be considered best practice. Just move the
cakephp dir to the same level as www (not insid
Assume for a second that Cake conventions in DboMySQL are not the
fastest, most efficient way to run a query and that there is a
situation where it's essential to tweak for speed. My application
needs a super-fast preorder tree traversal hierarchy model to inherit
from. I don't want Cake to do a l
On Aug 7, 2007, at 11:12 AM, Charlie wrote:
>
> Hi,
>
> Would anyone could explain to me how I bake in the new cake version?
From your cake install:
$ ./cake/console/cake bake
> Or post a link to the new documentation? I searched a lot but couldn't
> find it.
There's no officially released
http://cakephp.org/screencasts
there is one for "Setting up the console".
Once it is setup properly just run "cake bake help" for more
information.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
thanks, that looks like that would work, then later on when I want
that data I could just retrieve it directly based on id from the child
table, which is probably what I would end up doing anyways. I had seen
that in the docs in the past but didn't realize that is what it was
for. thanks!
--~--
Hi,
Would anyone could explain to me how I bake in the new cake version?
Or post a link to the new documentation? I searched a lot but couldn't
find it.
thnx!
- Charlie
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
You can define in your model model relation, the fields (using the
"fields" key ie :
class Customer extends AppModel {
var $name = 'Customer';
var $hasMany = array(
'Document' => array('className' => 'Document',
Once the local testing is done, how would the actual production site
be configured?
can the cakephp libs/core be hidden one directory above the www on the
production servers?
on a related note, are there any disadvantages of the cakephp libs/
core being placed one directory above the public_html
I've seen unbindModel, but that removes the reference to the entire
table. I need to not automatically retrieve certain columns from
related tables, in this case a table that contains blobs and
filenames.
for example:
parent
id
name
company
etc..
child blobs
id
parent_id
filename
filetype
I was posting when you are Francky.
Thanks for your input. I think I have it straight now.
On Aug 7, 10:36 am, francky06l <[EMAIL PROTECTED]> wrote:
> For cake1.1, the same approach should work, iether $this->data['User']
> ['firstname'] exists and your text box witll contains the value. If
>
So I looked up Model->create(). Since it's an existing Model function
then it will work to initialize a record for 1.1x too right? I have
used the create function to initialize when adding multiple records
but didn't think about it just for an add function.
Do I need to call the create() functi
For cake1.1, the same approach should work, iether $this->data['User']
['firstname'] exists and your text box witll contains the value. If
it does not exists the text box is empty.
On Aug 7, 5:22 pm, tyhilltx <[EMAIL PROTECTED]> wrote:
> Sorry, I should have mentioned that I'm still using 1.1x.
I'm still using 1.1x and am using PHPMailer to send emails with my
app. I used the 2nd article you have listed above and was able to get
it up and running fairly quickly. I'm using it currently to send
Contact form emails.
Be sure to read the comments at the bottom of the article as it had
help
Sorry, I should have mentioned that I'm still using 1.1x. Is there
anything to do in my case?
Thanks for the answer for those already using 1.2 though. That's
helpful to know.
On Aug 7, 9:59 am, francky06l <[EMAIL PROTECTED]> wrote:
> You do not need to do this in fact.
>
> in controller()
>
You do not need to do this in fact.
in controller()
if(empty($this->data))
{
$this->data = $this->Model->create() // with cake12, you get the
default values defined in DB
}
else
{
// save ...
}
That's about it.
On Aug 7, 4:53 pm, tyhilltx <[EMAIL PROTECTED]> wrote:
> A simple question.
A simple question
Do I need to initialize (set) variables in the controller when the
view is first going to be rendered? Sure we should always initialize
our variables but is there something Cake is doing behind the scenes
that would initialize variables that are in the model? See example
be
If you use cake1.2 why not use built-in mail component ?
On Aug 7, 4:15 pm, candesprojects <[EMAIL PROTECTED]> wrote:
> HI
>
> Which is the best way to send email with Cake. I found some Components
> for
> that:http://bakery.cakephp.org/articles/view/swiftmailer-componentorhttp://bakery.cakephp
HI
Which is the best way to send email with Cake. I found some Components
for that:
http://bakery.cakephp.org/articles/view/swiftmailer-component or
http://bakery.cakephp.org/articles/view/sending-email-with-phpmailer
I read some pro and contra and I do not decide. Can you help me.
What are you
I've read every article I could find about ACL's and the different
implementations that others have come up with. However I haven't been
able to really convince myself on how to implement them into my
project. I'm sure this type of project will apply to many others so
I'm interested in hearing t
On 8/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I know that really good thing called $useDbConfig, but what then if i
> want use lots of db:s with same settings, only db is different.
>
> I don't want to do this manually!
>
> case 1 use db_1
> case 2 use db_2
> case 3 use db_3
>
> and
Dear phpjoy,
What do you mean with id=1? better use an autoincrement field.
And please sign your messages (at least a nickname)
--
Pablo Viojo
[EMAIL PROTECTED]
http://pviojo.net
On 8/7/07, phpjoy <[EMAIL PROTECTED]> wrote:
>
> well, figuring out how it works, i decided to say..
> "fuck it,
I know that really good thing called $useDbConfig, but what then if i
want use lots of db:s with same settings, only db is different.
I don't want to do this manually!
case 1 use db_1
case 2 use db_2
case 3 use db_3
and so on up to 100+
--~--~-~--~~~---~--~~
Yo
You can import GeoLite City database into MySQL as well.
GeoLite's binary database appears to be very fast, the best generic MySQL
solution for fetching location by IP I've come up with was 2-3 times
slower than their binary database
(using MyISAM, query cache was off).
But for more specific case
I have an application with the following models and associations, I'd
like to traverse this association but am unsure how best and where
best to go about it:
Project hasMany Actors, Authors
Actor belongsTo User, Character, Project
Author belongsTo Project, User
User hasMany Authors, Actors
Charac
or: http://www.eulerian.com/en/opensource/datepicker-prototype-scriptaculous
it's build on prototype / scripaculous
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email
Feris,
You could try putting your code in the constructor for your
controller. I'm not sure if this is even possible though, since the
controller gets called from the cache file itself, so deleteing the
cache file at this point may already be too late.
-Matt
www.pseudocoder.com
On Aug 6, 1:04 p
well, figuring out how it works, i decided to say..
"fuck it, i'll just add an "id=1" to the table.
by the way, where does it happen, this redirection?
it didn't even get to the method, as if a before filter exists or
something else in the core of cakephp.
On Aug 7, 11:21 am, Geoff Ford <[EMAIL
You will still want to page through the results so that there is not a
huge resultset in memory at once.
$limit = 1000; // some optimal amount of records
$page = 1;
$results = null;
do {
$results = $his->MyModel->findAll($conditions, null, null, $limit,
$page++);
foreach ($results as $row)
I am having trouble with a session variable returning favicon.ico
instead of the value I set it to.
Here's the method from my controller:
function login( $ref = null )
{
if( !empty( $ref ) )
{
$this->Session->write('admin_referer', urldecode( $ref ) );
this highlights the HTML aspects well:
http://www.cs.tut.fi/~jkorpela/forms/choices.html
Luke
On Aug 7, 11:24 am, luke BAKING barker <[EMAIL PROTECTED]> wrote:
> I would recommend not using multiple select -- it has usability
> difficulty for many users.
>
> Use checkboxes. There is a nice bit o
I would recommend not using multiple select -- it has usability
difficulty for many users.
Use checkboxes. There is a nice bit of checkbox HABTM helper code
lurking on the Bakery somewhere, it will help you generate them. You
can then have the selected ones as checked when you load up the page.
Thanks Mod :-)
> Langdon
> To save you time,
> The procedure is;
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from
Felix wrote a nice writeup of HABTM and extra data, which may be what
youre after- I didnt really understand your question entirely though!
be sure to read the comments.
http://www.thinkingphp.org/2006/10/26/modeling-relationships-in-cakephp-faking-rails-throughassociation/
Luke
On Aug 6, 7:46
On Aug 7, 7:22 pm, Langdon Stevenson <[EMAIL PROTECTED]> wrote:
> Hi Mod
>
> > Thanks guys, i have set up cakebaker via eclipse external tools
> > already - i just thought maybe their was a floor in my thinking re the
> > database/cake design process.
>
> Thanks for mentioning that, I hadn't se
Hi,
I had actually tried this solution earlier but it seems that CakePHP
only stores the session ID as a string in the cookie, whereas SMF
seems to store other data as well. There may be a way to change SMF to
have session-based data storage rather than cookie-based, which is
something I will che
On 8/7/07, archimonde <[EMAIL PROTECTED]> wrote:
>
> Is there an ajax framework which can be easy adapted to Cakephp?
> Any suggestions would be helpfull.
>
I suggest you read the manual
Tarique
--
=
Cheesecake-Photoblog: http://chee
The cookies need to be the same name. They are looking for different
cookies that tell what the session id is.
Geoff
--
http://lemoncake.wordpress.com
On Aug 7, 2:39 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> Currently they are both using the database version of storing sessio
Is there an ajax framework which can be easy adapted to Cakephp?
Any suggestions would be helpfull.
Thanks,
Daniel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send ema
Hi,
Currently they are both using the database version of storing session
data. I am confused, then, why a new session is created when one goes
from one area of the site to another. For example, if I go into the
Cake portion first, then a CAKEPHP cookie is created with a new
session id that is ad
If the tables do not require a separate model for any other actions
like CRUD i.e. they are only used by the MSDS model you can write a
custom query in the MSDS model using $this->query('SELECT...');
Geoff
--
http://lemoncake.wordpress.com
On Aug 7, 1:36 am, modfather <[EMAIL PROTECTED]> wrote:
Try http://www.dynarch.com/projects/calendar/ it has a popup mode and
a flat mode for the mini calendar.
Geoff
--
http://lemoncake.wordpress.com
On Aug 7, 1:12 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Also can any one provide me information mini regrading calender for
> events pupos
Hi Mod
> Thanks guys, i have set up cakebaker via eclipse external tools
> already - i just thought maybe their was a floor in my thinking re the
> database/cake design process.
Thanks for mentioning that, I hadn't seen that tip anywhere. I will be
integrating bake into Eclipse post haste. N
Put an id in - cake needs it to write the update statement. It
doesn't have to be 'id', just use var $primaryKey = 'some field';
Geoff
--
http://lemoncake.wordpress.com
On Aug 7, 12:21 am, phpjoy <[EMAIL PROTECTED]> wrote:
> i also wonder, where does this redirect happen in cake?
> dispatcher?
Ok I solve this problem but another appears :
selectTag('Languages/language',$languagelist ,
$lang, null, null,
false);?>
The $lang variable must be a language_id from categories table. Did
anyone know how to retrieve language_id? I only pass a categories id
in my view (categories/edit/41) but
On Aug 3, 4:53 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 8/3/07, Jerome Eteve <[EMAIL PROTECTED]> wrote:
> > Do you remember how you solved it ?
>
> We did not solve it - since it was a system level problem, fedora core
> 6 on wards the problem was solved
Thanks for your help
On Aug 7, 6:06 pm, housebolt <[EMAIL PROTECTED]> wrote:
> Langdon's right. Bake.php is the end all be all of cake model/view/
> controller generation.
>
> Also, take a look at this
> article:http://www.littlehart.net/atthekeyboard/2007/07/11/why-code-generatio...
>
> On Aug 7, 12:21 am, modfath
Also can any one provide me information mini regrading calender for
events puposes.
Thanks
On Aug 7, 3:36 am, francky06l <[EMAIL PROTECTED]> wrote:
> I have used this one
> :http://www.dhtmlgoodies.com/index.html?page=calendarScripts
> quite easy to implement in cake
>
> On Aug 6, 11:50 pm, na
Thanks for all your replies.
nate, i am not able to find anything about the calneder in the
manual's helper section. Can you please provide some more
information.
francky061, I like these calenders can you please inform how can i
intergate them with cakephp.
Thanks Again
On Aug 7, 3:36 am,
Langdon's right. Bake.php is the end all be all of cake model/view/
controller generation.
Also, take a look at this article:
http://www.littlehart.net/atthekeyboard/2007/07/11/why-code-generation-just-works-damnit/
On Aug 7, 12:21 am, modfather <[EMAIL PROTECTED]> wrote:
> Hello ladies and gent
I'd be interested to see the difference in performance between cake's
find() and a straight up php mysql call.
I personally don't think cake will have much of a problem handling
this. I would try both and see how long it takes to execute (and the
memory usage) for a simple SELECT statement. You c
Hi modfather
> I feel this is a fairly tedious process , so the question is - is
> there another way to build this or am i being lazy?
Bake script is the answer. It will do the heavy lifting of creating
your models, controllers and views. It will still be tedious, but it
will be lots faster
i also wonder, where does this redirect happen in cake?
dispatcher? before?
class/method would be great :)
On Aug 7, 8:51 am, phpjoy <[EMAIL PROTECTED]> wrote:
> i have a table in my database that doesn't need an id, it's only 1 row
> stored in the DB.
>
> i want to edit that row, and whenever i
Hello ladies and gents,
I'll start of by admitting this might not be specifically a "cake"
question but it does pose some questions about the usability of cake
(from my perspective).
I am in the process of updating/re-designing a site. One part of this
site contains what is called "msds" sheets.
85 matches
Mail list logo