HI,
Im try PhpEd but i dont know how setting code completion in cotroller.
For example: I have UsersController and a need call $this->User->find
('all');, but this PhpED cant auto competing.
Is any way how write same rule for suggestion methods from models?
THX
--~--~-~--~~---
Hi friends,
I have recently uploaded a cake php application on
my host.
What i am stuck up with is that .
Cake Application works fine with local machine.
But when i uploaded it on my host with a separate folder like
mywebsite.com / cakefolder
its not running .
No css detect
Thanks a lot,
thats exactly what I was looking for,
Beedge
On Apr 22, 6:42 am, NegoBlack® wrote:
> Hello Beedge,
>
> I think you will find this information
> herehttp://book.cakephp.org/view/96/Layouts,
> but what you must to create a new layout on app/view/layouts/
> beedge.ctp setting the v
Hello Beedge,
I think you will find this information here
http://book.cakephp.org/view/96/Layouts,
but what you must to create a new layout on app/view/layouts/
beedge.ctp setting the var "$content_for_layout" in the place where
you want to wrap the content rendered by the views. You still can s
What is the url which is presented in the page?
Is it "www.example.com/controller/search?cat[]=4&cat[]=5" or is it
"www.example.com/controller/search/cat[]:4/cat[]:5" ?
John
On Apr 21, 7:29 pm, Jesse wrote:
> I found a bug track for the exact problem that I'm
> having:https://trac.cakephp.
Hello,
I'm new in this group and have being using the CakePHP about 3 months.
My advice is doing something like this:
# app/controllers/products_controller.ctp
array(
"limit" => 10,
"fields" => array("id", "title", "price", "currency_id",
"country_id", "cost_usd"),
"order" =>
Thanks for sharing, I'm sorry I never got back to you, got drug into
something at work (non php stuff) so I totally dropped the ball on
helping. Yea I have to say that anytime I am going back and forth to
any service I almost always write the debug to zero and use the
logging to track stuff.
Sam
Sam,
I found the problem was produced by a combination of:
an error in my cakephp code and
having Configure::write('debug', 3); in my app core.php file
Authorize.net does not like cake's debug message.
Once I fixed my code errors and set debug to 0 I was able to access
authorize.net
I know you can select what fields to return data from a find querybut is
there a way to exclude fields rather than typing out all the ones you want?
thanks
Dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
> If your model named MyModel, its file should be named my_model.php
> Most of such problems with models are in wrong model file name.
Sweet mother of mercy, that was it. Renaming app/model/MyModel.php to
app/model/my_model.php worked. This has got to go down as one of the
most bone-headed mistak
Hi,
I recently saw this on the Gears On Rails project for integrating
Google Gears into the Rails framework for offline applications.
http://ajaxian.com/archives/interview-with-the-gears-on-rails-team
http://code.google.com/p/gearsonrails/
Is there any work to do something similar in CakePHP?
You should restore original folders structure inside app/tmp - cake do
not create subdirs itself in runtime and heavily depends on own cache.
To check consistency in all other app parts is also very good idea.
Check your log message - is model class MyModel? I think it should be
AppModel that ind
A lot of variants:
1. Make additional connection in DATABASE_CONFIG, additional model for
subscribers_table that uses new config, add save same data to new
model on every successful save in original one.
2. Make additional connection in DATABASE_CONFIG and switch to it and
subscribers_table in aft
Any thoughts on this one? This project is pretty much halted until I
can figure out what's going on.
One though I've had is perhaps some CakePHP file is corrupt or
missing, so I'm going to do a diff between a fresh CakePHP app and
mine to see if anything seems out of the ordinary.
On Apr 21, 10
Cool thanks,
next question
how do I go about editing the look of the page? where does the blue
header and footer come from?
again, I am working at http://hbit.ie/cake/posts
is there some way of setting up a template look and feel for a page?
looking at the source code generated I can see a he
Hello, I am new to Cake from Rails,
I currently have a City Model, a Neighborhood Model, and a Location Modle.
Location belongs to a neighborhood, and a neighborhood belongs to a city. I
am trying to get all of the locations for a city using something like this:
var $hasMany = array(
'Loc
>> did you put a hidden field with the id in the view of edit?
>> something like:
>> echo $form->input('id', array('type'=>'hidden'));
>>
>
>
> Don't do this!!!
this is used in the cake book... for an administration page in
absolutely secure IMHO...
--~--~-~--~~~---~-
Set debug = 0 in app/config/core.php
On Apr 22, 12:17 am, Beedge wrote:
> Hi all,
>
> I have recently decided to learn a framework, and from what Ive seen
> Cake is the way to go,, So I ve gotten my hands on 'Practical cakePHP
> projects'
>
> Im doing the first blogging tutorial, and my first at
Hi all,
I have recently decided to learn a framework, and from what Ive seen
Cake is the way to go,, So I ve gotten my hands on 'Practical cakePHP
projects'
Im doing the first blogging tutorial, and my first attempt differs in
appearance from the example in the book
it looks like I am in a debu
So I got a shell working when a cron is run, but this error is at the
top. Anyone know how to fix it?
TERM environment variable not set.
Welcome to CakePHP v1.2.2.8120 Console
---
App : app
Path: /path/here/
Perfect...
That works!
Thanks
Dave
-Original Message-
From: Martin Radosta [mailto:martinrado...@gmail.com]
Sent: April-21-09 7:28 PM
To: cake-php@googlegroups.com
Subject: Re: Help with random ID function
Dave Maharaj :: WidePixels.com wrote:
> I am trying to generate a 6 characte
Dave Maharaj :: WidePixels.com wrote:
> I am trying to generate a 6 character unique id using this in my model:
>
> function generateJobKey()
> {
> // creates a 6 digit key
> $key = substr(md5(uniqid(rand(), true)),0,6);
> //checkto make sure its not a duplcate
>
Hi all!
I installed APC on my custom PHP installed on Dreamhost. The phpinfo
() page says that the APC extension has been installed, but I didn't
notice any actual increase in performance on my CakePHP-based site. I
copied the apc.php file to the root, and it says that only one page is
actually
I am trying to generate a 6 character unique id using this in my model:
function generateJobKey()
{
// creates a 6 digit key
$key = substr(md5(uniqid(rand(), true)),0,6);
//checkto make sure its not a duplcate
$q = $this->find('first', array('conditions', a
It depends on your situation and needs. I'm using admin routing in
one application, as it's very simple. In another application, I'm
actually creating an administration backend (currently) on an entirely
different user account on the same server (Dreamhost users' are unable
to access other users
I would just create a non-CakePHP application to regularly copy the
first database to the second. But that's just me. I'm inefficient.
On Apr 21, 10:42 am, "luisgabrie...@gmail.com"
wrote:
> Hello guys this is my problem
> i have 2 databases on the same server
>
> DB_1
> users_table
>
> DB_2
When you create an admin backend, do you create it as its own
application that uses the same db, or do you create it all in one
application?
Just curious. I know admin routing is powerful, but didn't know if
people opted to separate the applications to simplify the organization
of application di
In table I have pirce in different currencies - USD/Euro
Pure MySQL I can do:
SELECT id, price, currency_id, title,
CASE currency_id
WHEN 1
THEN price
WHEN 2
THEN price * 1.34
Anyone have any ideas on this topic?
On Apr 20, 5:16 pm, "Arak Tai'Roth" wrote:
> Yup, the exact same permissions as the banners directory
>
> On Apr 20, 4:09 pm, brian wrote:
>
> > Are the permissions for the posters dir good?
>
> > On Mon, Apr 20, 2009 at 4:56 PM, Arak Tai'Roth
> > wrote:
>
Would something like this work for cleaning data?
function beforeSave() {
App::import('Sanitize');
Sanitize::paranoid($this->data);
}
and then in the controller
if ($this->User->save($this->data)) {
$this->beforeSave();
}
trying to figure out a way to clean the data easier rat
On Tue, Apr 21, 2009 at 4:39 AM, manohar wrote:
>
> Hello guys,
> I'm trying to connect to a MS SQL Server 2000 using cake but I'm not
> able
> to, i get this messages:
> Cake is NOT able to connect to the database.
>
> This is my database.php file:
>
> var $default = array(
> 'dr
Here's another thought.
I noticed that in my efforts to remedy this, I completely deleted the
contents of the app/tmp directory (should be harmless, no?).
Looking at that delete, i noticed the file app/tmp/cache/persistent/
cake_core_core_paths which has a serialized array in it with what
appear
> Google won't show you your own posts until someone replies to them.
> It's very irritating.
Yes, that is annoying.
I would make sense if CakePHP was generating a model from just the
database table since
I've followed naming convensions. I have validation rules in my PHP
model class, and when
HI at all,
last week I have post a discussion to update a field with the ajax
method, and I have found a good choice utilizing this article:
http://v2.cybergod.net/article/show/u/ajax_input_update
But Now I have another questions:
In the article the field were changed with a Type:Select Form, n
On Apr 20, 10:02 am, fain182 wrote:
> did you put a hidden field with the id in the view of edit?
> something like:
> echo $form->input('id', array('type'=>'hidden'));
>
Don't do this!!!
When you depend on client side values to update records they can be
changed by malicious users!
I could
I found a bug track for the exact problem that I'm having:
https://trac.cakephp.org/ticket/5449
To me, it looks like this bug should be fixed, but it's still not
working for me.
If my URL is :www.example.com/controller/search/cat[]:4/cat[]:5
This is the output.
Array
(
[pass] => Array
On Tue, Apr 21, 2009 at 10:06 AM, Temujin wrote:
>
> I tried posting this yesterday, but since I can't seem to see it
> anywhere, I'm reposting (sorry for any duplication).
Google won't show you your own posts until someone replies to them.
It's very irritating.
> I am at my wits end here. Cake
Hello, I m new to CakePhp, I want to do a simple file upload. I tried
various samples and I havent been able to get it to working. Also I want to use
a third party application like Curl to upload a file to webserver. Can someone
tell me how can I do it using Curl.
Thanks,Bharani
___
Help is needed urgently!
Please! someone please!
Tomorrow is the demo day
Thanks!
On Apr 21, 12:04 pm, Nature Lover
wrote:
> Please! is there anyone who can help?
> at least link some other CakePHP forums do exist.
>
> Thanks!
--~--~-~--~~~---~--~~
You receive
Yes it is correctly written
and there are these fields in Mysql
id auto_increment
username varchar(255)
password varchar(255)
email varchar(255)
I'm using a non standard table/model for authentication other than
User and I have used
this->Auth->userModel = 'Member'
There is no validation in t
That's a handy solution, thanks for sharing, Martin.
On Apr 21, 7:27 am, Martin Westin wrote:
> SecurityComponent does not do much for Ajax requests. At least not in
> that way.
>
> I use $this->Post-del($id) less and less. Instead I use deleteAll() in
> this way:
> $this->Post->deleteAll(array(
Hello guys this is my problem
i have 2 databases on the same server
DB_1
users_table
DB_2
subscribers_table
DB_1 is my default connection,and my user model and controller are
linked to the users table on DB_1.
I have installed and autoresponder (Not a cakephp app) which uses
DB_2.
i want to t
hello,
I am developping on my local machine with PHP5 installed and on the
production machine with PHP4 (PHP 4.4.4-8+etch6). The version of Cake
I am using is the last stable 1.2.2.8120.
I am experiencing trouble with an out-of-the-box validation routine
for urls, made with the bake script. It wo
I looked on Cakeforge, searched with Google, but I can't find a plugin
or something to easily create and maintain a FAQ.
Is there a plugin or something availible to easily create and maintain
a FAQ?
--~--~-~--~~~---~--~~
You received this message because you are su
I tried posting this yesterday, but since I can't seem to see it
anywhere, I'm reposting (sorry for any duplication).
I am at my wits end here. CakePHP appears to have somehow cached my
model class. Not the data in the database that corresponds to this
model, but the actual model class itself. An
Hello, first, sorry for my english.
I need Help to Import the Sluggable behavior into a Cake-php 1.1
proyect. I modified the behavior´s consults to work with 1.1:
$result = $Model->find('all', array('conditions' => $conditions,
'fields' => array($Model->primaryKey, $this->__settings[$Model->alia
@Arvind!
Sorry your solution doesn't make the desidered effect... did you have a
working example to show me?
Best Regards
Franco Tampieri
Franco Tampieri Details: - Linux User #286282 - FSF Member #5827
GNU/Linux: Hardened / Embedded / H.A. Cluster / System Integrator
Certification: ECDL / LPI
Hello guys,
I'm trying to connect to a MS SQL Server 2000 using cake but I'm not
able
to, i get this messages:
Cake is NOT able to connect to the database.
This is my database.php file:
var $default = array(
'driver' => 'mssql',
'persistent' => false,
I am at my wits end here. CakePHP appears to have somehow cached my
model class. Not the data in the database that corresponds to this
model, but the actual model class itself. Any change I make in the
model class simply gets ignored.
I have done the following to try to make sure nothing is cache
Thanks Miles..
Bt I had tried with open inviter too..
I had downloaded open inviter and used their Username and API Key.
But i dont know how to call the any openinviter object form cakephp
contoller.
Could you please help me out...
On Apr 18, 2:54 pm, Miles J wrote:
> This is what I use:http://
Maybe you set something up wrong in the form or your validation. You
can put this in your view:
debug($this->validationErrors);
... just to figure out both the error and also may lead you to why the
msg is not being displayed.
On Tue, Apr 21, 2009 at 5:08 AM, albe wrote:
>
> Ok, at this point
Your associations will be something like:
Activity belongsTo User hasMany Comment
>From Comment model, one can do:
$this->User->Activity->save(...)
So, this could be done in afterSave() of a behavior for Comment. The
behavior should work fine for any model that is associated with User.
You sh
Copy the entire cake directory. Where you put it depends on how you
set up on your local machine. Some people put cake beside app, others
have one central cake directory for many apps. So, if you have:
/some/dir/path/
app/
cake/
... then just do the same on the server.
On Tue, Apr 21, 2009
Hey guys,
I have the following model-relationship:
Event <---HABTM> Artist <---HABTM--> Genre
Now, in my events.index view I'd like to list all events, each with
its artists, each with its genres. With pagination my index controller
function looks as follows:
$this->Event->recursiv
Ok
Is it the OS system integrable with cakephp?
More specifically, I want that only registered users can send tickets
and that such tickets were associated with the username of the user
that sent that.
On Apr 21, 12:05 pm, "gaurav.v.sharma"
wrote:
> (Not related to cakePHP)
> I don't know about
What exactly should I do? Should I copy "lib" folder and place it on
web server(above the webroot directory)?
Thanks!
On Apr 20, 9:14 pm, brian wrote:
> You're going to require the Cake libs on the server, also. Baking an
> app does not "compile" the libs into your classes.
>
> On Mon, Apr 20,
Look in you add.ctp file and make the password field is correctly
written. Also it's possible that the word 'password' is reserved for
something (I had this happen to me before, I think I was working with
Access) you could try changing the name of that field if possible.
Are you using MySQL? How
Excuse me I've found the answer for the first question :P I have to modufy
the parameter in str_repeat in the controller :P
But for the second questions, if I have a text field instead of the select
list how can I make the same result?
For exampe first field I will insert the value 8 and I want t
Look in you add.ctp file and make the password field is correctly
written. Also it's possible that the word 'password' is reserved for
something (I had this happen to me before, I think I was working with
Access) you could try changing the name of that field if possible.
--~--~-~--~~-
@Teh
I'm a relly nobble and I have 2 Questions on your example:
1-st: I've noticed that the field will filled tree times for example: the
field A have a 80 value the field will filled by 808080
How can I correct the problem?
2-nd: If will utilize not a select field but a text field for in
Hi all,
I've got a problem with a plugin but I don't know if it is a bug or a
worksform.
When I go to a plugin action URL (/plugin_name/controller/action), all
the links in the app layout start with '/plugin_name/'. I have to
explicitly add 'plugin' => null to all the app layout links.
If I wan
Hi,
I have been having an issue with this for a little while now, and I am
really struggling to understand how its works to be honest.
So I have Users which HABTM Groups. And simply from this relationship
they have a Rank.
So I have a GroupsUsers table, in which I have:
id group_i
SecurityComponent does not do much for Ajax requests. At least not in
that way.
I use $this->Post-del($id) less and less. Instead I use deleteAll() in
this way:
$this->Post->deleteAll(array(
'Post.id' => $id,
'Post.author_id'=>$auth_user_id
),true,true);
This will ensure that a user can
Im using Auth component
I have the following code in my register/add function
if (!empty($this->data))
{
pr($this->data);
$this->School->set($this->data);
if ($this->School->save($this->data))
{
print "data saved"
}
else
{
print "cannot save data";
}
}
I always
> Ok, at this point
>
> http://book.cakephp.org/view/645/Acts-As-a-Requester
>
> I've got to "add some groups and users using the baked forms" so I
> type on my browser
>
> http://localhost/simpleacl/groups/add
>
> and I put the name of the group that I want to create on the form but
> when I hit
(Not related to cakePHP)
I don't know about a ticket system made in cake but you can try out
OSTICKET. It is an open source ticketing system. very nice
software (www.osticket.com).
On Apr 21, 1:59 pm, "marco.rizze...@gmail.com"
wrote:
> I have my web application in Cakephp.
> It has his regi
But i won't be able to give additional information to afterSave()
method in model. ($data.? that I want to insert.)
If i am adding a comment to a topic, then I want to record it in
activities table which I think will not be possible by afterSave()
method because it will be in context to only
your path is wrong: missing slash - DS
$viewPaths = array('my_views'.DS);
On Apr 21, 11:06 am, majna wrote:
> set debug to 1,
> and check if cake is looking in desired path with
> debug(Configure::getInstance());
>
> On Apr 21, 9:53 am, Ernesto wrote:
>
> > Having some troubles...
>
> > i defin
Ok, at this point
http://book.cakephp.org/view/645/Acts-As-a-Requester
I've got to "add some groups and users using the baked forms" so I
type on my browser
http://localhost/simpleacl/groups/add
and I put the name of the group that I want to create on the form but
when I hit submit button I se
set debug to 1,
and check if cake is looking in desired path with
debug(Configure::getInstance());
On Apr 21, 9:53 am, Ernesto wrote:
> Having some troubles...
>
> i defined an additional view path
>
> $viewPaths = array(CAKE_CORE_INCLUDE_PATH .'\shared items\views');
>
> then i created this di
> It appears that the server is not reading the .htaccess file
> to point to the webroot folder.
Indeed, htaccess are apache file directives, they do not apply to any
other server.
I've never used a windows server, so can't offer any advice directly.
A quick google did however bring up
http://ba
I have my web application in Cakephp.
It has his registered users .
Now I would add a ticket system on my application only for registered
users.
I have searched a ticket system made in Cakephp but I haven't found
anything.
Is there someone that has found something made in Cakephp?
Thanks
--~--~---
Hi,
thanks for the answer but I just found out that I misread the docs.
I tried something like this:
$data = $this->find('all', array(
'contain' => array(
'B' => array(
'contain' => array(
'C'
);
which doesn't work.
It has to be like this:
$data = $this->find('a
Having some troubles...
i defined an additional view path
$viewPaths = array(CAKE_CORE_INCLUDE_PATH .'\shared items\views');
then i created this directory
\shared items\views\layouts
i moved the "HeaderFooter.ctp" layout under this new directory
but cake says "missing layout"...
On 20 Apr,
Thanks for the hint.
i missed that doc
On 20 Apr, 18:35, brian wrote:
> Also, make sure that Html and Javascript are included in your helper's
> $helpers array.
>
>
>
> On Mon, Apr 20, 2009 at 10:07 AM, fain182 wrote:
>
> > "When using $html->css() or $javascript->link() in view files, specify
Hi!
$AIds = $this->A->B->find('list', array('fields' => array('B.a_id'),
'group' => array('B.a_id')));
1.Try One:
$this->A->Behaviors->attach('Containable');
$this->A->B->Behaviors->attach('Containable');
$AsBsAndCs = $this->A->find(
Please! is there anyone who can help?
at least link some other CakePHP forums do exist.
Thanks!
--~--~-~--~~~---~--~~
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
77 matches
Mail list logo